@Generated(value="software.amazon.awssdk:codegen") public final class StopInstanceRequest extends OpsWorksRequest implements ToCopyableBuilder<StopInstanceRequest.Builder,StopInstanceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
StopInstanceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static StopInstanceRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
force()
Specifies whether to force an instance to stop.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The instance ID.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StopInstanceRequest.Builder> |
serializableBuilderClass() |
StopInstanceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceId()
The instance ID.
public final 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.
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.public StopInstanceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StopInstanceRequest.Builder,StopInstanceRequest>toBuilder in class OpsWorksRequestpublic static StopInstanceRequest.Builder builder()
public static Class<? extends StopInstanceRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.