Class TerminateEnvironmentRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticbeanstalk.model.TerminateEnvironmentRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class TerminateEnvironmentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to terminate an environment.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description TerminateEnvironmentRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminateEnvironmentRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetEnvironmentId()The ID of the environment to terminate.StringgetEnvironmentName()The name of the environment to terminate.BooleangetForceTerminate()Terminates the target environment even if another environment in the same group is dependent on it.BooleangetTerminateResources()Indicates whether the associated AWS resources should shut down when the environment is terminated:inthashCode()BooleanisForceTerminate()Terminates the target environment even if another environment in the same group is dependent on it.BooleanisTerminateResources()Indicates whether the associated AWS resources should shut down when the environment is terminated:voidsetEnvironmentId(String environmentId)The ID of the environment to terminate.voidsetEnvironmentName(String environmentName)The name of the environment to terminate.voidsetForceTerminate(Boolean forceTerminate)Terminates the target environment even if another environment in the same group is dependent on it.voidsetTerminateResources(Boolean terminateResources)Indicates whether the associated AWS resources should shut down when the environment is terminated:StringtoString()Returns a string representation of this object; useful for testing and debugging.TerminateEnvironmentRequestwithEnvironmentId(String environmentId)The ID of the environment to terminate.TerminateEnvironmentRequestwithEnvironmentName(String environmentName)The name of the environment to terminate.TerminateEnvironmentRequestwithForceTerminate(Boolean forceTerminate)Terminates the target environment even if another environment in the same group is dependent on it.TerminateEnvironmentRequestwithTerminateResources(Boolean terminateResources)Indicates whether the associated AWS resources should shut down when the environment is terminated:-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setEnvironmentId
public void setEnvironmentId(String environmentId)
The ID of the environment to terminate.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Parameters:
environmentId- The ID of the environment to terminate.Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.
-
getEnvironmentId
public String getEnvironmentId()
The ID of the environment to terminate.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Returns:
- The ID of the environment to terminate.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.
-
withEnvironmentId
public TerminateEnvironmentRequest withEnvironmentId(String environmentId)
The ID of the environment to terminate.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Parameters:
environmentId- The ID of the environment to terminate.Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnvironmentName
public void setEnvironmentName(String environmentName)
The name of the environment to terminate.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Parameters:
environmentName- The name of the environment to terminate.Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.
-
getEnvironmentName
public String getEnvironmentName()
The name of the environment to terminate.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Returns:
- The name of the environment to terminate.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.
-
withEnvironmentName
public TerminateEnvironmentRequest withEnvironmentName(String environmentName)
The name of the environment to terminate.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Parameters:
environmentName- The name of the environment to terminate.Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParametererror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTerminateResources
public void setTerminateResources(Boolean terminateResources)
Indicates whether the associated AWS resources should shut down when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false- Parameters:
terminateResources- Indicates whether the associated AWS resources should shut down when the environment is terminated:-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false-
-
-
getTerminateResources
public Boolean getTerminateResources()
Indicates whether the associated AWS resources should shut down when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false- Returns:
- Indicates whether the associated AWS resources should shut down
when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false -
-
-
withTerminateResources
public TerminateEnvironmentRequest withTerminateResources(Boolean terminateResources)
Indicates whether the associated AWS resources should shut down when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false- Parameters:
terminateResources- Indicates whether the associated AWS resources should shut down when the environment is terminated:-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
isTerminateResources
public Boolean isTerminateResources()
Indicates whether the associated AWS resources should shut down when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false- Returns:
- Indicates whether the associated AWS resources should shut down
when the environment is terminated:
-
true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. -
false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.
For more information, see the AWS Elastic Beanstalk User Guide.
Default:
trueValid Values:
true|false -
-
-
setForceTerminate
public void setForceTerminate(Boolean forceTerminate)
Terminates the target environment even if another environment in the same group is dependent on it.
- Parameters:
forceTerminate- Terminates the target environment even if another environment in the same group is dependent on it.
-
getForceTerminate
public Boolean getForceTerminate()
Terminates the target environment even if another environment in the same group is dependent on it.
- Returns:
- Terminates the target environment even if another environment in the same group is dependent on it.
-
withForceTerminate
public TerminateEnvironmentRequest withForceTerminate(Boolean forceTerminate)
Terminates the target environment even if another environment in the same group is dependent on it.
- Parameters:
forceTerminate- Terminates the target environment even if another environment in the same group is dependent on it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isForceTerminate
public Boolean isForceTerminate()
Terminates the target environment even if another environment in the same group is dependent on it.
- Returns:
- Terminates the target environment even if another environment in the same group is dependent on it.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TerminateEnvironmentRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-