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;
  
  
Container for the parameters to the CreateEnvironment operation.

Launches an environment for the specified application using the specified configuration.

  
  public class CreateEnvironmentRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

  
      private String applicationName;

    
A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

Constraints:
Length: 4 - 23

  
      private String environmentName;

    
Describes this environment.

Constraints:
Length: 0 - 200

  
      private String description;

    
If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.

Constraints:
Length: 4 - 63

  
      private String cNAMEPrefix;

    
This specifies the tier to use for creating this environment.
  
      private EnvironmentTier tier;

    
This specifies the tags applied to resources in the environment.
  
      private com.amazonaws.internal.ListWithAutoConstructFlag<Tagtags;

    
The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

Constraints:
Length: 1 - 100

  
      private String versionLabel;

    
The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 1 - 100

 
     private String templateName;

    
This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 0 - 100

 
     private String solutionStackName;

    
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
 
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
 
Default constructor for a new CreateEnvironmentRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public CreateEnvironmentRequest() {}
    
    
Constructs a new CreateEnvironmentRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
applicationName The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

environmentName A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

 
     public CreateEnvironmentRequest(String applicationNameString environmentName) {
         setApplicationName(applicationName);
         setEnvironmentName(environmentName);
     }

    
The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Returns:
The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

 
     public String getApplicationName() {
         return ;
     }
    
    
The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

 
     public void setApplicationName(String applicationName) {
         this. = applicationName;
     }
    
    
The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

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 that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withApplicationName(String applicationName) {
         this. = applicationName;
         return this;
     }

    
A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

Constraints:
Length: 4 - 23

Returns:
A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

 
     public String getEnvironmentName() {
         return ;
     }
    
    
A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

Constraints:
Length: 4 - 23

Parameters:
environmentName A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

 
     public void setEnvironmentName(String environmentName) {
         this. = environmentName;
     }
    
    
A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

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

Constraints:
Length: 4 - 23

Parameters:
environmentName A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withEnvironmentName(String environmentName) {
         this. = environmentName;
         return this;
     }

    
Describes this environment.

Constraints:
Length: 0 - 200

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

Constraints:
Length: 0 - 200

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

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

Constraints:
Length: 0 - 200

Parameters:
description Describes this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withDescription(String description) {
         this. = description;
         return this;
     }

    
If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.

Constraints:
Length: 4 - 63

Returns:
If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
 
     public String getCNAMEPrefix() {
         return ;
     }
    
    
If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.

Constraints:
Length: 4 - 63

Parameters:
cNAMEPrefix If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
 
     public void setCNAMEPrefix(String cNAMEPrefix) {
         this. = cNAMEPrefix;
     }
    
    
If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.

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

Constraints:
Length: 4 - 63

Parameters:
cNAMEPrefix If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withCNAMEPrefix(String cNAMEPrefix) {
         this. = cNAMEPrefix;
         return this;
     }

    
This specifies the tier to use for creating this environment.

Returns:
This specifies the tier to use for creating this environment.
 
     public EnvironmentTier getTier() {
         return ;
     }
    
    
This specifies the tier to use for creating this environment.

Parameters:
tier This specifies the tier to use for creating this environment.
 
     public void setTier(EnvironmentTier tier) {
         this. = tier;
     }
    
    
This specifies the tier to use for creating this environment.

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

Parameters:
tier This specifies the tier to use for creating this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = tier;
         return this;
     }

    
This specifies the tags applied to resources in the environment.

Returns:
This specifies the tags applied to resources in the environment.
 
     public java.util.List<TaggetTags() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Tag>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
This specifies the tags applied to resources in the environment.

Parameters:
tags This specifies the tags applied to resources in the environment.
 
     public void setTags(java.util.Collection<Tagtags) {
         if (tags == null) {
             this. = null;
             return;
         }
         tagsCopy.addAll(tags);
         this. = tagsCopy;
     }
    
    
This specifies the tags applied to resources in the environment.

NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

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

Parameters:
tags This specifies the tags applied to resources in the environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withTags(Tag... tags) {
         if (getTags() == nullsetTags(new java.util.ArrayList<Tag>(tags.length));
         for (Tag value : tags) {
             getTags().add(value);
         }
         return this;
     }
    
    
This specifies the tags applied to resources in the environment.

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

Parameters:
tags This specifies the tags applied to resources in the environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (tags == null) {
             this. = null;
         } else {
             tagsCopy.addAll(tags);
             this. = tagsCopy;
         }
 
         return this;
     }

    
The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

Constraints:
Length: 1 - 100

Returns:
The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

 
     public String getVersionLabel() {
         return ;
     }
    
    
The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

Constraints:
Length: 1 - 100

Parameters:
versionLabel The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

 
     public void setVersionLabel(String versionLabel) {
         this. = versionLabel;
     }
    
    
The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

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

Constraints:
Length: 1 - 100

Parameters:
versionLabel The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withVersionLabel(String versionLabel) {
         this. = versionLabel;
         return this;
     }

    
The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 1 - 100

Returns:
The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

 
     public String getTemplateName() {
         return ;
     }
    
    
The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 1 - 100

Parameters:
templateName The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

 
     public void setTemplateName(String templateName) {
         this. = templateName;
     }
    
    
The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

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

Constraints:
Length: 1 - 100

Parameters:
templateName The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withTemplateName(String templateName) {
         this. = templateName;
         return this;
     }

    
This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 0 - 100

Returns:
This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

 
     public String getSolutionStackName() {
         return ;
     }
    
    
This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Constraints:
Length: 0 - 100

Parameters:
solutionStackName This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

 
     public void setSolutionStackName(String solutionStackName) {
         this. = solutionStackName;
     }
    
    
This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

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

Constraints:
Length: 0 - 100

Parameters:
solutionStackName This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withSolutionStackName(String solutionStackName) {
         this. = solutionStackName;
         return this;
     }

    
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

Returns:
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

Parameters:
optionSettings If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
 
     public void setOptionSettings(java.util.Collection<ConfigurationOptionSettingoptionSettings) {
         if (optionSettings == null) {
             this. = null;
             return;
         }
         optionSettingsCopy.addAll(optionSettings);
         this. = optionSettingsCopy;
     }
    
    
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

NOTE: This method appends the values to the existing list (if any). Use setOptionSettings(java.util.Collection) or withOptionSettings(java.util.Collection) if you want to override the existing values.

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

Parameters:
optionSettings If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
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;
     }
    
    
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

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

Parameters:
optionSettings If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
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;
     }

    
A list of custom user-defined configuration options to remove from the configuration set for this new environment.

Returns:
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of custom user-defined configuration options to remove from the configuration set for this new environment.

Parameters:
optionsToRemove A list of custom user-defined configuration options to remove from the configuration set for this new environment.
 
     public void setOptionsToRemove(java.util.Collection<OptionSpecificationoptionsToRemove) {
         if (optionsToRemove == null) {
             this. = null;
             return;
         }
         optionsToRemoveCopy.addAll(optionsToRemove);
         this. = optionsToRemoveCopy;
     }
    
    
A list of custom user-defined configuration options to remove from the configuration set for this new environment.

NOTE: This method appends the values to the existing list (if any). Use setOptionsToRemove(java.util.Collection) or withOptionsToRemove(java.util.Collection) if you want to override the existing values.

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

Parameters:
optionsToRemove A list of custom user-defined configuration options to remove from the configuration set for this new environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CreateEnvironmentRequest withOptionsToRemove(OptionSpecification... optionsToRemove) {
         if (getOptionsToRemove() == nullsetOptionsToRemove(new java.util.ArrayList<OptionSpecification>(optionsToRemove.length));
         for (OptionSpecification value : optionsToRemove) {
             getOptionsToRemove().add(value);
         }
         return this;
     }
    
    
A list of custom user-defined configuration options to remove from the configuration set for this new environment.

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

Parameters:
optionsToRemove A list of custom user-defined configuration options to remove from the configuration set for this new environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (optionsToRemove == null) {
             this. = null;
         } else {
             optionsToRemoveCopy.addAll(optionsToRemove);
             this. = optionsToRemoveCopy;
         }
 
         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 (getEnvironmentName() != nullsb.append("EnvironmentName: " + getEnvironmentName() + ",");
         if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
         if (getCNAMEPrefix() != nullsb.append("CNAMEPrefix: " + getCNAMEPrefix() + ",");
         if (getTier() != nullsb.append("Tier: " + getTier() + ",");
         if (getTags() != nullsb.append("Tags: " + getTags() + ",");
         if (getVersionLabel() != nullsb.append("VersionLabel: " + getVersionLabel() + ",");
         if (getTemplateName() != nullsb.append("TemplateName: " + getTemplateName() + ",");
         if (getSolutionStackName() != nullsb.append("SolutionStackName: " + getSolutionStackName() + ",");
         if (getOptionSettings() != nullsb.append("OptionSettings: " + getOptionSettings() + ",");
         if (getOptionsToRemove() != nullsb.append("OptionsToRemove: " + getOptionsToRemove() );
         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 + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode()); 
         hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
         hashCode = prime * hashCode + ((getCNAMEPrefix() == null) ? 0 : getCNAMEPrefix().hashCode()); 
         hashCode = prime * hashCode + ((getTier() == null) ? 0 : getTier().hashCode()); 
         hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); 
         hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); 
         hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); 
         hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); 
         hashCode = prime * hashCode + ((getOptionSettings() == null) ? 0 : getOptionSettings().hashCode()); 
         hashCode = prime * hashCode + ((getOptionsToRemove() == null) ? 0 : getOptionsToRemove().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof CreateEnvironmentRequest == falsereturn false;
         CreateEnvironmentRequest other = (CreateEnvironmentRequest)obj;
         
         if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
         if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
         if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == nullreturn false;
         if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == falsereturn false
         if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
         if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
         if (other.getCNAMEPrefix() == null ^ this.getCNAMEPrefix() == nullreturn false;
         if (other.getCNAMEPrefix() != null && other.getCNAMEPrefix().equals(this.getCNAMEPrefix()) == falsereturn false
         if (other.getTier() == null ^ this.getTier() == nullreturn false;
        if (other.getTier() != null && other.getTier().equals(this.getTier()) == falsereturn false
        if (other.getTags() == null ^ this.getTags() == nullreturn false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == falsereturn false
        if (other.getVersionLabel() == null ^ this.getVersionLabel() == nullreturn false;
        if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == falsereturn false
        if (other.getTemplateName() == null ^ this.getTemplateName() == nullreturn false;
        if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == falsereturn false
        if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == nullreturn false;
        if (other.getSolutionStackName() != null && other.getSolutionStackName().equals(this.getSolutionStackName()) == falsereturn false
        if (other.getOptionSettings() == null ^ this.getOptionSettings() == nullreturn false;
        if (other.getOptionSettings() != null && other.getOptionSettings().equals(this.getOptionSettings()) == falsereturn false
        if (other.getOptionsToRemove() == null ^ this.getOptionsToRemove() == nullreturn false;
        if (other.getOptionsToRemove() != null && other.getOptionsToRemove().equals(this.getOptionsToRemove()) == falsereturn false
        return true;
    }
    
    @Override
    public CreateEnvironmentRequest clone() {
        
            return (CreateEnvironmentRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X