public class UpdateEnvironmentRequest extends AmazonWebServiceRequest implements Serializable
UpdateEnvironment operation
.
Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.
Attempting to update both the release and configuration is not
allowed and AWS Elastic Beanstalk returns an
InvalidParameterCombination
error.
When updating the configuration settings to a new template or
individual settings, a draft configuration is created and
DescribeConfigurationSettings for this environment returns two setting
descriptions with different DeploymentStatus
values.
NOOP
Constructor and Description |
---|
UpdateEnvironmentRequest()
Default constructor for a new UpdateEnvironmentRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.
|
String |
getEnvironmentId()
The ID of the environment to update.
|
String |
getEnvironmentName()
The name of the environment to update.
|
List<ConfigurationOptionSetting> |
getOptionSettings()
If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.
|
List<OptionSpecification> |
getOptionsToRemove()
A list of custom user-defined configuration options to remove from the
configuration set for this environment.
|
String |
getTemplateName()
If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment.
|
EnvironmentTier |
getTier()
This specifies the tier to use to update the environment.
|
String |
getVersionLabel()
If this parameter is specified, AWS Elastic Beanstalk deploys the
named application version to the environment.
|
int |
hashCode() |
void |
setDescription(String description)
If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.
|
void |
setEnvironmentId(String environmentId)
The ID of the environment to update.
|
void |
setEnvironmentName(String environmentName)
The name of the environment to update.
|
void |
setOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.
|
void |
setOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
A list of custom user-defined configuration options to remove from the
configuration set for this environment.
|
void |
setTemplateName(String templateName)
If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment.
|
void |
setTier(EnvironmentTier tier)
This specifies the tier to use to update the environment.
|
void |
setVersionLabel(String versionLabel)
If this parameter is specified, AWS Elastic Beanstalk deploys the
named application version to the environment.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateEnvironmentRequest |
withDescription(String description)
If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.
|
UpdateEnvironmentRequest |
withEnvironmentId(String environmentId)
The ID of the environment to update.
|
UpdateEnvironmentRequest |
withEnvironmentName(String environmentName)
The name of the environment to update.
|
UpdateEnvironmentRequest |
withOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.
|
UpdateEnvironmentRequest |
withOptionSettings(ConfigurationOptionSetting... optionSettings)
If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.
|
UpdateEnvironmentRequest |
withOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
A list of custom user-defined configuration options to remove from the
configuration set for this environment.
|
UpdateEnvironmentRequest |
withOptionsToRemove(OptionSpecification... optionsToRemove)
A list of custom user-defined configuration options to remove from the
configuration set for this environment.
|
UpdateEnvironmentRequest |
withTemplateName(String templateName)
If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment.
|
UpdateEnvironmentRequest |
withTier(EnvironmentTier tier)
This specifies the tier to use to update the environment.
|
UpdateEnvironmentRequest |
withVersionLabel(String versionLabel)
If this parameter is specified, AWS Elastic Beanstalk deploys the
named application version to the environment.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UpdateEnvironmentRequest()
public String getEnvironmentId()
If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public void setEnvironmentId(String environmentId)
If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
environmentId
- The ID of the environment to update. If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public UpdateEnvironmentRequest withEnvironmentId(String environmentId)
If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
Returns a reference to this object so that method calls can be chained together.
environmentId
- The ID of the environment to update. If no environment with this
ID exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Condition: You must
specify either this or an EnvironmentName, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public String getEnvironmentName()
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
Constraints:
Length: 4 - 23
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public void setEnvironmentName(String environmentName)
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
Constraints:
Length: 4 - 23
environmentName
- The name of the environment to update. If no environment with this
name exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public UpdateEnvironmentRequest withEnvironmentName(String environmentName)
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 4 - 23
environmentName
- The name of the environment to update. If no environment with this
name exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error. Condition: You must
specify either this or an EnvironmentId, or both. If you do not
specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter
error.
public String getDescription()
Constraints:
Length: 0 - 200
public void setDescription(String description)
Constraints:
Length: 0 - 200
description
- If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.public UpdateEnvironmentRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 200
description
- If this parameter is specified, AWS Elastic Beanstalk updates the
description of this environment.public EnvironmentTier getTier()
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
public void setTier(EnvironmentTier tier)
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
tier
- This specifies the tier to use to update the environment.
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
public UpdateEnvironmentRequest withTier(EnvironmentTier tier)
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
tier
- This specifies the tier to use to update the environment.
Condition: You can only update the tier version for an environment. If
you change the name of the type, AWS Elastic Beanstalk returns
InvalidParameterValue
error.
public String getVersionLabel()
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
InvalidParameterValue
error.public void setVersionLabel(String versionLabel)
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
versionLabel
- If this parameter is specified, AWS Elastic Beanstalk deploys the
named application version to the environment. If no such application
version is found, returns an InvalidParameterValue
error.public UpdateEnvironmentRequest withVersionLabel(String versionLabel)
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
versionLabel
- If this parameter is specified, AWS Elastic Beanstalk deploys the
named application version to the environment. If no such application
version is found, returns an InvalidParameterValue
error.public String getTemplateName()
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
InvalidParameterValue
error.public void setTemplateName(String templateName)
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
templateName
- If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment. If no such configuration
template is found, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.public UpdateEnvironmentRequest withTemplateName(String templateName)
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
templateName
- If this parameter is specified, AWS Elastic Beanstalk deploys this
configuration template to the environment. If no such configuration
template is found, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.public List<ConfigurationOptionSetting> getOptionSettings()
public void setOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
optionSettings
- If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.public UpdateEnvironmentRequest withOptionSettings(ConfigurationOptionSetting... optionSettings)
Returns a reference to this object so that method calls can be chained together.
optionSettings
- If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.public UpdateEnvironmentRequest withOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
Returns a reference to this object so that method calls can be chained together.
optionSettings
- If specified, AWS Elastic Beanstalk updates the configuration set
associated with the running environment and sets the specified
configuration options to the requested value.public List<OptionSpecification> getOptionsToRemove()
public void setOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this environment.public UpdateEnvironmentRequest withOptionsToRemove(OptionSpecification... optionsToRemove)
Returns a reference to this object so that method calls can be chained together.
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this environment.public UpdateEnvironmentRequest withOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
Returns a reference to this object so that method calls can be chained together.
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this environment.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.