AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApprovalTeamRequest.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/MPARequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mpa/model/ApprovalStrategy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/mpa/model/ApprovalTeamRequestApprover.h>
14#include <aws/mpa/model/PolicyReference.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace MPA
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MPA_API CreateApprovalTeamRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApprovalTeam"; }
37
38 AWS_MPA_API Aws::String SerializePayload() const override;
39
40
42
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template<typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
63 template<typename ClientTokenT = Aws::String>
64 CreateApprovalTeamRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
66
68
72 inline const ApprovalStrategy& GetApprovalStrategy() const { return m_approvalStrategy; }
73 inline bool ApprovalStrategyHasBeenSet() const { return m_approvalStrategyHasBeenSet; }
74 template<typename ApprovalStrategyT = ApprovalStrategy>
75 void SetApprovalStrategy(ApprovalStrategyT&& value) { m_approvalStrategyHasBeenSet = true; m_approvalStrategy = std::forward<ApprovalStrategyT>(value); }
76 template<typename ApprovalStrategyT = ApprovalStrategy>
77 CreateApprovalTeamRequest& WithApprovalStrategy(ApprovalStrategyT&& value) { SetApprovalStrategy(std::forward<ApprovalStrategyT>(value)); return *this;}
79
81
85 inline const Aws::Vector<ApprovalTeamRequestApprover>& GetApprovers() const { return m_approvers; }
86 inline bool ApproversHasBeenSet() const { return m_approversHasBeenSet; }
87 template<typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
88 void SetApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers = std::forward<ApproversT>(value); }
89 template<typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
90 CreateApprovalTeamRequest& WithApprovers(ApproversT&& value) { SetApprovers(std::forward<ApproversT>(value)); return *this;}
91 template<typename ApproversT = ApprovalTeamRequestApprover>
92 CreateApprovalTeamRequest& AddApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers.emplace_back(std::forward<ApproversT>(value)); return *this; }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 CreateApprovalTeamRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
117 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
118 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
119 template<typename PoliciesT = Aws::Vector<PolicyReference>>
120 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
121 template<typename PoliciesT = Aws::Vector<PolicyReference>>
122 CreateApprovalTeamRequest& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
123 template<typename PoliciesT = PolicyReference>
124 CreateApprovalTeamRequest& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
126
128
131 inline const Aws::String& GetName() const { return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 template<typename NameT = Aws::String>
134 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
135 template<typename NameT = Aws::String>
136 CreateApprovalTeamRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 CreateApprovalTeamRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 CreateApprovalTeamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
152 }
154 private:
155
157 bool m_clientTokenHasBeenSet = true;
158
159 ApprovalStrategy m_approvalStrategy;
160 bool m_approvalStrategyHasBeenSet = false;
161
163 bool m_approversHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
169 bool m_policiesHasBeenSet = false;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
175 bool m_tagsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace MPA
180} // 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