Class CfnDomain.DomainEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDomain.DomainEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.DomainEntryProperty>
- Enclosing interface:
CfnDomain.DomainEntryProperty
@Stability(Stable)
public static final class CfnDomain.DomainEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.DomainEntryProperty>
A builder for
CfnDomain.DomainEntryProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDomain.DomainEntryProperty.getId()
Sets the value ofCfnDomain.DomainEntryProperty.getIsAlias()
isAlias
(IResolvable isAlias) Sets the value ofCfnDomain.DomainEntryProperty.getIsAlias()
Sets the value ofCfnDomain.DomainEntryProperty.getName()
Sets the value ofCfnDomain.DomainEntryProperty.getTarget()
Sets the value ofCfnDomain.DomainEntryProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDomain.DomainEntryProperty.getName()
- Parameters:
name
- The name of the domain. This parameter is required.- Returns:
this
-
target
Sets the value ofCfnDomain.DomainEntryProperty.getTarget()
- Parameters:
target
- The target IP address (192.0.2.0
), or AWS name server (ns-111.awsdns-22.com.
). This parameter is required. For Lightsail load balancers, the value looks likeab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com
. For Lightsail distributions, the value looks likeexampled1182ne.cloudfront.net
. For Lightsail container services, the value looks likecontainer-service-1.example23scljs.us-west-2.cs.amazonlightsail.com
. Be sure to also setisAlias
totrue
when setting up an A record for a Lightsail load balancer, distribution, or container service.- Returns:
this
-
type
Sets the value ofCfnDomain.DomainEntryProperty.getType()
- Parameters:
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). This parameter is required. The following domain entry types can be used:A
AAAA
CNAME
MX
NS
SOA
SRV
TXT
- Returns:
this
-
id
Sets the value ofCfnDomain.DomainEntryProperty.getId()
- Parameters:
id
- The ID of the domain recordset entry.- Returns:
this
-
isAlias
Sets the value ofCfnDomain.DomainEntryProperty.getIsAlias()
- Parameters:
isAlias
- Whentrue
, 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 AWS 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 AWS resource and routes traffic to that resource.- Returns:
this
-
isAlias
Sets the value ofCfnDomain.DomainEntryProperty.getIsAlias()
- Parameters:
isAlias
- Whentrue
, 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 AWS 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 AWS resource and routes traffic to that resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.DomainEntryProperty>
- Returns:
- a new instance of
CfnDomain.DomainEntryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-