AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
AssociatePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusinessRequest.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/PermissionCondition.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QBusiness {
17namespace Model {
18
22 public:
23 AWS_QBUSINESS_API AssociatePermissionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AssociatePermission"; }
30
31 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
40 void SetApplicationId(ApplicationIdT&& value) {
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetStatementId() const { return m_statementId; }
56 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
57 template <typename StatementIdT = Aws::String>
58 void SetStatementId(StatementIdT&& value) {
59 m_statementIdHasBeenSet = true;
60 m_statementId = std::forward<StatementIdT>(value);
61 }
62 template <typename StatementIdT = Aws::String>
64 SetStatementId(std::forward<StatementIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
74 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
75 template <typename ActionsT = Aws::Vector<Aws::String>>
76 void SetActions(ActionsT&& value) {
77 m_actionsHasBeenSet = true;
78 m_actions = std::forward<ActionsT>(value);
79 }
80 template <typename ActionsT = Aws::Vector<Aws::String>>
82 SetActions(std::forward<ActionsT>(value));
83 return *this;
84 }
85 template <typename ActionsT = Aws::String>
87 m_actionsHasBeenSet = true;
88 m_actions.emplace_back(std::forward<ActionsT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<PermissionCondition>& GetConditions() const { return m_conditions; }
100 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
101 template <typename ConditionsT = Aws::Vector<PermissionCondition>>
102 void SetConditions(ConditionsT&& value) {
103 m_conditionsHasBeenSet = true;
104 m_conditions = std::forward<ConditionsT>(value);
105 }
106 template <typename ConditionsT = Aws::Vector<PermissionCondition>>
108 SetConditions(std::forward<ConditionsT>(value));
109 return *this;
110 }
111 template <typename ConditionsT = PermissionCondition>
113 m_conditionsHasBeenSet = true;
114 m_conditions.emplace_back(std::forward<ConditionsT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetPrincipal() const { return m_principal; }
125 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
126 template <typename PrincipalT = Aws::String>
127 void SetPrincipal(PrincipalT&& value) {
128 m_principalHasBeenSet = true;
129 m_principal = std::forward<PrincipalT>(value);
130 }
131 template <typename PrincipalT = Aws::String>
133 SetPrincipal(std::forward<PrincipalT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_applicationId;
139 bool m_applicationIdHasBeenSet = false;
140
141 Aws::String m_statementId;
142 bool m_statementIdHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_actions;
145 bool m_actionsHasBeenSet = false;
146
148 bool m_conditionsHasBeenSet = false;
149
150 Aws::String m_principal;
151 bool m_principalHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace QBusiness
156} // namespace Aws
AWS_QBUSINESS_API AssociatePermissionRequest()=default
AssociatePermissionRequest & AddConditions(ConditionsT &&value)
virtual const char * GetServiceRequestName() const override
AssociatePermissionRequest & WithPrincipal(PrincipalT &&value)
AssociatePermissionRequest & WithStatementId(StatementIdT &&value)
const Aws::Vector< Aws::String > & GetActions() const
const Aws::Vector< PermissionCondition > & GetConditions() const
AssociatePermissionRequest & WithActions(ActionsT &&value)
AssociatePermissionRequest & AddActions(ActionsT &&value)
AssociatePermissionRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
AssociatePermissionRequest & WithConditions(ConditionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector