/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace ApiGatewayV2 { namespace Model { /** *

Creates a new DomainName resource to represent a domain name.

See * Also:

AWS * API Reference

*/ class CreateDomainNameRequest : public ApiGatewayV2Request { public: AWS_APIGATEWAYV2_API CreateDomainNameRequest(); // 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 "CreateDomainName"; } AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override; /** *

The domain name.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The domain name.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain name.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The domain name.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The domain name.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The domain name.

*/ inline CreateDomainNameRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The domain name.

*/ inline CreateDomainNameRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The domain name.

*/ inline CreateDomainNameRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The domain name configurations.

*/ inline const Aws::Vector& GetDomainNameConfigurations() const{ return m_domainNameConfigurations; } /** *

The domain name configurations.

*/ inline bool DomainNameConfigurationsHasBeenSet() const { return m_domainNameConfigurationsHasBeenSet; } /** *

The domain name configurations.

*/ inline void SetDomainNameConfigurations(const Aws::Vector& value) { m_domainNameConfigurationsHasBeenSet = true; m_domainNameConfigurations = value; } /** *

The domain name configurations.

*/ inline void SetDomainNameConfigurations(Aws::Vector&& value) { m_domainNameConfigurationsHasBeenSet = true; m_domainNameConfigurations = std::move(value); } /** *

The domain name configurations.

*/ inline CreateDomainNameRequest& WithDomainNameConfigurations(const Aws::Vector& value) { SetDomainNameConfigurations(value); return *this;} /** *

The domain name configurations.

*/ inline CreateDomainNameRequest& WithDomainNameConfigurations(Aws::Vector&& value) { SetDomainNameConfigurations(std::move(value)); return *this;} /** *

The domain name configurations.

*/ inline CreateDomainNameRequest& AddDomainNameConfigurations(const DomainNameConfiguration& value) { m_domainNameConfigurationsHasBeenSet = true; m_domainNameConfigurations.push_back(value); return *this; } /** *

The domain name configurations.

*/ inline CreateDomainNameRequest& AddDomainNameConfigurations(DomainNameConfiguration&& value) { m_domainNameConfigurationsHasBeenSet = true; m_domainNameConfigurations.push_back(std::move(value)); return *this; } /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline const MutualTlsAuthenticationInput& GetMutualTlsAuthentication() const{ return m_mutualTlsAuthentication; } /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline bool MutualTlsAuthenticationHasBeenSet() const { return m_mutualTlsAuthenticationHasBeenSet; } /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline void SetMutualTlsAuthentication(const MutualTlsAuthenticationInput& value) { m_mutualTlsAuthenticationHasBeenSet = true; m_mutualTlsAuthentication = value; } /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline void SetMutualTlsAuthentication(MutualTlsAuthenticationInput&& value) { m_mutualTlsAuthenticationHasBeenSet = true; m_mutualTlsAuthentication = std::move(value); } /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline CreateDomainNameRequest& WithMutualTlsAuthentication(const MutualTlsAuthenticationInput& value) { SetMutualTlsAuthentication(value); return *this;} /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline CreateDomainNameRequest& WithMutualTlsAuthentication(MutualTlsAuthenticationInput&& value) { SetMutualTlsAuthentication(std::move(value)); return *this;} /** *

The collection of tags associated with a domain name.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The collection of tags associated with a domain name.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The collection of tags associated with a domain name.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The collection of tags associated with a domain name.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The collection of tags associated with a domain name.

*/ inline CreateDomainNameRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::Vector m_domainNameConfigurations; bool m_domainNameConfigurationsHasBeenSet = false; MutualTlsAuthenticationInput m_mutualTlsAuthentication; bool m_mutualTlsAuthenticationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws