Class CancelJobRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iot.model.IotRequest
-
- software.amazon.awssdk.services.iot.model.CancelJobRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest>
@Generated("software.amazon.awssdk:codegen") public final class CancelJobRequest extends IotRequest implements ToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCancelJobRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CancelJobRequest.Builderbuilder()Stringcomment()An optional comment string describing why the job was canceled.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanforce()(Optional) Iftruejob executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringjobId()The unique identifier you assigned to this job when it was created.StringreasonCode()(Optional)A reason code string that explains why the job was canceled.List<SdkField<?>>sdkFields()static Class<? extends CancelJobRequest.Builder>serializableBuilderClass()CancelJobRequest.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
-
jobId
public final String jobId()
The unique identifier you assigned to this job when it was created.
- Returns:
- The unique identifier you assigned to this job when it was created.
-
reasonCode
public final String reasonCode()
(Optional)A reason code string that explains why the job was canceled.
- Returns:
- (Optional)A reason code string that explains why the job was canceled.
-
comment
public final String comment()
An optional comment string describing why the job was canceled.
- Returns:
- An optional comment string describing why the job was canceled.
-
force
public final Boolean force()
(Optional) If
truejob executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default isfalse.Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
- Returns:
- (Optional) If
truejob executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default isfalse.Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
-
toBuilder
public CancelJobRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest>- Specified by:
toBuilderin classIotRequest
-
builder
public static CancelJobRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CancelJobRequest.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
-
-