AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateProgramManagementAccountRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-channel/PartnerCentralChannelRequest.h>
11#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
12#include <aws/partnercentral-channel/model/Program.h>
13#include <aws/partnercentral-channel/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace PartnerCentralChannel {
19namespace Model {
20
24 public:
25 AWS_PARTNERCENTRALCHANNEL_API CreateProgramManagementAccountRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateProgramManagementAccount"; }
32
33 AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override;
34
35 AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetCatalog() const { return m_catalog; }
42 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
43 template <typename CatalogT = Aws::String>
44 void SetCatalog(CatalogT&& value) {
45 m_catalogHasBeenSet = true;
46 m_catalog = std::forward<CatalogT>(value);
47 }
48 template <typename CatalogT = Aws::String>
50 SetCatalog(std::forward<CatalogT>(value));
51 return *this;
52 }
54
56
59 inline Program GetProgram() const { return m_program; }
60 inline bool ProgramHasBeenSet() const { return m_programHasBeenSet; }
61 inline void SetProgram(Program value) {
62 m_programHasBeenSet = true;
63 m_program = value;
64 }
66 SetProgram(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDisplayName() const { return m_displayName; }
76 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
77 template <typename DisplayNameT = Aws::String>
78 void SetDisplayName(DisplayNameT&& value) {
79 m_displayNameHasBeenSet = true;
80 m_displayName = std::forward<DisplayNameT>(value);
81 }
82 template <typename DisplayNameT = Aws::String>
84 SetDisplayName(std::forward<DisplayNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAccountId() const { return m_accountId; }
94 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
95 template <typename AccountIdT = Aws::String>
96 void SetAccountId(AccountIdT&& value) {
97 m_accountIdHasBeenSet = true;
98 m_accountId = std::forward<AccountIdT>(value);
99 }
100 template <typename AccountIdT = Aws::String>
102 SetAccountId(std::forward<AccountIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template <typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) {
115 m_clientTokenHasBeenSet = true;
116 m_clientToken = std::forward<ClientTokenT>(value);
117 }
118 template <typename ClientTokenT = Aws::String>
120 SetClientToken(std::forward<ClientTokenT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Vector<Tag>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsT = Tag>
143 m_tagsHasBeenSet = true;
144 m_tags.emplace_back(std::forward<TagsT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_catalog;
150
151 Program m_program{Program::NOT_SET};
152
153 Aws::String m_displayName;
154
155 Aws::String m_accountId;
156
158
159 Aws::Vector<Tag> m_tags;
160 bool m_catalogHasBeenSet = false;
161 bool m_programHasBeenSet = false;
162 bool m_displayNameHasBeenSet = false;
163 bool m_accountIdHasBeenSet = false;
164 bool m_clientTokenHasBeenSet = true;
165 bool m_tagsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace PartnerCentralChannel
170} // namespace Aws
AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALCHANNEL_API CreateProgramManagementAccountRequest()=default
CreateProgramManagementAccountRequest & WithClientToken(ClientTokenT &&value)
CreateProgramManagementAccountRequest & WithDisplayName(DisplayNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector