public static interface StopInstanceRequest.Builder extends OpsWorksRequest.Builder, SdkPojo, CopyableBuilder<StopInstanceRequest.Builder,StopInstanceRequest>
Modifier and Type | Method and Description |
---|---|
StopInstanceRequest.Builder |
force(Boolean force)
Specifies whether to force an instance to stop.
|
StopInstanceRequest.Builder |
instanceId(String instanceId)
The instance ID.
|
StopInstanceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
StopInstanceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
StopInstanceRequest.Builder instanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.StopInstanceRequest.Builder force(Boolean force)
Specifies whether to force an instance to stop. If the instance's root device type is ebs
, or
EBS-backed, adding the Force
parameter to the StopInstances
API call disassociates
the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance.
You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS
OpsWorks Stacks instance with a new one.
force
- Specifies whether to force an instance to stop. If the instance's root device type is ebs
, or EBS-backed, adding the Force
parameter to the StopInstances
API call
disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the
OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after
troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.StopInstanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.StopInstanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.