/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** */ class CreateUserPoolDomainRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API CreateUserPoolDomainRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateUserPoolDomain"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline CreateUserPoolDomainRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline CreateUserPoolDomainRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The domain string. For custom domains, this is the fully-qualified domain * name, such as auth.example.com. For Amazon Cognito prefix domains, * this is the prefix alone, such as auth.

*/ inline CreateUserPoolDomainRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The user pool ID.

*/ inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; } /** *

The user pool ID.

*/ inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; } /** *

The user pool ID.

*/ inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; } /** *

The user pool ID.

*/ inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); } /** *

The user pool ID.

*/ inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); } /** *

The user pool ID.

*/ inline CreateUserPoolDomainRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;} /** *

The user pool ID.

*/ inline CreateUserPoolDomainRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;} /** *

The user pool ID.

*/ inline CreateUserPoolDomainRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;} /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline const CustomDomainConfigType& GetCustomDomainConfig() const{ return m_customDomainConfig; } /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline bool CustomDomainConfigHasBeenSet() const { return m_customDomainConfigHasBeenSet; } /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline void SetCustomDomainConfig(const CustomDomainConfigType& value) { m_customDomainConfigHasBeenSet = true; m_customDomainConfig = value; } /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline void SetCustomDomainConfig(CustomDomainConfigType&& value) { m_customDomainConfigHasBeenSet = true; m_customDomainConfig = std::move(value); } /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline CreateUserPoolDomainRequest& WithCustomDomainConfig(const CustomDomainConfigType& value) { SetCustomDomainConfig(value); return *this;} /** *

The configuration for a custom domain that hosts the sign-up and sign-in * webpages for your application.

Provide this parameter only if you want to * use a custom domain for your user pool. Otherwise, you can exclude this * parameter and use the Amazon Cognito hosted domain instead.

For more * information about the hosted domain and custom domains, see Configuring * a User Pool Domain.

*/ inline CreateUserPoolDomainRequest& WithCustomDomainConfig(CustomDomainConfigType&& value) { SetCustomDomainConfig(std::move(value)); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_userPoolId; bool m_userPoolIdHasBeenSet = false; CustomDomainConfigType m_customDomainConfig; bool m_customDomainConfigHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws