/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iotfleetwise.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateVehicleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique ID of the vehicle to create. *
*/ private String vehicleName; /** ** The Amazon Resource Name ARN of a vehicle model. *
*/ private String modelManifestArn; /** ** The ARN of a decoder manifest. *
*/ private String decoderManifestArn; /** *
* Static information about a vehicle in a key-value pair. For example: "engineType"
:
* "1.3 L R2"
*
* A campaign must include the keys (attribute names) in dataExtraDimensions
for them to display in
* Amazon Timestream.
*
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing * Amazon Web Services IoT thing as a vehicle. *
*
* Default:
*
* Metadata that can be used to manage the vehicle. *
*/ private java.util.List* The unique ID of the vehicle to create. *
* * @param vehicleName * The unique ID of the vehicle to create. */ public void setVehicleName(String vehicleName) { this.vehicleName = vehicleName; } /** ** The unique ID of the vehicle to create. *
* * @return The unique ID of the vehicle to create. */ public String getVehicleName() { return this.vehicleName; } /** ** The unique ID of the vehicle to create. *
* * @param vehicleName * The unique ID of the vehicle to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequest withVehicleName(String vehicleName) { setVehicleName(vehicleName); return this; } /** ** The Amazon Resource Name ARN of a vehicle model. *
* * @param modelManifestArn * The Amazon Resource Name ARN of a vehicle model. */ public void setModelManifestArn(String modelManifestArn) { this.modelManifestArn = modelManifestArn; } /** ** The Amazon Resource Name ARN of a vehicle model. *
* * @return The Amazon Resource Name ARN of a vehicle model. */ public String getModelManifestArn() { return this.modelManifestArn; } /** ** The Amazon Resource Name ARN of a vehicle model. *
* * @param modelManifestArn * The Amazon Resource Name ARN of a vehicle model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequest withModelManifestArn(String modelManifestArn) { setModelManifestArn(modelManifestArn); return this; } /** ** The ARN of a decoder manifest. *
* * @param decoderManifestArn * The ARN of a decoder manifest. */ public void setDecoderManifestArn(String decoderManifestArn) { this.decoderManifestArn = decoderManifestArn; } /** ** The ARN of a decoder manifest. *
* * @return The ARN of a decoder manifest. */ public String getDecoderManifestArn() { return this.decoderManifestArn; } /** ** The ARN of a decoder manifest. *
* * @param decoderManifestArn * The ARN of a decoder manifest. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequest withDecoderManifestArn(String decoderManifestArn) { setDecoderManifestArn(decoderManifestArn); return this; } /** *
* Static information about a vehicle in a key-value pair. For example: "engineType"
:
* "1.3 L R2"
*
* A campaign must include the keys (attribute names) in dataExtraDimensions
for them to display in
* Amazon Timestream.
*
"engineType"
:
* "1.3 L R2"
*
* A campaign must include the keys (attribute names) in
* Static information about a vehicle in a key-value pair. For example:
* A campaign must include the keys (attribute names) in dataExtraDimensions
for them to
* display in Amazon Timestream.
*/
public java.util.Map"engineType"
:
* "1.3 L R2"
* dataExtraDimensions
for them to display in
* Amazon Timestream.
* "engineType"
:
* "1.3 L R2"
* A campaign must include the keys (attribute names) in
* Static information about a vehicle in a key-value pair. For example:
* A campaign must include the keys (attribute names) in dataExtraDimensions
for them to display
* in Amazon Timestream.
*/
public void setAttributes(java.util.Map"engineType"
:
* "1.3 L R2"
* dataExtraDimensions
for them to display in
* Amazon Timestream.
* "engineType"
:
* "1.3 L R2"
* A campaign must include the keys (attribute names) in
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing
* Amazon Web Services IoT thing as a vehicle.
*
* Default: dataExtraDimensions
for them to display
* in Amazon Timestream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVehicleRequest withAttributes(java.util.Map
*
* Default:
* @see VehicleAssociationBehavior
*/
public void setAssociationBehavior(String associationBehavior) {
this.associationBehavior = associationBehavior;
}
/**
*
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing * Amazon Web Services IoT thing as a vehicle. *
*
* Default:
*
* Default:
* @see VehicleAssociationBehavior
*/
public String getAssociationBehavior() {
return this.associationBehavior;
}
/**
*
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing * Amazon Web Services IoT thing as a vehicle. *
*
* Default:
*
* Default:
* @return Returns a reference to this object so that method calls can be chained together.
* @see VehicleAssociationBehavior
*/
public CreateVehicleRequest withAssociationBehavior(String associationBehavior) {
setAssociationBehavior(associationBehavior);
return this;
}
/**
*
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing * Amazon Web Services IoT thing as a vehicle. *
*
* Default:
*
* Default:
* @return Returns a reference to this object so that method calls can be chained together.
* @see VehicleAssociationBehavior
*/
public CreateVehicleRequest withAssociationBehavior(VehicleAssociationBehavior associationBehavior) {
this.associationBehavior = associationBehavior.toString();
return this;
}
/**
*
* Metadata that can be used to manage the vehicle. *
* * @return Metadata that can be used to manage the vehicle. */ public java.util.List* Metadata that can be used to manage the vehicle. *
* * @param tags * Metadata that can be used to manage the vehicle. */ public void setTags(java.util.Collection* Metadata that can be used to manage the vehicle. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Metadata that can be used to manage the vehicle. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Metadata that can be used to manage the vehicle. *
* * @param tags * Metadata that can be used to manage the vehicle. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequest withTags(java.util.Collection