AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
141 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
142 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
143 template <typename PoliciesT = Aws::Vector<PolicyReference>>
144 void SetPolicies(PoliciesT&& value) {
145 m_policiesHasBeenSet = true;
146 m_policies = std::forward<PoliciesT>(value);
147 }
148 template <typename PoliciesT = Aws::Vector<PolicyReference>>
150 SetPolicies(std::forward<PoliciesT>(value));
151 return *this;
152 }
153 template <typename PoliciesT = PolicyReference>
155 m_policiesHasBeenSet = true;
156 m_policies.emplace_back(std::forward<PoliciesT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetName() const { return m_name; }
166 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
167 template <typename NameT = Aws::String>
168 void SetName(NameT&& value) {
169 m_nameHasBeenSet = true;
170 m_name = std::forward<NameT>(value);
171 }
172 template <typename NameT = Aws::String>
174 SetName(std::forward<NameT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 void SetTags(TagsT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags = std::forward<TagsT>(value);
189 }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 SetTags(std::forward<TagsT>(value));
193 return *this;
194 }
195 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
196 CreateApprovalTeamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
199 return *this;
200 }
202 private:
204
205 ApprovalStrategy m_approvalStrategy;
206
208
209 Aws::String m_description;
210
212
213 Aws::String m_name;
214
216 bool m_clientTokenHasBeenSet = true;
217 bool m_approvalStrategyHasBeenSet = false;
218 bool m_approversHasBeenSet = false;
219 bool m_descriptionHasBeenSet = false;
220 bool m_policiesHasBeenSet = false;
221 bool m_nameHasBeenSet = false;
222 bool m_tagsHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace MPA
227} // 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