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 UpdateConfigurationTemplate operation.

Updates the specified configuration template to have the specified properties or configuration option values.

NOTE: If a property (for example, ApplicationName) is not provided, its value remains unchanged. To clear such properties, specify an empty string.

Related Topics

  • DescribeConfigurationOptions

 
 public class UpdateConfigurationTemplateRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of the application associated with the configuration template to update.

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

Constraints:
Length: 1 - 100

 
     private String applicationName;

    
The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

 
     private String templateName;

    
A new description for the configuration.

Constraints:
Length: 0 - 200

 
     private String description;

    
A list of configuration option settings to update with the new specified option value.
 
A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

 
Default constructor for a new UpdateConfigurationTemplateRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public UpdateConfigurationTemplateRequest() {}
    
    
Constructs a new UpdateConfigurationTemplateRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
applicationName The name of the application associated with the configuration template to update.

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

templateName The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

    public UpdateConfigurationTemplateRequest(String applicationNameString templateName) {
        setApplicationName(applicationName);
        setTemplateName(templateName);
    }

    
The name of the application associated with the configuration template to update.

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

Constraints:
Length: 1 - 100

Returns:
The name of the application associated with the configuration template to update.

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

    public String getApplicationName() {
        return ;
    }
    
    
The name of the application associated with the configuration template to update.

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

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application associated with the configuration template to update.

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

    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }
    
    
The name of the application associated with the configuration template to update.

If no application is found with this name, UpdateConfigurationTemplate 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 associated with the configuration template to update.

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

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = applicationName;
        return this;
    }

    
The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Returns:
The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

    public String getTemplateName() {
        return ;
    }
    
    
The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Parameters:
templateName The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

    public void setTemplateName(String templateName) {
        this. = templateName;
    }
    
    
The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue 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 update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = templateName;
        return this;
    }

    
A new description for the configuration.

Constraints:
Length: 0 - 200

Returns:
A new description for the configuration.
    public String getDescription() {
        return ;
    }
    
    
A new description for the configuration.

Constraints:
Length: 0 - 200

Parameters:
description A new description for the configuration.
    public void setDescription(String description) {
        this. = description;
    }
    
    
A new description for the configuration.

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

Constraints:
Length: 0 - 200

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

    
A list of configuration option settings to update with the new specified option value.

Returns:
A list of configuration option settings to update with the new specified option value.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of configuration option settings to update with the new specified option value.

Parameters:
optionSettings A list of configuration option settings to update with the new specified option value.
    public void setOptionSettings(java.util.Collection<ConfigurationOptionSettingoptionSettings) {
        if (optionSettings == null) {
            this. = null;
            return;
        }
        optionSettingsCopy.addAll(optionSettings);
        this. = optionSettingsCopy;
    }
    
    
A list of configuration option settings to update with the new specified option value.

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 A list of configuration option settings to update with the new specified option value.
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 configuration option settings to update with the new specified option value.

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

Parameters:
optionSettings A list of configuration option settings to update with the new specified option value.
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 configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

Returns:
A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

Parameters:
optionsToRemove A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

    public void setOptionsToRemove(java.util.Collection<OptionSpecificationoptionsToRemove) {
        if (optionsToRemove == null) {
            this. = null;
            return;
        }
        optionsToRemoveCopy.addAll(optionsToRemove);
        this. = optionsToRemoveCopy;
    }
    
    
A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

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 configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

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

Constraint: You can remove only UserDefined configuration options.

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

Parameters:
optionsToRemove A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

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 (getTemplateName() != nullsb.append("TemplateName: " + getTemplateName() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        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 + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().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 UpdateConfigurationTemplateRequest == 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.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
        
            return (UpdateConfigurationTemplateRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X