Class TerminateEnvironmentRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.elasticbeanstalk.model.ElasticBeanstalkRequest
-
- software.amazon.awssdk.services.elasticbeanstalk.model.TerminateEnvironmentRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<TerminateEnvironmentRequest.Builder,TerminateEnvironmentRequest>
@Generated("software.amazon.awssdk:codegen") public final class TerminateEnvironmentRequest extends ElasticBeanstalkRequest implements ToCopyableBuilder<TerminateEnvironmentRequest.Builder,TerminateEnvironmentRequest>
Request to terminate an environment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTerminateEnvironmentRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TerminateEnvironmentRequest.Builderbuilder()StringenvironmentId()The ID of the environment to terminate.StringenvironmentName()The name of the environment to terminate.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)BooleanforceTerminate()Terminates the target environment even if another environment in the same group is dependent on it.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends TerminateEnvironmentRequest.Builder>serializableBuilderClass()BooleanterminateResources()Indicates whether the associated AWS resources should shut down when the environment is terminated:TerminateEnvironmentRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
environmentId
public final 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.- 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.
-
environmentName
public final 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.- 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.
-
terminateResources
public final 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- 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 -
-
-
forceTerminate
public final Boolean forceTerminate()
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.
-
toBuilder
public TerminateEnvironmentRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TerminateEnvironmentRequest.Builder,TerminateEnvironmentRequest>- Specified by:
toBuilderin classElasticBeanstalkRequest
-
builder
public static TerminateEnvironmentRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends TerminateEnvironmentRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-