/* * Copyright 2010-2018 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 com.amazonaws.AmazonWebServiceRequest; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#describeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest) DescribeReservedInstancesModifications operation}. *
* Describes the modifications made to your Reserved Instances. If no * parameter is specified, information about all your Reserved Instances * modification requests is returned. If a modification ID is specified, * only information about the specific modification is returned. *
** For more information, see * Modifying Reserved Instances * in the Amazon Elastic Compute Cloud User Guide. *
* * @see com.amazonaws.services.ec2.AmazonEC2#describeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest) */ public class DescribeReservedInstancesModificationsRequest extends AmazonWebServiceRequest implements Serializable { /** * IDs for the submitted modification request. */ private com.amazonaws.internal.ListWithAutoConstructFlagclient-token - The
* idempotency token for the modification request.
create-date - The time when the modification request
* was created.
effective-date - The time when
* the modification becomes effective.
modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled.
modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances.
modification-result.target-configuration.instance-count
* - The number of new Reserved Instances.
modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances.
modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC).
reserved-instances-id - The ID of the Reserved
* Instances modified.
reserved-instances-modification-id - The ID of the
* modification request.
status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed).
status-message - The
* reason for the status.
update-date - The
* time when the modification request was last updated.
* Returns a reference to this object so that method calls can be chained together.
*
* @param reservedInstancesModificationIds IDs for the submitted modification request.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeReservedInstancesModificationsRequest withReservedInstancesModificationIds(String... reservedInstancesModificationIds) {
if (getReservedInstancesModificationIds() == null) setReservedInstancesModificationIds(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param reservedInstancesModificationIds IDs for the submitted modification request.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeReservedInstancesModificationsRequest withReservedInstancesModificationIds(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param nextToken The token to retrieve the next page of results.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeReservedInstancesModificationsRequest withNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* One or more filters.
* Returns a reference to this object so that method calls can be chained together.
*
* @param filters One or more filters.
* Returns a reference to this object so that method calls can be chained together.
*
* @param filters One or more filters.
*
* @return One or more filters. client-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
*/
public java.util.Listclient-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
*
* @param filters One or more filters. client-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
*/
public void setFilters(java.util.Collectionclient-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
* client-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeReservedInstancesModificationsRequest withFilters(Filter... filters) {
if (getFilters() == null) setFilters(new java.util.ArrayListclient-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
* client-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeReservedInstancesModificationsRequest withFilters(java.util.Collectionclient-token - The
* idempotency token for the modification request. create-date - The time when the modification request
* was created. effective-date - The time when
* the modification becomes effective. modification-result.reserved-instances-id - The ID for
* the Reserved Instances created as part of the modification request.
* This ID is only available when the status of the modification is
* fulfilled. modification-result.target-configuration.availability-zone
* - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count
* - The number of new Reserved Instances. modification-result.target-configuration.instance-type
* - The instance type of the new Reserved Instances. modification-result.target-configuration.platform -
* The network platform of the new Reserved Instances
* (EC2-Classic | EC2-VPC). reserved-instances-id - The ID of the Reserved
* Instances modified. reserved-instances-modification-id - The ID of the
* modification request. status - The status
* of the Reserved Instances modification request
* (processing | fulfilled |
* failed). status-message - The
* reason for the status. update-date - The
* time when the modification request was last updated.