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

Represents the output of a PutApprovalResult * action.

See Also:

AWS * API Reference

*/ class PutApprovalResultResult { public: AWS_CODEPIPELINE_API PutApprovalResultResult(); AWS_CODEPIPELINE_API PutApprovalResultResult(const Aws::AmazonWebServiceResult& result); AWS_CODEPIPELINE_API PutApprovalResultResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The timestamp showing when the approval or rejection was submitted.

*/ inline const Aws::Utils::DateTime& GetApprovedAt() const{ return m_approvedAt; } /** *

The timestamp showing when the approval or rejection was submitted.

*/ inline void SetApprovedAt(const Aws::Utils::DateTime& value) { m_approvedAt = value; } /** *

The timestamp showing when the approval or rejection was submitted.

*/ inline void SetApprovedAt(Aws::Utils::DateTime&& value) { m_approvedAt = std::move(value); } /** *

The timestamp showing when the approval or rejection was submitted.

*/ inline PutApprovalResultResult& WithApprovedAt(const Aws::Utils::DateTime& value) { SetApprovedAt(value); return *this;} /** *

The timestamp showing when the approval or rejection was submitted.

*/ inline PutApprovalResultResult& WithApprovedAt(Aws::Utils::DateTime&& value) { SetApprovedAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutApprovalResultResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutApprovalResultResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutApprovalResultResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_approvedAt; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws