/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input of a PutApprovalResult
* action.See Also:
AWS
* API Reference
The name of the pipeline that contains the action.
*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *The name of the pipeline that contains the action.
*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *The name of the pipeline that contains the action.
*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *The name of the pipeline that contains the action.
*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *The name of the pipeline that contains the action.
*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *The name of the pipeline that contains the action.
*/ inline PutApprovalResultRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *The name of the pipeline that contains the action.
*/ inline PutApprovalResultRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *The name of the pipeline that contains the action.
*/ inline PutApprovalResultRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *The name of the stage that contains the action.
*/ inline const Aws::String& GetStageName() const{ return m_stageName; } /** *The name of the stage that contains the action.
*/ inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; } /** *The name of the stage that contains the action.
*/ inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; } /** *The name of the stage that contains the action.
*/ inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); } /** *The name of the stage that contains the action.
*/ inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); } /** *The name of the stage that contains the action.
*/ inline PutApprovalResultRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;} /** *The name of the stage that contains the action.
*/ inline PutApprovalResultRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;} /** *The name of the stage that contains the action.
*/ inline PutApprovalResultRequest& WithStageName(const char* value) { SetStageName(value); return *this;} /** *The name of the action for which approval is requested.
*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *The name of the action for which approval is requested.
*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *The name of the action for which approval is requested.
*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *The name of the action for which approval is requested.
*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *The name of the action for which approval is requested.
*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *The name of the action for which approval is requested.
*/ inline PutApprovalResultRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *The name of the action for which approval is requested.
*/ inline PutApprovalResultRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *The name of the action for which approval is requested.
*/ inline PutApprovalResultRequest& WithActionName(const char* value) { SetActionName(value); return *this;} /** *Represents information about the result of the approval request.
*/ inline const ApprovalResult& GetResult() const{ return m_result; } /** *Represents information about the result of the approval request.
*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *Represents information about the result of the approval request.
*/ inline void SetResult(const ApprovalResult& value) { m_resultHasBeenSet = true; m_result = value; } /** *Represents information about the result of the approval request.
*/ inline void SetResult(ApprovalResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *Represents information about the result of the approval request.
*/ inline PutApprovalResultRequest& WithResult(const ApprovalResult& value) { SetResult(value); return *this;} /** *Represents information about the result of the approval request.
*/ inline PutApprovalResultRequest& WithResult(ApprovalResult&& value) { SetResult(std::move(value)); return *this;} /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline const Aws::String& GetToken() const{ return m_token; } /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline PutApprovalResultRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline PutApprovalResultRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *The system-generated token used to identify a unique approval request. The * token for each open approval request can be obtained using the * GetPipelineState action. It is used to validate that the approval request * corresponding to this token is still valid.
*/ inline PutApprovalResultRequest& WithToken(const char* value) { SetToken(value); return *this;} private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; Aws::String m_stageName; bool m_stageNameHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; ApprovalResult m_result; bool m_resultHasBeenSet = false; Aws::String m_token; bool m_tokenHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws