/* * 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; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.DescribeMovingAddressesRequestMarshaller; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#describeMovingAddresses(DescribeMovingAddressesRequest) DescribeMovingAddresses operation}. *
* Describes your Elastic IP addresses that are being moved to the * EC2-VPC platform, or that are being restored to the EC2-Classic * platform. This request does not return information about any other * Elastic IP addresses in your account. *
* * @see com.amazonaws.services.ec2.AmazonEC2#describeMovingAddresses(DescribeMovingAddressesRequest) */ public class DescribeMovingAddressesRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequestmoving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. Default: If no value is provided, the default is
* 1000.
*/
private Integer maxResults;
/**
* One or more Elastic IP addresses.
*
* @return One or more Elastic IP addresses.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param publicIps One or more Elastic IP addresses.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest withPublicIps(String... publicIps) {
if (getPublicIps() == null) setPublicIps(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param publicIps One or more Elastic IP addresses.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest withPublicIps(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param nextToken The token to use to retrieve the next page of results.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest 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. Default: If no value is provided, the default is
* 1000.
*
* @return The maximum number of results to return for the request in a single
* page. The remaining results of the initial request can be seen by
* sending another request with the returned Default: If no value is provided, the default is
* 1000.
*/
public Integer getMaxResults() {
return maxResults;
}
/**
* The maximum number of results to return for the request in a single
* page. The remaining results of the initial request can be seen by
* sending another request with the returned Default: If no value is provided, the default is
* 1000.
*
* @param maxResults The maximum number of results to return for the request in a single
* page. The remaining results of the initial request can be seen by
* sending another request with the returned Default: If no value is provided, the default is
* 1000.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
* The maximum number of results to return for the request in a single
* page. The remaining results of the initial request can be seen by
* sending another request with the returned Default: If no value is provided, the default is
* 1000.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param maxResults The maximum number of results to return for the request in a single
* page. The remaining results of the initial request can be seen by
* sending another request with the returned Default: If no value is provided, the default is
* 1000.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest withMaxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* This method is intended for internal use only.
* Returns the marshaled request configured with additional parameters to
* enable operation dry-run.
*/
@Override
public Request
*
* @return One or more filters. moving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
*/
public java.util.Listmoving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
*
* @param filters One or more filters. moving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
*/
public void setFilters(java.util.Collectionmoving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
* moving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest withFilters(Filter... filters) {
if (getFilters() == null) setFilters(new java.util.ArrayListmoving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
* moving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeMovingAddressesRequest withFilters(java.util.Collectionmoving-status
- The
* status of the Elastic IP address (MovingToVpc
|
* RestoringToClassic
). NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned. NextToken
* value. This value can be between 5 and 1000; if
* MaxResults
is given a value outside of this range, an
* error is returned.