AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CreatePartnershipRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BIRequest.h>
8#include <aws/b2bi/B2BI_EXPORTS.h>
9#include <aws/b2bi/model/CapabilityOptions.h>
10#include <aws/b2bi/model/Tag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace B2BI {
19namespace Model {
20
24 public:
25 AWS_B2BI_API CreatePartnershipRequest() = 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 "CreatePartnership"; }
32
33 AWS_B2BI_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetProfileId() const { return m_profileId; }
43 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
44 template <typename ProfileIdT = Aws::String>
45 void SetProfileId(ProfileIdT&& value) {
46 m_profileIdHasBeenSet = true;
47 m_profileId = std::forward<ProfileIdT>(value);
48 }
49 template <typename ProfileIdT = Aws::String>
51 SetProfileId(std::forward<ProfileIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEmail() const { return m_email; }
79 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
80 template <typename EmailT = Aws::String>
81 void SetEmail(EmailT&& value) {
82 m_emailHasBeenSet = true;
83 m_email = std::forward<EmailT>(value);
84 }
85 template <typename EmailT = Aws::String>
87 SetEmail(std::forward<EmailT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPhone() const { return m_phone; }
97 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
98 template <typename PhoneT = Aws::String>
99 void SetPhone(PhoneT&& value) {
100 m_phoneHasBeenSet = true;
101 m_phone = std::forward<PhoneT>(value);
102 }
103 template <typename PhoneT = Aws::String>
105 SetPhone(std::forward<PhoneT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetCapabilities() const { return m_capabilities; }
115 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
116 template <typename CapabilitiesT = Aws::Vector<Aws::String>>
117 void SetCapabilities(CapabilitiesT&& value) {
118 m_capabilitiesHasBeenSet = true;
119 m_capabilities = std::forward<CapabilitiesT>(value);
120 }
121 template <typename CapabilitiesT = Aws::Vector<Aws::String>>
123 SetCapabilities(std::forward<CapabilitiesT>(value));
124 return *this;
125 }
126 template <typename CapabilitiesT = Aws::String>
128 m_capabilitiesHasBeenSet = true;
129 m_capabilities.emplace_back(std::forward<CapabilitiesT>(value));
130 return *this;
131 }
133
135
139 inline const CapabilityOptions& GetCapabilityOptions() const { return m_capabilityOptions; }
140 inline bool CapabilityOptionsHasBeenSet() const { return m_capabilityOptionsHasBeenSet; }
141 template <typename CapabilityOptionsT = CapabilityOptions>
142 void SetCapabilityOptions(CapabilityOptionsT&& value) {
143 m_capabilityOptionsHasBeenSet = true;
144 m_capabilityOptions = std::forward<CapabilityOptionsT>(value);
145 }
146 template <typename CapabilityOptionsT = CapabilityOptions>
147 CreatePartnershipRequest& WithCapabilityOptions(CapabilityOptionsT&& value) {
148 SetCapabilityOptions(std::forward<CapabilityOptionsT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetClientToken() const { return m_clientToken; }
158 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
159 template <typename ClientTokenT = Aws::String>
160 void SetClientToken(ClientTokenT&& value) {
161 m_clientTokenHasBeenSet = true;
162 m_clientToken = std::forward<ClientTokenT>(value);
163 }
164 template <typename ClientTokenT = Aws::String>
166 SetClientToken(std::forward<ClientTokenT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template <typename TagsT = Aws::Vector<Tag>>
180 void SetTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags = std::forward<TagsT>(value);
183 }
184 template <typename TagsT = Aws::Vector<Tag>>
186 SetTags(std::forward<TagsT>(value));
187 return *this;
188 }
189 template <typename TagsT = Tag>
191 m_tagsHasBeenSet = true;
192 m_tags.emplace_back(std::forward<TagsT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_profileId;
198 bool m_profileIdHasBeenSet = false;
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 Aws::String m_email;
204 bool m_emailHasBeenSet = false;
205
206 Aws::String m_phone;
207 bool m_phoneHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_capabilities;
210 bool m_capabilitiesHasBeenSet = false;
211
212 CapabilityOptions m_capabilityOptions;
213 bool m_capabilityOptionsHasBeenSet = false;
214
216 bool m_clientTokenHasBeenSet = true;
217
218 Aws::Vector<Tag> m_tags;
219 bool m_tagsHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace B2BI
224} // namespace Aws
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePartnershipRequest & WithProfileId(ProfileIdT &&value)
CreatePartnershipRequest & WithPhone(PhoneT &&value)
const Aws::Vector< Aws::String > & GetCapabilities() const
AWS_B2BI_API Aws::String SerializePayload() const override
AWS_B2BI_API CreatePartnershipRequest()=default
CreatePartnershipRequest & AddCapabilities(CapabilitiesT &&value)
CreatePartnershipRequest & WithName(NameT &&value)
const CapabilityOptions & GetCapabilityOptions() const
CreatePartnershipRequest & WithEmail(EmailT &&value)
virtual const char * GetServiceRequestName() const override
CreatePartnershipRequest & WithCapabilities(CapabilitiesT &&value)
CreatePartnershipRequest & WithCapabilityOptions(CapabilityOptionsT &&value)
CreatePartnershipRequest & WithTags(TagsT &&value)
void SetCapabilityOptions(CapabilityOptionsT &&value)
CreatePartnershipRequest & WithClientToken(ClientTokenT &&value)
CreatePartnershipRequest & AddTags(TagsT &&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