1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8 #include <aws/managedblockchain/model/Proposal.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace ManagedBlockchain
24 {
25 namespace Model
26 {
27   class AWS_MANAGEDBLOCKCHAIN_API GetProposalResult
28   {
29   public:
30     GetProposalResult();
31     GetProposalResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
32     GetProposalResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33 
34 
35     /**
36      * <p>Information about a proposal.</p>
37      */
GetProposal()38     inline const Proposal& GetProposal() const{ return m_proposal; }
39 
40     /**
41      * <p>Information about a proposal.</p>
42      */
SetProposal(const Proposal & value)43     inline void SetProposal(const Proposal& value) { m_proposal = value; }
44 
45     /**
46      * <p>Information about a proposal.</p>
47      */
SetProposal(Proposal && value)48     inline void SetProposal(Proposal&& value) { m_proposal = std::move(value); }
49 
50     /**
51      * <p>Information about a proposal.</p>
52      */
WithProposal(const Proposal & value)53     inline GetProposalResult& WithProposal(const Proposal& value) { SetProposal(value); return *this;}
54 
55     /**
56      * <p>Information about a proposal.</p>
57      */
WithProposal(Proposal && value)58     inline GetProposalResult& WithProposal(Proposal&& value) { SetProposal(std::move(value)); return *this;}
59 
60   private:
61 
62     Proposal m_proposal;
63   };
64 
65 } // namespace Model
66 } // namespace ManagedBlockchain
67 } // namespace Aws
68