Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

Describes the settings for a configuration set.

 
 public class UpdateConfigurationTemplateResult implements SerializableCloneable {

    
The name of the solution stack this configuration set uses.

Constraints:
Length: 0 - 100

 
     private String solutionStackName;

    
The name of the application associated with this configuration set.

Constraints:
Length: 1 - 100

 
     private String applicationName;

    
If not null, the name of the configuration template for this configuration set.

Constraints:
Length: 1 - 100

 
     private String templateName;

    
Describes this configuration set.

Constraints:
Length: 0 - 200

 
     private String description;

    
If not null, the name of the environment for this configuration set.

Constraints:
Length: 4 - 23

 
     private String environmentName;

    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

Constraints:
Allowed Values: deployed, pending, failed

 
     private String deploymentStatus;

    
The date (in UTC time) when this configuration set was created.
 
     private java.util.Date dateCreated;

    
The date (in UTC time) when this configuration set was last modified.
    private java.util.Date dateUpdated;

    
A list of the configuration options and their values in this configuration set.
The name of the solution stack this configuration set uses.

Constraints:
Length: 0 - 100

Returns:
The name of the solution stack this configuration set uses.
    public String getSolutionStackName() {
        return ;
    }
    
    
The name of the solution stack this configuration set uses.

Constraints:
Length: 0 - 100

Parameters:
solutionStackName The name of the solution stack this configuration set uses.
    public void setSolutionStackName(String solutionStackName) {
        this. = solutionStackName;
    }
    
    
The name of the solution stack this configuration set uses.

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

Constraints:
Length: 0 - 100

Parameters:
solutionStackName The name of the solution stack this configuration set uses.
Returns:
A reference to this updated object so that method calls can be chained together.
    public UpdateConfigurationTemplateResult withSolutionStackName(String solutionStackName) {
        this. = solutionStackName;
        return this;
    }

    
The name of the application associated with this configuration set.

Constraints:
Length: 1 - 100

Returns:
The name of the application associated with this configuration set.
    public String getApplicationName() {
        return ;
    }
    
    
The name of the application associated with this configuration set.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application associated with this configuration set.
    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }
    
    
The name of the application associated with this configuration set.

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

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application associated with this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = applicationName;
        return this;
    }

    
If not null, the name of the configuration template for this configuration set.

Constraints:
Length: 1 - 100

Returns:
If not null, the name of the configuration template for this configuration set.
    public String getTemplateName() {
        return ;
    }
    
    
If not null, the name of the configuration template for this configuration set.

Constraints:
Length: 1 - 100

Parameters:
templateName If not null, the name of the configuration template for this configuration set.
    public void setTemplateName(String templateName) {
        this. = templateName;
    }
    
    
If not null, the name of the configuration template for this configuration set.

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

Constraints:
Length: 1 - 100

Parameters:
templateName If not null, the name of the configuration template for this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = templateName;
        return this;
    }

    
Describes this configuration set.

Constraints:
Length: 0 - 200

Returns:
Describes this configuration set.
    public String getDescription() {
        return ;
    }
    
    
Describes this configuration set.

Constraints:
Length: 0 - 200

Parameters:
description Describes this configuration set.
    public void setDescription(String description) {
        this. = description;
    }
    
    
Describes this configuration set.

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

Constraints:
Length: 0 - 200

Parameters:
description Describes this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = description;
        return this;
    }

    
If not null, the name of the environment for this configuration set.

Constraints:
Length: 4 - 23

Returns:
If not null, the name of the environment for this configuration set.
    public String getEnvironmentName() {
        return ;
    }
    
    
If not null, the name of the environment for this configuration set.

Constraints:
Length: 4 - 23

Parameters:
environmentName If not null, the name of the environment for this configuration set.
    public void setEnvironmentName(String environmentName) {
        this. = environmentName;
    }
    
    
If not null, the name of the environment for this configuration set.

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

Constraints:
Length: 4 - 23

Parameters:
environmentName If not null, the name of the environment for this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = environmentName;
        return this;
    }

    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

Constraints:
Allowed Values: deployed, pending, failed

Returns:
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
See also:
ConfigurationDeploymentStatus
    public String getDeploymentStatus() {
        return ;
    }
    
    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

Constraints:
Allowed Values: deployed, pending, failed

Parameters:
deploymentStatus If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
See also:
ConfigurationDeploymentStatus
    public void setDeploymentStatus(String deploymentStatus) {
        this. = deploymentStatus;
    }
    
    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

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

Constraints:
Allowed Values: deployed, pending, failed

Parameters:
deploymentStatus If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ConfigurationDeploymentStatus
        this. = deploymentStatus;
        return this;
    }

    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

Constraints:
Allowed Values: deployed, pending, failed

Parameters:
deploymentStatus If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
See also:
ConfigurationDeploymentStatus
    public void setDeploymentStatus(ConfigurationDeploymentStatus deploymentStatus) {
        this. = deploymentStatus.toString();
    }
    
    
If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.

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

Constraints:
Allowed Values: deployed, pending, failed

Parameters:
deploymentStatus If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set: <enumValues> <value name="null">

null: This configuration is not associated with a running environment. </value> <value name="pending">

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying. </value> <value name="deployed">

deployed: This is the configuration that is currently deployed to the associated running environment. </value> <value name="failed">

failed: This is a draft configuration, that failed to successfully deploy. </value> </enumValues>

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ConfigurationDeploymentStatus
        this. = deploymentStatus.toString();
        return this;
    }

    
The date (in UTC time) when this configuration set was created.

Returns:
The date (in UTC time) when this configuration set was created.
    public java.util.Date getDateCreated() {
        return ;
    }
    
    
The date (in UTC time) when this configuration set was created.

Parameters:
dateCreated The date (in UTC time) when this configuration set was created.
    public void setDateCreated(java.util.Date dateCreated) {
        this. = dateCreated;
    }
    
    
The date (in UTC time) when this configuration set was created.

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

Parameters:
dateCreated The date (in UTC time) when this configuration set was created.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = dateCreated;
        return this;
    }

    
The date (in UTC time) when this configuration set was last modified.

Returns:
The date (in UTC time) when this configuration set was last modified.
    public java.util.Date getDateUpdated() {
        return ;
    }
    
    
The date (in UTC time) when this configuration set was last modified.

Parameters:
dateUpdated The date (in UTC time) when this configuration set was last modified.
    public void setDateUpdated(java.util.Date dateUpdated) {
        this. = dateUpdated;
    }
    
    
The date (in UTC time) when this configuration set was last modified.

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

Parameters:
dateUpdated The date (in UTC time) when this configuration set was last modified.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = dateUpdated;
        return this;
    }

    
A list of the configuration options and their values in this configuration set.

Returns:
A list of the configuration options and their values in this configuration set.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of the configuration options and their values in this configuration set.

Parameters:
optionSettings A list of the configuration options and their values in this configuration set.
    public void setOptionSettings(java.util.Collection<ConfigurationOptionSettingoptionSettings) {
        if (optionSettings == null) {
            this. = null;
            return;
        }
        optionSettingsCopy.addAll(optionSettings);
        this. = optionSettingsCopy;
    }
    
    
A list of the configuration options and their values in this configuration set.

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

Parameters:
optionSettings A list of the configuration options and their values in this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getOptionSettings() == nullsetOptionSettings(new java.util.ArrayList<ConfigurationOptionSetting>(optionSettings.length));
        for (ConfigurationOptionSetting value : optionSettings) {
            getOptionSettings().add(value);
        }
        return this;
    }
    
    
A list of the configuration options and their values in this configuration set.

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

Parameters:
optionSettings A list of the configuration options and their values in this configuration set.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (optionSettings == null) {
            this. = null;
        } else {
            optionSettingsCopy.addAll(optionSettings);
            this. = optionSettingsCopy;
        }
        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 (getSolutionStackName() != nullsb.append("SolutionStackName: " + getSolutionStackName() + ",");
        if (getApplicationName() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getTemplateName() != nullsb.append("TemplateName: " + getTemplateName() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getEnvironmentName() != nullsb.append("EnvironmentName: " + getEnvironmentName() + ",");
        if (getDeploymentStatus() != nullsb.append("DeploymentStatus: " + getDeploymentStatus() + ",");
        if (getDateCreated() != nullsb.append("DateCreated: " + getDateCreated() + ",");
        if (getDateUpdated() != nullsb.append("DateUpdated: " + getDateUpdated() + ",");
        if (getOptionSettings() != nullsb.append("OptionSettings: " + getOptionSettings() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); 
        hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); 
        hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode()); 
        hashCode = prime * hashCode + ((getDeploymentStatus() == null) ? 0 : getDeploymentStatus().hashCode()); 
        hashCode = prime * hashCode + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode()); 
        hashCode = prime * hashCode + ((getDateUpdated() == null) ? 0 : getDateUpdated().hashCode()); 
        hashCode = prime * hashCode + ((getOptionSettings() == null) ? 0 : getOptionSettings().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof UpdateConfigurationTemplateResult == falsereturn false;
        
        if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == nullreturn false;
        if (other.getSolutionStackName() != null && other.getSolutionStackName().equals(this.getSolutionStackName()) == falsereturn false
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getTemplateName() == null ^ this.getTemplateName() == nullreturn false;
        if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == nullreturn false;
        if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == falsereturn false
        if (other.getDeploymentStatus() == null ^ this.getDeploymentStatus() == nullreturn false;
        if (other.getDeploymentStatus() != null && other.getDeploymentStatus().equals(this.getDeploymentStatus()) == falsereturn false
        if (other.getDateCreated() == null ^ this.getDateCreated() == nullreturn false;
        if (other.getDateCreated() != null && other.getDateCreated().equals(this.getDateCreated()) == falsereturn false
        if (other.getDateUpdated() == null ^ this.getDateUpdated() == nullreturn false;
        if (other.getDateUpdated() != null && other.getDateUpdated().equals(this.getDateUpdated()) == falsereturn false
        if (other.getOptionSettings() == null ^ this.getOptionSettings() == nullreturn false;
        if (other.getOptionSettings() != null && other.getOptionSettings().equals(this.getOptionSettings()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (UpdateConfigurationTemplateResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X