Class CfnVPCDHCPOptionsAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCDHCPOptionsAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCDHCPOptionsAssociationProps>
- Enclosing interface:
CfnVPCDHCPOptionsAssociationProps
@Stability(Stable)
public static final class CfnVPCDHCPOptionsAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCDHCPOptionsAssociationProps>
A builder for
CfnVPCDHCPOptionsAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dhcpOptionsId(String dhcpOptionsId) Sets the value ofCfnVPCDHCPOptionsAssociationProps.getDhcpOptionsId()dhcpOptionsId(IDHCPOptionsRef dhcpOptionsId) Sets the value ofCfnVPCDHCPOptionsAssociationProps.getDhcpOptionsId()Sets the value ofCfnVPCDHCPOptionsAssociationProps.getVpcId()Sets the value ofCfnVPCDHCPOptionsAssociationProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dhcpOptionsId
@Stability(Stable) public CfnVPCDHCPOptionsAssociationProps.Builder dhcpOptionsId(String dhcpOptionsId) Sets the value ofCfnVPCDHCPOptionsAssociationProps.getDhcpOptionsId()- Parameters:
dhcpOptionsId- The ID of the DHCP options set, ordefaultto associate no DHCP options with the VPC. This parameter is required.- Returns:
this
-
dhcpOptionsId
@Stability(Stable) public CfnVPCDHCPOptionsAssociationProps.Builder dhcpOptionsId(IDHCPOptionsRef dhcpOptionsId) Sets the value ofCfnVPCDHCPOptionsAssociationProps.getDhcpOptionsId()- Parameters:
dhcpOptionsId- The ID of the DHCP options set, ordefaultto associate no DHCP options with the VPC. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnVPCDHCPOptionsAssociationProps.getVpcId()- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnVPCDHCPOptionsAssociationProps.getVpcId()- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCDHCPOptionsAssociationProps>- Returns:
- a new instance of
CfnVPCDHCPOptionsAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-