Class UpdateVehicleRequestItem
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UpdateVehicleRequestItem.Builder,UpdateVehicleRequestItem>
Information about the vehicle to update.
Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see Amazon Web Services Region and feature availability in the Amazon Web Services IoT FleetWise Developer Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionStatic information about a vehicle in a key-value pair.final UpdateModeThe method the specified attributes will update the existing attributes on the vehicle.final StringThe method the specified attributes will update the existing attributes on the vehicle.builder()final StringThe ARN of the signal decoder manifest associated with the vehicle to update.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Attributes property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the StateTemplatesToAdd property.final booleanFor responses, this returns true if the service returned a value for the StateTemplatesToRemove property.final booleanFor responses, this returns true if the service returned a value for the StateTemplatesToUpdate property.final StringThe ARN of the vehicle model (model manifest) associated with the vehicle to update.static Class<? extends UpdateVehicleRequestItem.Builder> final List<StateTemplateAssociation> Associate additional state templates to track the state of the vehicle.Remove existing state template associations from the vehicle.final List<StateTemplateAssociation> Change thestateTemplateUpdateStrategyof state templates already associated with the vehicle.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe unique ID of the vehicle to update.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
vehicleName
The unique ID of the vehicle to update.
- Returns:
- The unique ID of the vehicle to update.
-
modelManifestArn
The ARN of the vehicle model (model manifest) associated with the vehicle to update.
- Returns:
- The ARN of the vehicle model (model manifest) associated with the vehicle to update.
-
decoderManifestArn
The ARN of the signal decoder manifest associated with the vehicle to update.
- Returns:
- The ARN of the signal decoder manifest associated with the vehicle to update.
-
hasAttributes
public final boolean hasAttributes()For responses, this returns true if the service returned a value for the Attributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
attributes
Static information about a vehicle in a key-value pair. For example:
"engineType":"1.3 L R2"Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAttributes()method.- Returns:
- Static information about a vehicle in a key-value pair. For example:
"engineType":"1.3 L R2"
-
attributeUpdateMode
The method the specified attributes will update the existing attributes on the vehicle. Use
Overwiteto replace the vehicle attributes with the specified attributes. Or useMergeto combine all attributes.This is required if attributes are present in the input.
If the service returns an enum value that is not available in the current SDK version,
attributeUpdateModewill returnUpdateMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeUpdateModeAsString().- Returns:
- The method the specified attributes will update the existing attributes on the vehicle. Use
Overwiteto replace the vehicle attributes with the specified attributes. Or useMergeto combine all attributes.This is required if attributes are present in the input.
- See Also:
-
attributeUpdateModeAsString
The method the specified attributes will update the existing attributes on the vehicle. Use
Overwiteto replace the vehicle attributes with the specified attributes. Or useMergeto combine all attributes.This is required if attributes are present in the input.
If the service returns an enum value that is not available in the current SDK version,
attributeUpdateModewill returnUpdateMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeUpdateModeAsString().- Returns:
- The method the specified attributes will update the existing attributes on the vehicle. Use
Overwiteto replace the vehicle attributes with the specified attributes. Or useMergeto combine all attributes.This is required if attributes are present in the input.
- See Also:
-
hasStateTemplatesToAdd
public final boolean hasStateTemplatesToAdd()For responses, this returns true if the service returned a value for the StateTemplatesToAdd property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
stateTemplatesToAdd
Associate additional state templates to track the state of the vehicle. State templates determine which signal updates the vehicle sends to the cloud.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasStateTemplatesToAdd()method.- Returns:
- Associate additional state templates to track the state of the vehicle. State templates determine which signal updates the vehicle sends to the cloud.
-
hasStateTemplatesToRemove
public final boolean hasStateTemplatesToRemove()For responses, this returns true if the service returned a value for the StateTemplatesToRemove property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
stateTemplatesToRemove
Remove existing state template associations from the vehicle.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasStateTemplatesToRemove()method.- Returns:
- Remove existing state template associations from the vehicle.
-
hasStateTemplatesToUpdate
public final boolean hasStateTemplatesToUpdate()For responses, this returns true if the service returned a value for the StateTemplatesToUpdate property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
stateTemplatesToUpdate
Change the
stateTemplateUpdateStrategyof state templates already associated with the vehicle.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasStateTemplatesToUpdate()method.- Returns:
- Change the
stateTemplateUpdateStrategyof state templates already associated with the vehicle.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateVehicleRequestItem.Builder,UpdateVehicleRequestItem> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-