/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the vehicle to create. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateVehicleRequestItem implements Serializable, Cloneable, StructuredPojo { /** ** The unique ID of the vehicle to create. *
*/ private String vehicleName; /** ** The ARN of the vehicle model (model manifest) to create the vehicle from. *
*/ private String modelManifestArn; /** ** The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. *
*/ private String decoderManifestArn; /** *
* Static information about a vehicle in a key-value pair. For example: "engine Type"
:
* "v6"
*
* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing thing * as a vehicle. *
*/ private String associationBehavior; /** ** Metadata which 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 CreateVehicleRequestItem withVehicleName(String vehicleName) { setVehicleName(vehicleName); return this; } /** ** The ARN of the vehicle model (model manifest) to create the vehicle from. *
* * @param modelManifestArn * The ARN of the vehicle model (model manifest) to create the vehicle from. */ public void setModelManifestArn(String modelManifestArn) { this.modelManifestArn = modelManifestArn; } /** ** The ARN of the vehicle model (model manifest) to create the vehicle from. *
* * @return The ARN of the vehicle model (model manifest) to create the vehicle from. */ public String getModelManifestArn() { return this.modelManifestArn; } /** ** The ARN of the vehicle model (model manifest) to create the vehicle from. *
* * @param modelManifestArn * The ARN of the vehicle model (model manifest) to create the vehicle from. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequestItem withModelManifestArn(String modelManifestArn) { setModelManifestArn(modelManifestArn); return this; } /** ** The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. *
* * @param decoderManifestArn * The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. */ public void setDecoderManifestArn(String decoderManifestArn) { this.decoderManifestArn = decoderManifestArn; } /** ** The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. *
* * @return The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. */ public String getDecoderManifestArn() { return this.decoderManifestArn; } /** ** The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. *
* * @param decoderManifestArn * The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequestItem withDecoderManifestArn(String decoderManifestArn) { setDecoderManifestArn(decoderManifestArn); return this; } /** *
* Static information about a vehicle in a key-value pair. For example: "engine Type"
:
* "v6"
*
"engine Type"
:
* "v6"
*/
public java.util.Map
* Static information about a vehicle in a key-value pair. For example: "engine Type"
:
* "v6"
*
"engine Type"
:
* "v6"
*/
public void setAttributes(java.util.Map
* Static information about a vehicle in a key-value pair. For example: "engine Type"
:
* "v6"
*
"engine Type"
:
* "v6"
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVehicleRequestItem withAttributes(java.util.Map* An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing thing * as a vehicle. *
* * @param associationBehavior * An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an * existing thing as a vehicle. * @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 thing * as a vehicle. *
* * @return An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an * existing thing as a vehicle. * @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 thing * as a vehicle. *
* * @param associationBehavior * An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an * existing thing as a vehicle. * @return Returns a reference to this object so that method calls can be chained together. * @see VehicleAssociationBehavior */ public CreateVehicleRequestItem 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 thing * as a vehicle. *
* * @param associationBehavior * An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an * existing thing as a vehicle. * @return Returns a reference to this object so that method calls can be chained together. * @see VehicleAssociationBehavior */ public CreateVehicleRequestItem withAssociationBehavior(VehicleAssociationBehavior associationBehavior) { this.associationBehavior = associationBehavior.toString(); return this; } /** ** Metadata which can be used to manage the vehicle. *
* * @return Metadata which can be used to manage the vehicle. */ public java.util.List* Metadata which can be used to manage the vehicle. *
* * @param tags * Metadata which can be used to manage the vehicle. */ public void setTags(java.util.Collection* Metadata which 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 which can be used to manage the vehicle. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequestItem withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Metadata which can be used to manage the vehicle. *
* * @param tags * Metadata which can be used to manage the vehicle. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVehicleRequestItem withTags(java.util.Collection