@Generated(value="software.amazon.awssdk:codegen") public final class CreateJobRequest extends IotRequest implements ToCopyableBuilder<CreateJobRequest.Builder,CreateJobRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateJobRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AbortConfig |
abortConfig()
Allows you to create criteria to abort a job.
|
static CreateJobRequest.Builder |
builder() |
String |
description()
A short text description of the job.
|
String |
document()
The job document.
|
String |
documentSource()
An S3 link to the job document.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasTargets()
Returns true if the Targets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
JobExecutionsRolloutConfig |
jobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
|
String |
jobId()
A job identifier which must be unique for your AWS account.
|
String |
namespaceId()
The namespace used to indicate that a job is a customer-managed job.
|
PresignedUrlConfig |
presignedUrlConfig()
Configuration information for pre-signed S3 URLs.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateJobRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
Metadata which can be used to manage the job.
|
List<String> |
targets()
A list of things and thing groups to which the job should be sent.
|
TargetSelection |
targetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
String |
targetSelectionAsString()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
TimeoutConfig |
timeoutConfig()
Specifies the amount of time each device has to finish its execution of the job.
|
CreateJobRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String jobId()
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
public final boolean hasTargets()
public final List<String> targets()
A list of things and thing groups to which the job should be sent.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargets() to see if a value was sent in this field.
public final String documentSource()
An S3 link to the job document.
public final String document()
The job document.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
public final String description()
A short text description of the job.
public final PresignedUrlConfig presignedUrlConfig()
Configuration information for pre-signed S3 URLs.
public final TargetSelection targetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
If the service returns an enum value that is not available in the current SDK version, targetSelection
will return TargetSelection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from targetSelectionAsString().
TargetSelectionpublic final String targetSelectionAsString()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
If the service returns an enum value that is not available in the current SDK version, targetSelection
will return TargetSelection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from targetSelectionAsString().
TargetSelectionpublic final JobExecutionsRolloutConfig jobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
public final AbortConfig abortConfig()
Allows you to create criteria to abort a job.
public final TimeoutConfig timeoutConfig()
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the
job execution status is set to IN_PROGRESS. If the job execution status is not set to another
terminal state before the time expires, it will be automatically set to TIMED_OUT.
IN_PROGRESS. If the job execution status is not set
to another terminal state before the time expires, it will be automatically set to TIMED_OUT
.public final boolean hasTags()
public final List<Tag> tags()
Metadata which can be used to manage the job.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final String namespaceId()
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, AWS IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId feature is in public preview.
When you specify a value for this parameter, AWS IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId feature is in public preview.
public CreateJobRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateJobRequest.Builder,CreateJobRequest>toBuilder in class IotRequestpublic static CreateJobRequest.Builder builder()
public static Class<? extends CreateJobRequest.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 © 2021. All rights reserved.