/* * 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.iotwireless.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 UpdatePositionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Resource identifier of the resource for which position is updated. *
*/ private String resourceIdentifier; /** ** Resource type of the resource for which position is updated. *
*/ private String resourceType; /** ** The position information of the resource. *
*/ private java.util.List* Resource identifier of the resource for which position is updated. *
* * @param resourceIdentifier * Resource identifier of the resource for which position is updated. */ public void setResourceIdentifier(String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; } /** ** Resource identifier of the resource for which position is updated. *
* * @return Resource identifier of the resource for which position is updated. */ public String getResourceIdentifier() { return this.resourceIdentifier; } /** ** Resource identifier of the resource for which position is updated. *
* * @param resourceIdentifier * Resource identifier of the resource for which position is updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePositionRequest withResourceIdentifier(String resourceIdentifier) { setResourceIdentifier(resourceIdentifier); return this; } /** ** Resource type of the resource for which position is updated. *
* * @param resourceType * Resource type of the resource for which position is updated. * @see PositionResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** ** Resource type of the resource for which position is updated. *
* * @return Resource type of the resource for which position is updated. * @see PositionResourceType */ public String getResourceType() { return this.resourceType; } /** ** Resource type of the resource for which position is updated. *
* * @param resourceType * Resource type of the resource for which position is updated. * @return Returns a reference to this object so that method calls can be chained together. * @see PositionResourceType */ public UpdatePositionRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** ** Resource type of the resource for which position is updated. *
* * @param resourceType * Resource type of the resource for which position is updated. * @return Returns a reference to this object so that method calls can be chained together. * @see PositionResourceType */ public UpdatePositionRequest withResourceType(PositionResourceType resourceType) { this.resourceType = resourceType.toString(); return this; } /** ** The position information of the resource. *
* * @return The position information of the resource. */ public java.util.List* The position information of the resource. *
* * @param position * The position information of the resource. */ public void setPosition(java.util.Collection* The position information of the resource. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPosition(java.util.Collection)} or {@link #withPosition(java.util.Collection)} if you want to override * the existing values. *
* * @param position * The position information of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePositionRequest withPosition(Float... position) { if (this.position == null) { setPosition(new java.util.ArrayList* The position information of the resource. *
* * @param position * The position information of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePositionRequest withPosition(java.util.Collection