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