Class CfnTransitGatewayRegistrationProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRegistrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRegistrationProps>
- Enclosing interface:
CfnTransitGatewayRegistrationProps
@Stability(Stable)
public static final class CfnTransitGatewayRegistrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayRegistrationProps>
A builder for
CfnTransitGatewayRegistrationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.globalNetworkId
(String globalNetworkId) Sets the value ofCfnTransitGatewayRegistrationProps.getGlobalNetworkId()
transitGatewayArn
(String transitGatewayArn) Sets the value ofCfnTransitGatewayRegistrationProps.getTransitGatewayArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
globalNetworkId
@Stability(Stable) public CfnTransitGatewayRegistrationProps.Builder globalNetworkId(String globalNetworkId) Sets the value ofCfnTransitGatewayRegistrationProps.getGlobalNetworkId()
- Parameters:
globalNetworkId
- The ID of the global network. This parameter is required.- Returns:
this
-
transitGatewayArn
@Stability(Stable) public CfnTransitGatewayRegistrationProps.Builder transitGatewayArn(String transitGatewayArn) Sets the value ofCfnTransitGatewayRegistrationProps.getTransitGatewayArn()
- Parameters:
transitGatewayArn
- The Amazon Resource Name (ARN) of the transit gateway. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayRegistrationProps>
- Returns:
- a new instance of
CfnTransitGatewayRegistrationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-