public class CreateConfigurationTemplateRequest extends AmazonWebServiceRequest implements Serializable
CreateConfigurationTemplate operation
.
Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.
Related Topics
NOOP
Constructor and Description |
---|
CreateConfigurationTemplateRequest()
Default constructor for a new CreateConfigurationTemplateRequest object.
|
CreateConfigurationTemplateRequest(String applicationName,
String templateName)
Constructs a new CreateConfigurationTemplateRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getApplicationName()
The name of the application to associate with this configuration
template.
|
String |
getDescription()
Describes this configuration.
|
String |
getEnvironmentId()
The ID of the environment used with this configuration template.
|
List<ConfigurationOptionSetting> |
getOptionSettings()
If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value.
|
String |
getSolutionStackName()
The name of the solution stack used by this configuration.
|
SourceConfiguration |
getSourceConfiguration()
If specified, AWS Elastic Beanstalk uses the configuration values from
the specified configuration template to create a new configuration.
|
String |
getTemplateName()
The name of the configuration template.
|
int |
hashCode() |
void |
setApplicationName(String applicationName)
The name of the application to associate with this configuration
template.
|
void |
setDescription(String description)
Describes this configuration.
|
void |
setEnvironmentId(String environmentId)
The ID of the environment used with this configuration template.
|
void |
setOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value.
|
void |
setSolutionStackName(String solutionStackName)
The name of the solution stack used by this configuration.
|
void |
setSourceConfiguration(SourceConfiguration sourceConfiguration)
If specified, AWS Elastic Beanstalk uses the configuration values from
the specified configuration template to create a new configuration.
|
void |
setTemplateName(String templateName)
The name of the configuration template.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateConfigurationTemplateRequest |
withApplicationName(String applicationName)
The name of the application to associate with this configuration
template.
|
CreateConfigurationTemplateRequest |
withDescription(String description)
Describes this configuration.
|
CreateConfigurationTemplateRequest |
withEnvironmentId(String environmentId)
The ID of the environment used with this configuration template.
|
CreateConfigurationTemplateRequest |
withOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value.
|
CreateConfigurationTemplateRequest |
withOptionSettings(ConfigurationOptionSetting... optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value.
|
CreateConfigurationTemplateRequest |
withSolutionStackName(String solutionStackName)
The name of the solution stack used by this configuration.
|
CreateConfigurationTemplateRequest |
withSourceConfiguration(SourceConfiguration sourceConfiguration)
If specified, AWS Elastic Beanstalk uses the configuration values from
the specified configuration template to create a new configuration.
|
CreateConfigurationTemplateRequest |
withTemplateName(String templateName)
The name of the configuration template.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateConfigurationTemplateRequest()
public CreateConfigurationTemplateRequest(String applicationName, String templateName)
applicationName
- The name of the application to associate with
this configuration template. If no application is found with this
name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.templateName
- The name of the configuration template.
Constraint: This name must be unique per application.
Default:
If a configuration template already exists with this name, AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
public String getApplicationName()
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
InvalidParameterValue
error.public void setApplicationName(String applicationName)
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
applicationName
- The name of the application to associate with this configuration
template. If no application is found with this name, AWS Elastic
Beanstalk returns an InvalidParameterValue
error.public CreateConfigurationTemplateRequest withApplicationName(String applicationName)
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
applicationName
- The name of the application to associate with this configuration
template. If no application is found with this name, AWS Elastic
Beanstalk returns an InvalidParameterValue
error.public String getTemplateName()
Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
public void setTemplateName(String templateName)
Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
templateName
- The name of the configuration template. Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
public CreateConfigurationTemplateRequest withTemplateName(String templateName)
Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
templateName
- The name of the configuration template. Constraint: This name must be unique per application.
Default: If a configuration template
already exists with this name, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
public String getSolutionStackName()
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
Constraints:
Length: 0 - 100
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
public void setSolutionStackName(String solutionStackName)
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
Constraints:
Length: 0 - 100
solutionStackName
- The name of the solution stack used by this configuration. The
solution stack specifies the operating system, architecture, and
application server for a configuration template. It determines the set
of configuration options as well as the possible and default values.
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
public CreateConfigurationTemplateRequest withSolutionStackName(String solutionStackName)
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
solutionStackName
- The name of the solution stack used by this configuration. The
solution stack specifies the operating system, architecture, and
application server for a configuration template. It determines the set
of configuration options as well as the possible and default values.
Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
A solution stack name or a source
configuration parameter must be specified, otherwise AWS Elastic
Beanstalk returns an InvalidParameterValue
error.
If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.
public SourceConfiguration getSourceConfiguration()
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
public void setSourceConfiguration(SourceConfiguration sourceConfiguration)
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
sourceConfiguration
- If specified, AWS Elastic Beanstalk uses the configuration values from
the specified configuration template to create a new configuration.
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
public CreateConfigurationTemplateRequest withSourceConfiguration(SourceConfiguration sourceConfiguration)
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
Returns a reference to this object so that method calls can be chained together.
sourceConfiguration
- If specified, AWS Elastic Beanstalk uses the configuration values from
the specified configuration template to create a new configuration.
Values specified in the OptionSettings
parameter of
this call overrides any values obtained from the
SourceConfiguration
.
If no configuration template is
found, returns an InvalidParameterValue
error.
Constraint: If both the solution stack name parameter and the source
configuration parameters are specified, the solution stack of the
source configuration template must match the specified solution stack
name or else AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
public String getEnvironmentId()
public void setEnvironmentId(String environmentId)
environmentId
- The ID of the environment used with this configuration template.public CreateConfigurationTemplateRequest withEnvironmentId(String environmentId)
Returns a reference to this object so that method calls can be chained together.
environmentId
- The ID of the environment used with this configuration template.public String getDescription()
Constraints:
Length: 0 - 200
public void setDescription(String description)
Constraints:
Length: 0 - 200
description
- Describes this configuration.public CreateConfigurationTemplateRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 200
description
- Describes this configuration.public List<ConfigurationOptionSetting> getOptionSettings()
public void setOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
optionSettings
- If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value. The new value overrides the value
obtained from the solution stack or the source configuration template.public CreateConfigurationTemplateRequest withOptionSettings(ConfigurationOptionSetting... optionSettings)
Returns a reference to this object so that method calls can be chained together.
optionSettings
- If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value. The new value overrides the value
obtained from the solution stack or the source configuration template.public CreateConfigurationTemplateRequest withOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
Returns a reference to this object so that method calls can be chained together.
optionSettings
- If specified, AWS Elastic Beanstalk sets the specified configuration
option to the requested value. The new value overrides the value
obtained from the solution stack or the source configuration template.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.