|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentRequest
public class UpdateEnvironmentRequest
Container for the parameters to the 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.
AWSElasticBeanstalk.updateEnvironment(UpdateEnvironmentRequest)
Constructor Summary | |
---|---|
UpdateEnvironmentRequest()
Default constructor for a new UpdateEnvironmentRequest object. |
Method Summary | |
---|---|
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. |
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 |
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 |
withVersionLabel(String versionLabel)
If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UpdateEnvironmentRequest()
Method Detail |
---|
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 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 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 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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |