AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateApprovalTeamRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mpa/MPARequest.h>
12#include <aws/mpa/MPA_EXPORTS.h>
13#include <aws/mpa/model/ApprovalStrategy.h>
14#include <aws/mpa/model/ApprovalTeamRequestApprover.h>
15#include <aws/mpa/model/PolicyReference.h>
16
17#include <utility>
18
19namespace Aws {
20namespace MPA {
21namespace Model {
22
26 public:
27 AWS_MPA_API CreateApprovalTeamRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateApprovalTeam"; }
34
35 AWS_MPA_API Aws::String SerializePayload() const override;
36
38
55 inline const Aws::String& GetClientToken() const { return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 template <typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) {
59 m_clientTokenHasBeenSet = true;
60 m_clientToken = std::forward<ClientTokenT>(value);
61 }
62 template <typename ClientTokenT = Aws::String>
64 SetClientToken(std::forward<ClientTokenT>(value));
65 return *this;
66 }
68
70
74 inline const ApprovalStrategy& GetApprovalStrategy() const { return m_approvalStrategy; }
75 inline bool ApprovalStrategyHasBeenSet() const { return m_approvalStrategyHasBeenSet; }
76 template <typename ApprovalStrategyT = ApprovalStrategy>
77 void SetApprovalStrategy(ApprovalStrategyT&& value) {
78 m_approvalStrategyHasBeenSet = true;
79 m_approvalStrategy = std::forward<ApprovalStrategyT>(value);
80 }
81 template <typename ApprovalStrategyT = ApprovalStrategy>
82 CreateApprovalTeamRequest& WithApprovalStrategy(ApprovalStrategyT&& value) {
83 SetApprovalStrategy(std::forward<ApprovalStrategyT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<ApprovalTeamRequestApprover>& GetApprovers() const { return m_approvers; }
94 inline bool ApproversHasBeenSet() const { return m_approversHasBeenSet; }
95 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
96 void SetApprovers(ApproversT&& value) {
97 m_approversHasBeenSet = true;
98 m_approvers = std::forward<ApproversT>(value);
99 }
100 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
102 SetApprovers(std::forward<ApproversT>(value));
103 return *this;
104 }
105 template <typename ApproversT = ApprovalTeamRequestApprover>
107 m_approversHasBeenSet = true;
108 m_approvers.emplace_back(std::forward<ApproversT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
137 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
138 template <typename PoliciesT = Aws::Vector<PolicyReference>>
139 void SetPolicies(PoliciesT&& value) {
140 m_policiesHasBeenSet = true;
141 m_policies = std::forward<PoliciesT>(value);
142 }
143 template <typename PoliciesT = Aws::Vector<PolicyReference>>
145 SetPolicies(std::forward<PoliciesT>(value));
146 return *this;
147 }
148 template <typename PoliciesT = PolicyReference>
150 m_policiesHasBeenSet = true;
151 m_policies.emplace_back(std::forward<PoliciesT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetName() const { return m_name; }
161 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
162 template <typename NameT = Aws::String>
163 void SetName(NameT&& value) {
164 m_nameHasBeenSet = true;
165 m_name = std::forward<NameT>(value);
166 }
167 template <typename NameT = Aws::String>
169 SetName(std::forward<NameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
191 CreateApprovalTeamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 return *this;
195 }
197 private:
199
200 ApprovalStrategy m_approvalStrategy;
201
203
204 Aws::String m_description;
205
207
208 Aws::String m_name;
209
211 bool m_clientTokenHasBeenSet = true;
212 bool m_approvalStrategyHasBeenSet = false;
213 bool m_approversHasBeenSet = false;
214 bool m_descriptionHasBeenSet = false;
215 bool m_policiesHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_tagsHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace MPA
222} // namespace Aws
CreateApprovalTeamRequest & WithApprovalStrategy(ApprovalStrategyT &&value)
CreateApprovalTeamRequest & AddPolicies(PoliciesT &&value)
const Aws::Vector< PolicyReference > & GetPolicies() const
CreateApprovalTeamRequest & WithApprovers(ApproversT &&value)
AWS_MPA_API Aws::String SerializePayload() const override
CreateApprovalTeamRequest & WithPolicies(PoliciesT &&value)
const Aws::Vector< ApprovalTeamRequestApprover > & GetApprovers() const
CreateApprovalTeamRequest & AddApprovers(ApproversT &&value)
CreateApprovalTeamRequest & WithDescription(DescriptionT &&value)
CreateApprovalTeamRequest & WithClientToken(ClientTokenT &&value)
CreateApprovalTeamRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ApprovalStrategy & GetApprovalStrategy() const
CreateApprovalTeamRequest & WithTags(TagsT &&value)
AWS_MPA_API CreateApprovalTeamRequest()=default
CreateApprovalTeamRequest & WithName(NameT &&value)
void SetApprovalStrategy(ApprovalStrategyT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector