/*
 * 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.DescribeRegionsRequestMarshaller;
/**
 * 
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeRegionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest 
     * The filters.
     *  
     *  
     *  
     *  
     * The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.
     *  
     * Indicates whether to display all Regions, including Regions that are disabled for your account.
     *  
     * The filters.
     *  
     *  
     *  
     * 
     * 
*/
    private com.amazonaws.internal.SdkInternalListendpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
     * opt-in-status - The opt-in status of the Region (opt-in-not-required |
     * opted-in | not-opted-in).
     * region-name - The name of the Region (for example, us-east-1).
     * 
     * 
* 
     * @return The filters.endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
     * opt-in-status - The opt-in status of the Region (opt-in-not-required |
     * opted-in | not-opted-in).
     * region-name - The name of the Region (for example, us-east-1).
     * 
     *         endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com
     *         ).
     *         
     *         opt-in-status - The opt-in status of the Region (opt-in-not-required |
     *         opted-in | not-opted-in).
     *         
     *         region-name - The name of the Region (for example, us-east-1).
     *         
* The filters. *
*
     * endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
     * 
     * opt-in-status - The opt-in status of the Region (opt-in-not-required |
     * opted-in | not-opted-in).
     * 
     * region-name - The name of the Region (for example, us-east-1).
     * 
     *        endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com
     *        ).
     *        
     *        opt-in-status - The opt-in status of the Region (opt-in-not-required |
     *        opted-in | not-opted-in).
     *        
     *        region-name - The name of the Region (for example, us-east-1).
     *        
* The filters. *
*
     * endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
     * 
     * opt-in-status - The opt-in status of the Region (opt-in-not-required |
     * opted-in | not-opted-in).
     * 
     * region-name - The name of the Region (for example, us-east-1).
     * 
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The filters. *
     *        endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com
     *        ).
     *        
     *        opt-in-status - The opt-in status of the Region (opt-in-not-required |
     *        opted-in | not-opted-in).
     *        
     *        region-name - The name of the Region (for example, us-east-1).
     *        
* The filters. *
*
     * endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
     * 
     * opt-in-status - The opt-in status of the Region (opt-in-not-required |
     * opted-in | not-opted-in).
     * 
     * region-name - The name of the Region (for example, us-east-1).
     * 
     *        endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com
     *        ).
     *        
     *        opt-in-status - The opt-in status of the Region (opt-in-not-required |
     *        opted-in | not-opted-in).
     *        
     *        region-name - The name of the Region (for example, us-east-1).
     *        
* The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. *
* * @return The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your * account. */ public java.util.List* The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. *
* * @param regionNames * The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your * account. */ public void setRegionNames(java.util.Collection* The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRegionNames(java.util.Collection)} or {@link #withRegionNames(java.util.Collection)} if you want to * override the existing values. *
* * @param regionNames * The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your * account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeRegionsRequest withRegionNames(String... regionNames) { if (this.regionNames == null) { setRegionNames(new com.amazonaws.internal.SdkInternalList* The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. *
* * @param regionNames * The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your * account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeRegionsRequest withRegionNames(java.util.Collection* Indicates whether to display all Regions, including Regions that are disabled for your account. *
* * @param allRegions * Indicates whether to display all Regions, including Regions that are disabled for your account. */ public void setAllRegions(Boolean allRegions) { this.allRegions = allRegions; } /** ** Indicates whether to display all Regions, including Regions that are disabled for your account. *
* * @return Indicates whether to display all Regions, including Regions that are disabled for your account. */ public Boolean getAllRegions() { return this.allRegions; } /** ** Indicates whether to display all Regions, including Regions that are disabled for your account. *
* * @param allRegions * Indicates whether to display all Regions, including Regions that are disabled for your account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeRegionsRequest withAllRegions(Boolean allRegions) { setAllRegions(allRegions); return this; } /** ** Indicates whether to display all Regions, including Regions that are disabled for your account. *
* * @return Indicates whether to display all Regions, including Regions that are disabled for your account. */ public Boolean isAllRegions() { return this.allRegions; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request