AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
CreateUserPoolDomainRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/CustomDomainConfigType.h>
10#include <aws/cognito-idp/model/RoutingType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CognitoIdentityProvider {
17namespace Model {
18
22 public:
23 AWS_COGNITOIDENTITYPROVIDER_API CreateUserPoolDomainRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateUserPoolDomain"; }
30
31 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
44 inline const Aws::String& GetDomain() const { return m_domain; }
45 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
46 template <typename DomainT = Aws::String>
47 void SetDomain(DomainT&& value) {
48 m_domainHasBeenSet = true;
49 m_domain = std::forward<DomainT>(value);
50 }
51 template <typename DomainT = Aws::String>
53 SetDomain(std::forward<DomainT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
63 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
64 template <typename UserPoolIdT = Aws::String>
65 void SetUserPoolId(UserPoolIdT&& value) {
66 m_userPoolIdHasBeenSet = true;
67 m_userPoolId = std::forward<UserPoolIdT>(value);
68 }
69 template <typename UserPoolIdT = Aws::String>
71 SetUserPoolId(std::forward<UserPoolIdT>(value));
72 return *this;
73 }
75
77
92 inline int GetManagedLoginVersion() const { return m_managedLoginVersion; }
93 inline bool ManagedLoginVersionHasBeenSet() const { return m_managedLoginVersionHasBeenSet; }
94 inline void SetManagedLoginVersion(int value) {
95 m_managedLoginVersionHasBeenSet = true;
96 m_managedLoginVersion = value;
97 }
100 return *this;
101 }
103
105
119 inline const CustomDomainConfigType& GetCustomDomainConfig() const { return m_customDomainConfig; }
120 inline bool CustomDomainConfigHasBeenSet() const { return m_customDomainConfigHasBeenSet; }
121 template <typename CustomDomainConfigT = CustomDomainConfigType>
122 void SetCustomDomainConfig(CustomDomainConfigT&& value) {
123 m_customDomainConfigHasBeenSet = true;
124 m_customDomainConfig = std::forward<CustomDomainConfigT>(value);
125 }
126 template <typename CustomDomainConfigT = CustomDomainConfigType>
128 SetCustomDomainConfig(std::forward<CustomDomainConfigT>(value));
129 return *this;
130 }
132
134
139 inline const RoutingType& GetRouting() const { return m_routing; }
140 inline bool RoutingHasBeenSet() const { return m_routingHasBeenSet; }
141 template <typename RoutingT = RoutingType>
142 void SetRouting(RoutingT&& value) {
143 m_routingHasBeenSet = true;
144 m_routing = std::forward<RoutingT>(value);
145 }
146 template <typename RoutingT = RoutingType>
148 SetRouting(std::forward<RoutingT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_domain;
154
155 Aws::String m_userPoolId;
156
157 int m_managedLoginVersion{0};
158
159 CustomDomainConfigType m_customDomainConfig;
160
161 RoutingType m_routing;
162 bool m_domainHasBeenSet = false;
163 bool m_userPoolIdHasBeenSet = false;
164 bool m_managedLoginVersionHasBeenSet = false;
165 bool m_customDomainConfigHasBeenSet = false;
166 bool m_routingHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace CognitoIdentityProvider
171} // namespace Aws
CreateUserPoolDomainRequest & WithCustomDomainConfig(CustomDomainConfigT &&value)
CreateUserPoolDomainRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API CreateUserPoolDomainRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String