/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes a domain recordset entry.

See Also:

AWS * API Reference

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

The ID of the domain recordset entry.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the domain recordset entry.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the domain recordset entry.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the domain recordset entry.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the domain recordset entry.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the domain recordset entry.

*/ inline DomainEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the domain recordset entry.

*/ inline DomainEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the domain recordset entry.

*/ inline DomainEntry& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the domain.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the domain.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the domain.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the domain.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the domain.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the domain.

*/ inline DomainEntry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the domain.

*/ inline DomainEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the domain.

*/ inline DomainEntry& WithName(const char* value) { SetName(value); return *this;} /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline DomainEntry& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline DomainEntry& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *

The target IP address (e.g., 192.0.2.0), or AWS name server * (e.g., ns-111.awsdns-22.com.).

For Lightsail load balancers, * the value looks like * ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. * For Lightsail distributions, the value looks like * exampled1182ne.cloudfront.net. For Lightsail container services, * the value looks like * container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. * Be sure to also set isAlias to true when setting up an * A record for a Lightsail load balancer, distribution, or container service.

*/ inline DomainEntry& WithTarget(const char* value) { SetTarget(value); return *this;} /** *

When true, specifies whether the domain entry is an alias used * by the Lightsail load balancer, Lightsail container service, Lightsail content * delivery network (CDN) distribution, or another Amazon Web Services resource. * You can include an alias (A type) record in your request, which points to the * DNS name of a load balancer, container service, CDN distribution, or other * Amazon Web Services resource and routes traffic to that resource.

*/ inline bool GetIsAlias() const{ return m_isAlias; } /** *

When true, specifies whether the domain entry is an alias used * by the Lightsail load balancer, Lightsail container service, Lightsail content * delivery network (CDN) distribution, or another Amazon Web Services resource. * You can include an alias (A type) record in your request, which points to the * DNS name of a load balancer, container service, CDN distribution, or other * Amazon Web Services resource and routes traffic to that resource.

*/ inline bool IsAliasHasBeenSet() const { return m_isAliasHasBeenSet; } /** *

When true, specifies whether the domain entry is an alias used * by the Lightsail load balancer, Lightsail container service, Lightsail content * delivery network (CDN) distribution, or another Amazon Web Services resource. * You can include an alias (A type) record in your request, which points to the * DNS name of a load balancer, container service, CDN distribution, or other * Amazon Web Services resource and routes traffic to that resource.

*/ inline void SetIsAlias(bool value) { m_isAliasHasBeenSet = true; m_isAlias = value; } /** *

When true, specifies whether the domain entry is an alias used * by the Lightsail load balancer, Lightsail container service, Lightsail content * delivery network (CDN) distribution, or another Amazon Web Services resource. * You can include an alias (A type) record in your request, which points to the * DNS name of a load balancer, container service, CDN distribution, or other * Amazon Web Services resource and routes traffic to that resource.

*/ inline DomainEntry& WithIsAlias(bool value) { SetIsAlias(value); return *this;} /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline DomainEntry& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline DomainEntry& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of domain entry, such as address for IPv4 (A), address for IPv6 * (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of * authority (SOA), service locator (SRV), or text (TXT).

The following * domain entry types can be used:

  • A

  • *

    AAAA

  • CNAME

  • * MX

  • NS

  • * SOA

  • SRV

  • * TXT

*/ inline DomainEntry& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; bool m_isAlias; bool m_isAliasHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws