AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateUserProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/Tag.h>
12#include <aws/sagemaker/model/UserSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateUserProfileRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateUserProfile"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
42 template <typename DomainIdT = Aws::String>
43 void SetDomainId(DomainIdT&& value) {
44 m_domainIdHasBeenSet = true;
45 m_domainId = std::forward<DomainIdT>(value);
46 }
47 template <typename DomainIdT = Aws::String>
49 SetDomainId(std::forward<DomainIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
59 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
60 template <typename UserProfileNameT = Aws::String>
61 void SetUserProfileName(UserProfileNameT&& value) {
62 m_userProfileNameHasBeenSet = true;
63 m_userProfileName = std::forward<UserProfileNameT>(value);
64 }
65 template <typename UserProfileNameT = Aws::String>
66 CreateUserProfileRequest& WithUserProfileName(UserProfileNameT&& value) {
67 SetUserProfileName(std::forward<UserProfileNameT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetSingleSignOnUserIdentifier() const { return m_singleSignOnUserIdentifier; }
80 inline bool SingleSignOnUserIdentifierHasBeenSet() const { return m_singleSignOnUserIdentifierHasBeenSet; }
81 template <typename SingleSignOnUserIdentifierT = Aws::String>
82 void SetSingleSignOnUserIdentifier(SingleSignOnUserIdentifierT&& value) {
83 m_singleSignOnUserIdentifierHasBeenSet = true;
84 m_singleSignOnUserIdentifier = std::forward<SingleSignOnUserIdentifierT>(value);
85 }
86 template <typename SingleSignOnUserIdentifierT = Aws::String>
87 CreateUserProfileRequest& WithSingleSignOnUserIdentifier(SingleSignOnUserIdentifierT&& value) {
88 SetSingleSignOnUserIdentifier(std::forward<SingleSignOnUserIdentifierT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::String& GetSingleSignOnUserValue() const { return m_singleSignOnUserValue; }
102 inline bool SingleSignOnUserValueHasBeenSet() const { return m_singleSignOnUserValueHasBeenSet; }
103 template <typename SingleSignOnUserValueT = Aws::String>
104 void SetSingleSignOnUserValue(SingleSignOnUserValueT&& value) {
105 m_singleSignOnUserValueHasBeenSet = true;
106 m_singleSignOnUserValue = std::forward<SingleSignOnUserValueT>(value);
107 }
108 template <typename SingleSignOnUserValueT = Aws::String>
109 CreateUserProfileRequest& WithSingleSignOnUserValue(SingleSignOnUserValueT&& value) {
110 SetSingleSignOnUserValue(std::forward<SingleSignOnUserValueT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140
142
145 inline const UserSettings& GetUserSettings() const { return m_userSettings; }
146 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
147 template <typename UserSettingsT = UserSettings>
148 void SetUserSettings(UserSettingsT&& value) {
149 m_userSettingsHasBeenSet = true;
150 m_userSettings = std::forward<UserSettingsT>(value);
151 }
152 template <typename UserSettingsT = UserSettings>
154 SetUserSettings(std::forward<UserSettingsT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_domainId;
160
161 Aws::String m_userProfileName;
162
163 Aws::String m_singleSignOnUserIdentifier;
164
165 Aws::String m_singleSignOnUserValue;
166
167 Aws::Vector<Tag> m_tags;
168
169 UserSettings m_userSettings;
170 bool m_domainIdHasBeenSet = false;
171 bool m_userProfileNameHasBeenSet = false;
172 bool m_singleSignOnUserIdentifierHasBeenSet = false;
173 bool m_singleSignOnUserValueHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175 bool m_userSettingsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace SageMaker
180} // namespace Aws
void SetSingleSignOnUserValue(SingleSignOnUserValueT &&value)
AWS_SAGEMAKER_API CreateUserProfileRequest()=default
CreateUserProfileRequest & WithUserProfileName(UserProfileNameT &&value)
void SetSingleSignOnUserIdentifier(SingleSignOnUserIdentifierT &&value)
CreateUserProfileRequest & WithDomainId(DomainIdT &&value)
CreateUserProfileRequest & WithUserSettings(UserSettingsT &&value)
CreateUserProfileRequest & WithTags(TagsT &&value)
CreateUserProfileRequest & WithSingleSignOnUserIdentifier(SingleSignOnUserIdentifierT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserProfileRequest & WithSingleSignOnUserValue(SingleSignOnUserValueT &&value)
CreateUserProfileRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
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