Class CfnHostedZone.VPCProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnHostedZone.VPCProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostedZone.VPCProperty>
- Enclosing interface:
CfnHostedZone.VPCProperty
@Stability(Stable)
public static final class CfnHostedZone.VPCProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostedZone.VPCProperty>
A builder for
CfnHostedZone.VPCProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnHostedZone.VPCProperty.getVpcId()Sets the value ofCfnHostedZone.VPCProperty.getVpcRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcId
Sets the value ofCfnHostedZone.VPCProperty.getVpcId()- Parameters:
vpcId- Private hosted zones only: The ID of an Amazon VPC. This parameter is required.For public hosted zones, omit
VPCs,VPCId, andVPCRegion.- Returns:
this
-
vpcRegion
Sets the value ofCfnHostedZone.VPCProperty.getVpcRegion()- Parameters:
vpcRegion- Private hosted zones only: The region that an Amazon VPC was created in. This parameter is required.For public hosted zones, omit
VPCs,VPCId, andVPCRegion.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHostedZone.VPCProperty>- Returns:
- a new instance of
CfnHostedZone.VPCProperty - Throws:
NullPointerException- if any required attribute was not provided
-