/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.PurchaseScheduledInstancesRequestMarshaller; /** *
* Contains the parameters for PurchaseScheduledInstances. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PurchaseScheduledInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest* Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring * Idempotency. *
*/ private String clientToken; /** ** The purchase requests. *
*/ private com.amazonaws.internal.SdkInternalList* Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring * Idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see * Ensuring * Idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring * Idempotency. *
* * @return Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see * Ensuring * Idempotency. */ public String getClientToken() { return this.clientToken; } /** ** Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring * Idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see * Ensuring * Idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public PurchaseScheduledInstancesRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The purchase requests. *
* * @return The purchase requests. */ public java.util.List* The purchase requests. *
* * @param purchaseRequests * The purchase requests. */ public void setPurchaseRequests(java.util.Collection* The purchase requests. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPurchaseRequests(java.util.Collection)} or {@link #withPurchaseRequests(java.util.Collection)} if you * want to override the existing values. *
* * @param purchaseRequests * The purchase requests. * @return Returns a reference to this object so that method calls can be chained together. */ public PurchaseScheduledInstancesRequest withPurchaseRequests(PurchaseRequest... purchaseRequests) { if (this.purchaseRequests == null) { setPurchaseRequests(new com.amazonaws.internal.SdkInternalList* The purchase requests. *
* * @param purchaseRequests * The purchase requests. * @return Returns a reference to this object so that method calls can be chained together. */ public PurchaseScheduledInstancesRequest withPurchaseRequests(java.util.Collection