AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BIRequest.h>
8#include <aws/b2bi/B2BI_EXPORTS.h>
9#include <aws/b2bi/model/Logging.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 CreateProfileRequest() = 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 "CreateProfile"; }
32
33 AWS_B2BI_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEmail() const { return m_email; }
60 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
61 template <typename EmailT = Aws::String>
62 void SetEmail(EmailT&& value) {
63 m_emailHasBeenSet = true;
64 m_email = std::forward<EmailT>(value);
65 }
66 template <typename EmailT = Aws::String>
68 SetEmail(std::forward<EmailT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPhone() const { return m_phone; }
78 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
79 template <typename PhoneT = Aws::String>
80 void SetPhone(PhoneT&& value) {
81 m_phoneHasBeenSet = true;
82 m_phone = std::forward<PhoneT>(value);
83 }
84 template <typename PhoneT = Aws::String>
86 SetPhone(std::forward<PhoneT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetBusinessName() const { return m_businessName; }
96 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
97 template <typename BusinessNameT = Aws::String>
98 void SetBusinessName(BusinessNameT&& value) {
99 m_businessNameHasBeenSet = true;
100 m_businessName = std::forward<BusinessNameT>(value);
101 }
102 template <typename BusinessNameT = Aws::String>
103 CreateProfileRequest& WithBusinessName(BusinessNameT&& value) {
104 SetBusinessName(std::forward<BusinessNameT>(value));
105 return *this;
106 }
108
110
113 inline Logging GetLogging() const { return m_logging; }
114 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
115 inline void SetLogging(Logging value) {
116 m_loggingHasBeenSet = true;
117 m_logging = value;
118 }
120 SetLogging(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
137 CreateProfileRequest& WithClientToken(ClientTokenT&& value) {
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Vector<Tag>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsT = Tag>
163 m_tagsHasBeenSet = true;
164 m_tags.emplace_back(std::forward<TagsT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_name;
170
171 Aws::String m_email;
172
173 Aws::String m_phone;
174
175 Aws::String m_businessName;
176
177 Logging m_logging{Logging::NOT_SET};
178
180
181 Aws::Vector<Tag> m_tags;
182 bool m_nameHasBeenSet = false;
183 bool m_emailHasBeenSet = false;
184 bool m_phoneHasBeenSet = false;
185 bool m_businessNameHasBeenSet = false;
186 bool m_loggingHasBeenSet = false;
187 bool m_clientTokenHasBeenSet = true;
188 bool m_tagsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace B2BI
193} // namespace Aws
CreateProfileRequest & AddTags(TagsT &&value)
AWS_B2BI_API Aws::String SerializePayload() const override
CreateProfileRequest & WithBusinessName(BusinessNameT &&value)
CreateProfileRequest & WithName(NameT &&value)
void SetBusinessName(BusinessNameT &&value)
CreateProfileRequest & WithPhone(PhoneT &&value)
const Aws::String & GetBusinessName() const
const Aws::Vector< Tag > & GetTags() const
CreateProfileRequest & WithEmail(EmailT &&value)
CreateProfileRequest & WithLogging(Logging value)
CreateProfileRequest & WithClientToken(ClientTokenT &&value)
AWS_B2BI_API CreateProfileRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProfileRequest & WithTags(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