Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2014 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.elasticbeanstalk.model;
 
 
Container for the parameters to the DescribeEnvironments operation.

Returns descriptions for existing environments.

 
 public class DescribeEnvironmentsRequest extends AmazonWebServiceRequest implements Serializable {

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

Constraints:
Length: 1 - 100

 
     private String applicationName;

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

Constraints:
Length: 1 - 100

 
     private String versionLabel;

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
 
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
 
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

 
     private Boolean includeDeleted;

    
If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.
 
     private java.util.Date includedDeletedBackTo;

    
Default constructor for a new DescribeEnvironmentsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public DescribeEnvironmentsRequest() {}
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

Constraints:
Length: 1 - 100

Returns:
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.
 
     public String getApplicationName() {
         return ;
     }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

Constraints:
Length: 1 - 100

Parameters:
applicationName If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.
    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
applicationName If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withApplicationName(String applicationName) {
        this. = applicationName;
        return this;
    }

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

Constraints:
Length: 1 - 100

Returns:
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.
    public String getVersionLabel() {
        return ;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

Constraints:
Length: 1 - 100

Parameters:
versionLabel If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.
    public void setVersionLabel(String versionLabel) {
        this. = versionLabel;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
versionLabel If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withVersionLabel(String versionLabel) {
        this. = versionLabel;
        return this;
    }

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

Returns:
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
    public java.util.List<StringgetEnvironmentIds() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

Parameters:
environmentIds If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
    public void setEnvironmentIds(java.util.Collection<StringenvironmentIds) {
        if (environmentIds == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringenvironmentIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(environmentIds.size());
        environmentIdsCopy.addAll(environmentIds);
        this. = environmentIdsCopy;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentIds If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withEnvironmentIds(String... environmentIds) {
        if (getEnvironmentIds() == nullsetEnvironmentIds(new java.util.ArrayList<String>(environmentIds.length));
        for (String value : environmentIds) {
            getEnvironmentIds().add(value);
        }
        return this;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentIds If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (environmentIds == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringenvironmentIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(environmentIds.size());
            environmentIdsCopy.addAll(environmentIds);
            this. = environmentIdsCopy;
        }
        return this;
    }

    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

Returns:
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
    public java.util.List<StringgetEnvironmentNames() {
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

Parameters:
environmentNames If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
    public void setEnvironmentNames(java.util.Collection<StringenvironmentNames) {
        if (environmentNames == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringenvironmentNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(environmentNames.size());
        environmentNamesCopy.addAll(environmentNames);
        this. = environmentNamesCopy;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentNames If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withEnvironmentNames(String... environmentNames) {
        if (getEnvironmentNames() == nullsetEnvironmentNames(new java.util.ArrayList<String>(environmentNames.length));
        for (String value : environmentNames) {
            getEnvironmentNames().add(value);
        }
        return this;
    }
    
    
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentNames If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (environmentNames == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringenvironmentNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(environmentNames.size());
            environmentNamesCopy.addAll(environmentNames);
            this. = environmentNamesCopy;
        }
        return this;
    }

    
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

Returns:
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

    public Boolean isIncludeDeleted() {
        return ;
    }
    
    
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

Parameters:
includeDeleted Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

    public void setIncludeDeleted(Boolean includeDeleted) {
        this. = includeDeleted;
    }
    
    
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

Returns a reference to this object so that method calls can be chained together.

Parameters:
includeDeleted Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withIncludeDeleted(Boolean includeDeleted) {
        this. = includeDeleted;
        return this;
    }

    
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

Returns:
Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

    public Boolean getIncludeDeleted() {
        return ;
    }

    
If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.

Returns:
If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.
        return ;
    }
    
    
If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.

Parameters:
includedDeletedBackTo If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.
    public void setIncludedDeletedBackTo(java.util.Date includedDeletedBackTo) {
        this. = includedDeletedBackTo;
    }
    
    
If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
includedDeletedBackTo If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeEnvironmentsRequest withIncludedDeletedBackTo(java.util.Date includedDeletedBackTo) {
        this. = includedDeletedBackTo;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getApplicationName() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getVersionLabel() != nullsb.append("VersionLabel: " + getVersionLabel() + ",");
        if (getEnvironmentIds() != nullsb.append("EnvironmentIds: " + getEnvironmentIds() + ",");
        if (getEnvironmentNames() != nullsb.append("EnvironmentNames: " + getEnvironmentNames() + ",");
        if (isIncludeDeleted() != nullsb.append("IncludeDeleted: " + isIncludeDeleted() + ",");
        if (getIncludedDeletedBackTo() != nullsb.append("IncludedDeletedBackTo: " + getIncludedDeletedBackTo() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); 
        hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); 
        hashCode = prime * hashCode + ((getEnvironmentIds() == null) ? 0 : getEnvironmentIds().hashCode()); 
        hashCode = prime * hashCode + ((getEnvironmentNames() == null) ? 0 : getEnvironmentNames().hashCode()); 
        hashCode = prime * hashCode + ((isIncludeDeleted() == null) ? 0 : isIncludeDeleted().hashCode()); 
        hashCode = prime * hashCode + ((getIncludedDeletedBackTo() == null) ? 0 : getIncludedDeletedBackTo().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeEnvironmentsRequest == falsereturn false;
        
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getVersionLabel() == null ^ this.getVersionLabel() == nullreturn false;
        if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == falsereturn false
        if (other.getEnvironmentIds() == null ^ this.getEnvironmentIds() == nullreturn false;
        if (other.getEnvironmentIds() != null && other.getEnvironmentIds().equals(this.getEnvironmentIds()) == falsereturn false
        if (other.getEnvironmentNames() == null ^ this.getEnvironmentNames() == nullreturn false;
        if (other.getEnvironmentNames() != null && other.getEnvironmentNames().equals(this.getEnvironmentNames()) == falsereturn false
        if (other.isIncludeDeleted() == null ^ this.isIncludeDeleted() == nullreturn false;
        if (other.isIncludeDeleted() != null && other.isIncludeDeleted().equals(this.isIncludeDeleted()) == falsereturn false
        if (other.getIncludedDeletedBackTo() == null ^ this.getIncludedDeletedBackTo() == nullreturn false;
        if (other.getIncludedDeletedBackTo() != null && other.getIncludedDeletedBackTo().equals(this.getIncludedDeletedBackTo()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X