/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codepipeline.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input of a PutJobSuccessResult
action.
*
* The unique system-generated ID of the job that succeeded. This is the same ID returned from
* PollForJobs
.
*
* The ID of the current revision of the artifact successfully worked on by the job. *
*/ private CurrentRevision currentRevision; /** ** A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify * a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be * reused to return more information about the progress of the custom action. When the action is complete, no * continuation token should be supplied. *
*/ private String continuationToken; /** ** The execution details of the successful job, such as the actions taken by the job worker. *
*/ private ExecutionDetails executionDetails; /** *
* Key-value pairs produced as output by a job worker that can be made available to a downstream action
* configuration. outputVariables
can be included only when there is no continuation token on the
* request.
*
* The unique system-generated ID of the job that succeeded. This is the same ID returned from
* PollForJobs
.
*
PollForJobs
.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The unique system-generated ID of the job that succeeded. This is the same ID returned from
* PollForJobs
.
*
PollForJobs
.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The unique system-generated ID of the job that succeeded. This is the same ID returned from
* PollForJobs
.
*
PollForJobs
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutJobSuccessResultRequest withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
* * The ID of the current revision of the artifact successfully worked on by the job. *
* * @param currentRevision * The ID of the current revision of the artifact successfully worked on by the job. */ public void setCurrentRevision(CurrentRevision currentRevision) { this.currentRevision = currentRevision; } /** ** The ID of the current revision of the artifact successfully worked on by the job. *
* * @return The ID of the current revision of the artifact successfully worked on by the job. */ public CurrentRevision getCurrentRevision() { return this.currentRevision; } /** ** The ID of the current revision of the artifact successfully worked on by the job. *
* * @param currentRevision * The ID of the current revision of the artifact successfully worked on by the job. * @return Returns a reference to this object so that method calls can be chained together. */ public PutJobSuccessResultRequest withCurrentRevision(CurrentRevision currentRevision) { setCurrentRevision(currentRevision); return this; } /** ** A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify * a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be * reused to return more information about the progress of the custom action. When the action is complete, no * continuation token should be supplied. *
* * @param continuationToken * A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to * identify a custom action in progress. Future jobs use this token to identify the running instance of the * action. It can be reused to return more information about the progress of the custom action. When the * action is complete, no continuation token should be supplied. */ public void setContinuationToken(String continuationToken) { this.continuationToken = continuationToken; } /** ** A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify * a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be * reused to return more information about the progress of the custom action. When the action is complete, no * continuation token should be supplied. *
* * @return A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to * identify a custom action in progress. Future jobs use this token to identify the running instance of the * action. It can be reused to return more information about the progress of the custom action. When the * action is complete, no continuation token should be supplied. */ public String getContinuationToken() { return this.continuationToken; } /** ** A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify * a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be * reused to return more information about the progress of the custom action. When the action is complete, no * continuation token should be supplied. *
* * @param continuationToken * A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to * identify a custom action in progress. Future jobs use this token to identify the running instance of the * action. It can be reused to return more information about the progress of the custom action. When the * action is complete, no continuation token should be supplied. * @return Returns a reference to this object so that method calls can be chained together. */ public PutJobSuccessResultRequest withContinuationToken(String continuationToken) { setContinuationToken(continuationToken); return this; } /** ** The execution details of the successful job, such as the actions taken by the job worker. *
* * @param executionDetails * The execution details of the successful job, such as the actions taken by the job worker. */ public void setExecutionDetails(ExecutionDetails executionDetails) { this.executionDetails = executionDetails; } /** ** The execution details of the successful job, such as the actions taken by the job worker. *
* * @return The execution details of the successful job, such as the actions taken by the job worker. */ public ExecutionDetails getExecutionDetails() { return this.executionDetails; } /** ** The execution details of the successful job, such as the actions taken by the job worker. *
* * @param executionDetails * The execution details of the successful job, such as the actions taken by the job worker. * @return Returns a reference to this object so that method calls can be chained together. */ public PutJobSuccessResultRequest withExecutionDetails(ExecutionDetails executionDetails) { setExecutionDetails(executionDetails); return this; } /** *
* Key-value pairs produced as output by a job worker that can be made available to a downstream action
* configuration. outputVariables
can be included only when there is no continuation token on the
* request.
*
outputVariables
can be included only when there is no continuation token on
* the request.
*/
public java.util.Map
* Key-value pairs produced as output by a job worker that can be made available to a downstream action
* configuration. outputVariables
can be included only when there is no continuation token on the
* request.
*
outputVariables
can be included only when there is no continuation token on
* the request.
*/
public void setOutputVariables(java.util.Map
* Key-value pairs produced as output by a job worker that can be made available to a downstream action
* configuration. outputVariables
can be included only when there is no continuation token on the
* request.
*
outputVariables
can be included only when there is no continuation token on
* the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutJobSuccessResultRequest withOutputVariables(java.util.Map