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