AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/b2bi/B2BIRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/b2bi/model/Logging.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/b2bi/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace B2BI
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_B2BI_API CreateProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProfile"; }
35
36 AWS_B2BI_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetEmail() const { return m_email; }
58 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
59 template<typename EmailT = Aws::String>
60 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
61 template<typename EmailT = Aws::String>
62 CreateProfileRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPhone() const { return m_phone; }
70 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
71 template<typename PhoneT = Aws::String>
72 void SetPhone(PhoneT&& value) { m_phoneHasBeenSet = true; m_phone = std::forward<PhoneT>(value); }
73 template<typename PhoneT = Aws::String>
74 CreateProfileRequest& WithPhone(PhoneT&& value) { SetPhone(std::forward<PhoneT>(value)); return *this;}
76
78
81 inline const Aws::String& GetBusinessName() const { return m_businessName; }
82 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
83 template<typename BusinessNameT = Aws::String>
84 void SetBusinessName(BusinessNameT&& value) { m_businessNameHasBeenSet = true; m_businessName = std::forward<BusinessNameT>(value); }
85 template<typename BusinessNameT = Aws::String>
86 CreateProfileRequest& WithBusinessName(BusinessNameT&& value) { SetBusinessName(std::forward<BusinessNameT>(value)); return *this;}
88
90
93 inline Logging GetLogging() const { return m_logging; }
94 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
95 inline void SetLogging(Logging value) { m_loggingHasBeenSet = true; m_logging = value; }
96 inline CreateProfileRequest& WithLogging(Logging value) { SetLogging(value); return *this;}
98
100
103 inline const Aws::String& GetClientToken() const { return m_clientToken; }
104 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
105 template<typename ClientTokenT = Aws::String>
106 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
107 template<typename ClientTokenT = Aws::String>
108 CreateProfileRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
110
112
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Vector<Tag>>
122 CreateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsT = Tag>
124 CreateProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_email;
132 bool m_emailHasBeenSet = false;
133
134 Aws::String m_phone;
135 bool m_phoneHasBeenSet = false;
136
137 Aws::String m_businessName;
138 bool m_businessNameHasBeenSet = false;
139
140 Logging m_logging{Logging::NOT_SET};
141 bool m_loggingHasBeenSet = false;
142
144 bool m_clientTokenHasBeenSet = true;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace B2BI
152} // 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