/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { /** *

Represents a domain name.

See Also:

AWS * API Reference

*/ class DomainName { public: AWS_APIGATEWAYV2_API DomainName(); AWS_APIGATEWAYV2_API DomainName(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API DomainName& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The API mapping selection expression.

*/ inline const Aws::String& GetApiMappingSelectionExpression() const{ return m_apiMappingSelectionExpression; } /** *

The API mapping selection expression.

*/ inline bool ApiMappingSelectionExpressionHasBeenSet() const { return m_apiMappingSelectionExpressionHasBeenSet; } /** *

The API mapping selection expression.

*/ inline void SetApiMappingSelectionExpression(const Aws::String& value) { m_apiMappingSelectionExpressionHasBeenSet = true; m_apiMappingSelectionExpression = value; } /** *

The API mapping selection expression.

*/ inline void SetApiMappingSelectionExpression(Aws::String&& value) { m_apiMappingSelectionExpressionHasBeenSet = true; m_apiMappingSelectionExpression = std::move(value); } /** *

The API mapping selection expression.

*/ inline void SetApiMappingSelectionExpression(const char* value) { m_apiMappingSelectionExpressionHasBeenSet = true; m_apiMappingSelectionExpression.assign(value); } /** *

The API mapping selection expression.

*/ inline DomainName& WithApiMappingSelectionExpression(const Aws::String& value) { SetApiMappingSelectionExpression(value); return *this;} /** *

The API mapping selection expression.

*/ inline DomainName& WithApiMappingSelectionExpression(Aws::String&& value) { SetApiMappingSelectionExpression(std::move(value)); return *this;} /** *

The API mapping selection expression.

*/ inline DomainName& WithApiMappingSelectionExpression(const char* value) { SetApiMappingSelectionExpression(value); return *this;} /** *

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

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

The name of the DomainName resource.

*/ inline DomainName& 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 DomainName& WithDomainNameConfigurations(const Aws::Vector& value) { SetDomainNameConfigurations(value); return *this;} /** *

The domain name configurations.

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

The domain name configurations.

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

The domain name configurations.

*/ inline DomainName& 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 MutualTlsAuthentication& 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 MutualTlsAuthentication& value) { m_mutualTlsAuthenticationHasBeenSet = true; m_mutualTlsAuthentication = value; } /** *

The mutual TLS authentication configuration for a custom domain name.

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

The mutual TLS authentication configuration for a custom domain name.

*/ inline DomainName& WithMutualTlsAuthentication(const MutualTlsAuthentication& value) { SetMutualTlsAuthentication(value); return *this;} /** *

The mutual TLS authentication configuration for a custom domain name.

*/ inline DomainName& WithMutualTlsAuthentication(MutualTlsAuthentication&& 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 DomainName& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The collection of tags associated with a domain name.

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

The collection of tags associated with a domain name.

*/ inline DomainName& 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 DomainName& 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 DomainName& 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 DomainName& 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 DomainName& 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 DomainName& 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 DomainName& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_apiMappingSelectionExpression; bool m_apiMappingSelectionExpressionHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::Vector m_domainNameConfigurations; bool m_domainNameConfigurationsHasBeenSet = false; MutualTlsAuthentication m_mutualTlsAuthentication; bool m_mutualTlsAuthenticationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws