AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProposalActions.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/managedblockchain/model/InviteAction.h>
10#include <aws/managedblockchain/model/RemoveAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ManagedBlockchain
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MANAGEDBLOCKCHAIN_API ProposalActions() = default;
38 AWS_MANAGEDBLOCKCHAIN_API ProposalActions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAIN_API ProposalActions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<InviteAction>& GetInvitations() const { return m_invitations; }
49 inline bool InvitationsHasBeenSet() const { return m_invitationsHasBeenSet; }
50 template<typename InvitationsT = Aws::Vector<InviteAction>>
51 void SetInvitations(InvitationsT&& value) { m_invitationsHasBeenSet = true; m_invitations = std::forward<InvitationsT>(value); }
52 template<typename InvitationsT = Aws::Vector<InviteAction>>
53 ProposalActions& WithInvitations(InvitationsT&& value) { SetInvitations(std::forward<InvitationsT>(value)); return *this;}
54 template<typename InvitationsT = InviteAction>
55 ProposalActions& AddInvitations(InvitationsT&& value) { m_invitationsHasBeenSet = true; m_invitations.emplace_back(std::forward<InvitationsT>(value)); return *this; }
57
59
64 inline const Aws::Vector<RemoveAction>& GetRemovals() const { return m_removals; }
65 inline bool RemovalsHasBeenSet() const { return m_removalsHasBeenSet; }
66 template<typename RemovalsT = Aws::Vector<RemoveAction>>
67 void SetRemovals(RemovalsT&& value) { m_removalsHasBeenSet = true; m_removals = std::forward<RemovalsT>(value); }
68 template<typename RemovalsT = Aws::Vector<RemoveAction>>
69 ProposalActions& WithRemovals(RemovalsT&& value) { SetRemovals(std::forward<RemovalsT>(value)); return *this;}
70 template<typename RemovalsT = RemoveAction>
71 ProposalActions& AddRemovals(RemovalsT&& value) { m_removalsHasBeenSet = true; m_removals.emplace_back(std::forward<RemovalsT>(value)); return *this; }
73 private:
74
75 Aws::Vector<InviteAction> m_invitations;
76 bool m_invitationsHasBeenSet = false;
77
79 bool m_removalsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ManagedBlockchain
84} // namespace Aws
AWS_MANAGEDBLOCKCHAIN_API ProposalActions()=default
ProposalActions & WithInvitations(InvitationsT &&value)
const Aws::Vector< RemoveAction > & GetRemovals() const
AWS_MANAGEDBLOCKCHAIN_API ProposalActions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API ProposalActions(Aws::Utils::Json::JsonView jsonValue)
ProposalActions & AddRemovals(RemovalsT &&value)
ProposalActions & AddInvitations(InvitationsT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
ProposalActions & WithRemovals(RemovalsT &&value)
const Aws::Vector< InviteAction > & GetInvitations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue