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

Represents information about the result of an approval request.

See * Also:

AWS * API Reference

*/ class ApprovalResult { public: AWS_CODEPIPELINE_API ApprovalResult(); AWS_CODEPIPELINE_API ApprovalResult(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API ApprovalResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The summary of the current status of the approval request.

*/ inline const Aws::String& GetSummary() const{ return m_summary; } /** *

The summary of the current status of the approval request.

*/ inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; } /** *

The summary of the current status of the approval request.

*/ inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; } /** *

The summary of the current status of the approval request.

*/ inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); } /** *

The summary of the current status of the approval request.

*/ inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); } /** *

The summary of the current status of the approval request.

*/ inline ApprovalResult& WithSummary(const Aws::String& value) { SetSummary(value); return *this;} /** *

The summary of the current status of the approval request.

*/ inline ApprovalResult& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;} /** *

The summary of the current status of the approval request.

*/ inline ApprovalResult& WithSummary(const char* value) { SetSummary(value); return *this;} /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline const ApprovalStatus& GetStatus() const{ return m_status; } /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline void SetStatus(const ApprovalStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline void SetStatus(ApprovalStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline ApprovalResult& WithStatus(const ApprovalStatus& value) { SetStatus(value); return *this;} /** *

The response submitted by a reviewer assigned to an approval action * request.

*/ inline ApprovalResult& WithStatus(ApprovalStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_summary; bool m_summaryHasBeenSet = false; ApprovalStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws