public static final class CfnHostedZone.VPCProperty.Builder
extends java.lang.Object
CfnHostedZone.VPCProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnHostedZone.VPCProperty |
build()
Builds the configured instance.
|
CfnHostedZone.VPCProperty.Builder |
vpcId(java.lang.String vpcId)
Sets the value of
CfnHostedZone.VPCProperty.getVpcId() |
CfnHostedZone.VPCProperty.Builder |
vpcRegion(java.lang.String vpcRegion)
Sets the value of
CfnHostedZone.VPCProperty.getVpcRegion() |
public CfnHostedZone.VPCProperty.Builder vpcId(java.lang.String vpcId)
CfnHostedZone.VPCProperty.getVpcId()
vpcId
- *Private hosted zones only:* The ID of an Amazon VPC. This parameter is required.
For public hosted zones, omit
VPCs
,VPCId
, andVPCRegion
.
this
public CfnHostedZone.VPCProperty.Builder vpcRegion(java.lang.String vpcRegion)
CfnHostedZone.VPCProperty.getVpcRegion()
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
.
this
public CfnHostedZone.VPCProperty build()
CfnHostedZone.VPCProperty
java.lang.NullPointerException
- if any required attribute was not provided