AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInvitations(const Aws::Vector<InviteAction>& value) { m_invitationsHasBeenSet = true; m_invitations = value; }
51 inline void SetInvitations(Aws::Vector<InviteAction>&& value) { m_invitationsHasBeenSet = true; m_invitations = std::move(value); }
52 inline ProposalActions& WithInvitations(const Aws::Vector<InviteAction>& value) { SetInvitations(value); return *this;}
53 inline ProposalActions& WithInvitations(Aws::Vector<InviteAction>&& value) { SetInvitations(std::move(value)); return *this;}
54 inline ProposalActions& AddInvitations(const InviteAction& value) { m_invitationsHasBeenSet = true; m_invitations.push_back(value); return *this; }
55 inline ProposalActions& AddInvitations(InviteAction&& value) { m_invitationsHasBeenSet = true; m_invitations.push_back(std::move(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 inline void SetRemovals(const Aws::Vector<RemoveAction>& value) { m_removalsHasBeenSet = true; m_removals = value; }
67 inline void SetRemovals(Aws::Vector<RemoveAction>&& value) { m_removalsHasBeenSet = true; m_removals = std::move(value); }
68 inline ProposalActions& WithRemovals(const Aws::Vector<RemoveAction>& value) { SetRemovals(value); return *this;}
69 inline ProposalActions& WithRemovals(Aws::Vector<RemoveAction>&& value) { SetRemovals(std::move(value)); return *this;}
70 inline ProposalActions& AddRemovals(const RemoveAction& value) { m_removalsHasBeenSet = true; m_removals.push_back(value); return *this; }
71 inline ProposalActions& AddRemovals(RemoveAction&& value) { m_removalsHasBeenSet = true; m_removals.push_back(std::move(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
void SetInvitations(Aws::Vector< InviteAction > &&value)
void SetRemovals(Aws::Vector< RemoveAction > &&value)
ProposalActions & WithInvitations(const Aws::Vector< InviteAction > &value)
void SetInvitations(const Aws::Vector< InviteAction > &value)
ProposalActions & WithRemovals(const Aws::Vector< RemoveAction > &value)
ProposalActions & AddRemovals(const RemoveAction &value)
const Aws::Vector< RemoveAction > & GetRemovals() const
ProposalActions & WithRemovals(Aws::Vector< RemoveAction > &&value)
ProposalActions & WithInvitations(Aws::Vector< InviteAction > &&value)
AWS_MANAGEDBLOCKCHAIN_API ProposalActions & operator=(Aws::Utils::Json::JsonView jsonValue)
ProposalActions & AddInvitations(InviteAction &&value)
AWS_MANAGEDBLOCKCHAIN_API ProposalActions(Aws::Utils::Json::JsonView jsonValue)
void SetRemovals(const Aws::Vector< RemoveAction > &value)
ProposalActions & AddRemovals(RemoveAction &&value)
ProposalActions & AddInvitations(const InviteAction &value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDBLOCKCHAIN_API ProposalActions()
const Aws::Vector< InviteAction > & GetInvitations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue