@Generated(value="software.amazon.awssdk:codegen") public final class CancelCommandRequest extends SsmRequest implements ToCopyableBuilder<CancelCommandRequest.Builder,CancelCommandRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CancelCommandRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CancelCommandRequest.Builder |
builder() |
String |
commandId()
The ID of the command you want to cancel.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstanceIds()
Returns true if the InstanceIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<String> |
instanceIds()
(Optional) A list of instance IDs on which you want to cancel the command.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CancelCommandRequest.Builder> |
serializableBuilderClass() |
CancelCommandRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String commandId()
The ID of the command you want to cancel.
public boolean hasInstanceIds()
public List<String> instanceIds()
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstanceIds()
to see if a value was sent in this field.
public CancelCommandRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CancelCommandRequest.Builder,CancelCommandRequest>
toBuilder
in class SsmRequest
public static CancelCommandRequest.Builder builder()
public static Class<? extends CancelCommandRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsRequest
public boolean equals(Object obj)
equals
in class AwsRequest
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2020. All rights reserved.