AWS SDK for C++

AWS SDK for C++ Version 1.11.818

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
85 inline int GetManagedLoginVersion() const { return m_managedLoginVersion; }
86 inline bool ManagedLoginVersionHasBeenSet() const { return m_managedLoginVersionHasBeenSet; }
87 inline void SetManagedLoginVersion(int value) {
88 m_managedLoginVersionHasBeenSet = true;
89 m_managedLoginVersion = value;
90 }
93 return *this;
94 }
96
98
112 inline const CustomDomainConfigType& GetCustomDomainConfig() const { return m_customDomainConfig; }
113 inline bool CustomDomainConfigHasBeenSet() const { return m_customDomainConfigHasBeenSet; }
114 template <typename CustomDomainConfigT = CustomDomainConfigType>
115 void SetCustomDomainConfig(CustomDomainConfigT&& value) {
116 m_customDomainConfigHasBeenSet = true;
117 m_customDomainConfig = std::forward<CustomDomainConfigT>(value);
118 }
119 template <typename CustomDomainConfigT = CustomDomainConfigType>
121 SetCustomDomainConfig(std::forward<CustomDomainConfigT>(value));
122 return *this;
123 }
125
127
132 inline const RoutingType& GetRouting() const { return m_routing; }
133 inline bool RoutingHasBeenSet() const { return m_routingHasBeenSet; }
134 template <typename RoutingT = RoutingType>
135 void SetRouting(RoutingT&& value) {
136 m_routingHasBeenSet = true;
137 m_routing = std::forward<RoutingT>(value);
138 }
139 template <typename RoutingT = RoutingType>
141 SetRouting(std::forward<RoutingT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_domain;
147
148 Aws::String m_userPoolId;
149
150 int m_managedLoginVersion{0};
151
152 CustomDomainConfigType m_customDomainConfig;
153
154 RoutingType m_routing;
155 bool m_domainHasBeenSet = false;
156 bool m_userPoolIdHasBeenSet = false;
157 bool m_managedLoginVersionHasBeenSet = false;
158 bool m_customDomainConfigHasBeenSet = false;
159 bool m_routingHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace CognitoIdentityProvider
164} // 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