/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CodePipeline { namespace Model { /** *

Represents the input of a PutThirdPartyJobSuccessResult * action.

See Also:

AWS * API Reference

*/ class PutThirdPartyJobSuccessResultRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PutThirdPartyJobSuccessResultRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutThirdPartyJobSuccessResult"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline PutThirdPartyJobSuccessResultRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline PutThirdPartyJobSuccessResultRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The ID of the job that successfully completed. This is the same ID returned * from PollForThirdPartyJobs.

*/ inline PutThirdPartyJobSuccessResultRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline PutThirdPartyJobSuccessResultRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline PutThirdPartyJobSuccessResultRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The clientToken portion of the clientId and clientToken pair used to verify * that the calling entity is allowed access to the job and its details.

*/ inline PutThirdPartyJobSuccessResultRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Represents information about a current revision.

*/ inline const CurrentRevision& GetCurrentRevision() const{ return m_currentRevision; } /** *

Represents information about a current revision.

*/ inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; } /** *

Represents information about a current revision.

*/ inline void SetCurrentRevision(const CurrentRevision& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = value; } /** *

Represents information about a current revision.

*/ inline void SetCurrentRevision(CurrentRevision&& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::move(value); } /** *

Represents information about a current revision.

*/ inline PutThirdPartyJobSuccessResultRequest& WithCurrentRevision(const CurrentRevision& value) { SetCurrentRevision(value); return *this;} /** *

Represents information about a current revision.

*/ inline PutThirdPartyJobSuccessResultRequest& WithCurrentRevision(CurrentRevision&& value) { SetCurrentRevision(std::move(value)); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline bool ContinuationTokenHasBeenSet() const { return m_continuationTokenHasBeenSet; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(const Aws::String& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(Aws::String&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = std::move(value); } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(const char* value) { m_continuationTokenHasBeenSet = true; m_continuationToken.assign(value); } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a partner 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 partner action. When the * action is complete, no continuation token should be supplied.

*/ inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;} /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline const ExecutionDetails& GetExecutionDetails() const{ return m_executionDetails; } /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline bool ExecutionDetailsHasBeenSet() const { return m_executionDetailsHasBeenSet; } /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline void SetExecutionDetails(const ExecutionDetails& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = value; } /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline void SetExecutionDetails(ExecutionDetails&& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = std::move(value); } /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline PutThirdPartyJobSuccessResultRequest& WithExecutionDetails(const ExecutionDetails& value) { SetExecutionDetails(value); return *this;} /** *

The details of the actions taken and results produced on an artifact as it * passes through stages in the pipeline.

*/ inline PutThirdPartyJobSuccessResultRequest& WithExecutionDetails(ExecutionDetails&& value) { SetExecutionDetails(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; CurrentRevision m_currentRevision; bool m_currentRevisionHasBeenSet = false; Aws::String m_continuationToken; bool m_continuationTokenHasBeenSet = false; ExecutionDetails m_executionDetails; bool m_executionDetailsHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws