@Generated(value="software.amazon.awssdk:codegen") public final class StartJobRequest extends AmplifyRequest implements ToCopyableBuilder<StartJobRequest.Builder,StartJobRequest>
The request structure for the start job request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StartJobRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
appId()
The unique ID for an Amplify app.
|
String |
branchName()
The branch name for the job.
|
static StartJobRequest.Builder |
builder() |
String |
commitId()
The commit ID from a third-party repository provider for the job.
|
String |
commitMessage()
The commit message from a third-party repository provider for the job.
|
Instant |
commitTime()
The commit date and time for the job.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
jobId()
The unique ID for an existing job.
|
String |
jobReason()
A descriptive reason for starting this job.
|
JobType |
jobType()
Describes the type for the job.
|
String |
jobTypeAsString()
Describes the type for the job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartJobRequest.Builder> |
serializableBuilderClass() |
StartJobRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String appId()
The unique ID for an Amplify app.
public final String branchName()
The branch name for the job.
public final String jobId()
The unique ID for an existing job. This is required if the value of jobType is RETRY.
jobType is
RETRY.public final JobType jobType()
Describes the type for the job. The job type RELEASE starts a new job with the latest change from
the specified branch. This value is available only for apps that are connected to a repository. The job type
RETRY retries an existing job. If the job type value is RETRY, the jobId
is also required.
If the service returns an enum value that is not available in the current SDK version, jobType will
return JobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobTypeAsString().
RELEASE starts a new job with the latest change
from the specified branch. This value is available only for apps that are connected to a repository. The
job type RETRY retries an existing job. If the job type value is RETRY, the
jobId is also required.JobTypepublic final String jobTypeAsString()
Describes the type for the job. The job type RELEASE starts a new job with the latest change from
the specified branch. This value is available only for apps that are connected to a repository. The job type
RETRY retries an existing job. If the job type value is RETRY, the jobId
is also required.
If the service returns an enum value that is not available in the current SDK version, jobType will
return JobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobTypeAsString().
RELEASE starts a new job with the latest change
from the specified branch. This value is available only for apps that are connected to a repository. The
job type RETRY retries an existing job. If the job type value is RETRY, the
jobId is also required.JobTypepublic final String jobReason()
A descriptive reason for starting this job.
public final String commitId()
The commit ID from a third-party repository provider for the job.
public final String commitMessage()
The commit message from a third-party repository provider for the job.
public final Instant commitTime()
The commit date and time for the job.
public StartJobRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StartJobRequest.Builder,StartJobRequest>toBuilder in class AmplifyRequestpublic static StartJobRequest.Builder builder()
public static Class<? extends StartJobRequest.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 © 2022. All rights reserved.