Class CfnDomainPropsMixin.DomainEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnDomainPropsMixin.DomainEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainPropsMixin.DomainEntryProperty>
- Enclosing interface:
CfnDomainPropsMixin.DomainEntryProperty
@Stability(Stable)
public static final class CfnDomainPropsMixin.DomainEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainPropsMixin.DomainEntryProperty>
A builder for
CfnDomainPropsMixin.DomainEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getId()Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getIsAlias()isAlias(IResolvable isAlias) Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getIsAlias()Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getName()Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getTarget()Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getId()- Parameters:
id- The ID of the domain recordset entry.- Returns:
this
-
isAlias
Sets the value ofCfnDomainPropsMixin.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
@Stability(Stable) public CfnDomainPropsMixin.DomainEntryProperty.Builder isAlias(IResolvable isAlias) Sets the value ofCfnDomainPropsMixin.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
-
name
Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getName()- Parameters:
name- The name of the domain.- Returns:
this
-
target
Sets the value ofCfnDomainPropsMixin.DomainEntryProperty.getTarget()- Parameters:
target- The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.). 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 setisAliastotruewhen setting up an A record for a Lightsail load balancer, distribution, or container service.- Returns:
this
-
type
Sets the value ofCfnDomainPropsMixin.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). The following domain entry types can be used:AAAAACNAMEMXNSSOASRVTXT
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainPropsMixin.DomainEntryProperty>- Returns:
- a new instance of
CfnDomainPropsMixin.DomainEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-