Class CustomerGatewayReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CustomerGatewayReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomerGatewayReference>
- Enclosing interface:
CustomerGatewayReference
@Stability(Stable)
public static final class CustomerGatewayReference.Builder
extends Object
implements software.amazon.jsii.Builder<CustomerGatewayReference>
A builder for
CustomerGatewayReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customerGatewayId
(String customerGatewayId) Sets the value ofCustomerGatewayReference.getCustomerGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerGatewayId
@Stability(Stable) public CustomerGatewayReference.Builder customerGatewayId(String customerGatewayId) Sets the value ofCustomerGatewayReference.getCustomerGatewayId()
- Parameters:
customerGatewayId
- The CustomerGatewayId of the CustomerGateway resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomerGatewayReference>
- Returns:
- a new instance of
CustomerGatewayReference
- Throws:
NullPointerException
- if any required attribute was not provided
-