Class SecurityGroupVpcAssociationReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.SecurityGroupVpcAssociationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityGroupVpcAssociationReference>
- Enclosing interface:
SecurityGroupVpcAssociationReference
@Stability(Stable)
public static final class SecurityGroupVpcAssociationReference.Builder
extends Object
implements software.amazon.jsii.Builder<SecurityGroupVpcAssociationReference>
A builder for
SecurityGroupVpcAssociationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSecurityGroupVpcAssociationReference.getGroupId()Sets the value ofSecurityGroupVpcAssociationReference.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupId
Sets the value ofSecurityGroupVpcAssociationReference.getGroupId()- Parameters:
groupId- The GroupId of the SecurityGroupVpcAssociation resource. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofSecurityGroupVpcAssociationReference.getVpcId()- Parameters:
vpcId- The VpcId of the SecurityGroupVpcAssociation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityGroupVpcAssociationReference>- Returns:
- a new instance of
SecurityGroupVpcAssociationReference - Throws:
NullPointerException- if any required attribute was not provided
-