AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VotingPolicy.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/model/ApprovalThresholdPolicy.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ManagedBlockchain
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MANAGEDBLOCKCHAIN_API VotingPolicy();
36 AWS_MANAGEDBLOCKCHAIN_API VotingPolicy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAIN_API VotingPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const ApprovalThresholdPolicy& GetApprovalThresholdPolicy() const{ return m_approvalThresholdPolicy; }
49 inline bool ApprovalThresholdPolicyHasBeenSet() const { return m_approvalThresholdPolicyHasBeenSet; }
50 inline void SetApprovalThresholdPolicy(const ApprovalThresholdPolicy& value) { m_approvalThresholdPolicyHasBeenSet = true; m_approvalThresholdPolicy = value; }
51 inline void SetApprovalThresholdPolicy(ApprovalThresholdPolicy&& value) { m_approvalThresholdPolicyHasBeenSet = true; m_approvalThresholdPolicy = std::move(value); }
55 private:
56
57 ApprovalThresholdPolicy m_approvalThresholdPolicy;
58 bool m_approvalThresholdPolicyHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ManagedBlockchain
63} // namespace Aws
AWS_MANAGEDBLOCKCHAIN_API VotingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
VotingPolicy & WithApprovalThresholdPolicy(const ApprovalThresholdPolicy &value)
AWS_MANAGEDBLOCKCHAIN_API VotingPolicy()
void SetApprovalThresholdPolicy(const ApprovalThresholdPolicy &value)
void SetApprovalThresholdPolicy(ApprovalThresholdPolicy &&value)
const ApprovalThresholdPolicy & GetApprovalThresholdPolicy() const
AWS_MANAGEDBLOCKCHAIN_API VotingPolicy(Aws::Utils::Json::JsonView jsonValue)
VotingPolicy & WithApprovalThresholdPolicy(ApprovalThresholdPolicy &&value)
Aws::Utils::Json::JsonValue JsonValue