@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.
|
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 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 boolean hasTargets()
public 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 String documentSource()
An S3 link to the job document.
public 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 String description()
A short text description of the job.
public PresignedUrlConfig presignedUrlConfig()
Configuration information for pre-signed S3 URLs.
public 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 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 JobExecutionsRolloutConfig jobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
public AbortConfig abortConfig()
Allows you to create criteria to abort a job.
public 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 boolean hasTags()
public 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 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 int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.