Class CfnConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectionProps>
- Enclosing interface:
CfnConnectionProps
@Stability(Stable)
public static final class CfnConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectionProps>
A builder for
CfnConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectedDeviceId(String connectedDeviceId) Sets the value ofCfnConnectionProps.getConnectedDeviceId()connectedLinkId(String connectedLinkId) Sets the value ofCfnConnectionProps.getConnectedLinkId()description(String description) Sets the value ofCfnConnectionProps.getDescription()Sets the value ofCfnConnectionProps.getDeviceId()globalNetworkId(String globalNetworkId) Sets the value ofCfnConnectionProps.getGlobalNetworkId()Sets the value ofCfnConnectionProps.getLinkId()Sets the value ofCfnConnectionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectedDeviceId
Sets the value ofCfnConnectionProps.getConnectedDeviceId()- Parameters:
connectedDeviceId- The ID of the second device in the connection. This parameter is required.- Returns:
this
-
deviceId
Sets the value ofCfnConnectionProps.getDeviceId()- Parameters:
deviceId- The ID of the first device in the connection. This parameter is required.- Returns:
this
-
globalNetworkId
Sets the value ofCfnConnectionProps.getGlobalNetworkId()- Parameters:
globalNetworkId- The ID of the global network that the connection belongs to. This parameter is required.- Returns:
this
-
connectedLinkId
Sets the value ofCfnConnectionProps.getConnectedLinkId()- Parameters:
connectedLinkId- The ID of the link for the second device.- Returns:
this
-
description
Sets the value ofCfnConnectionProps.getDescription()- Parameters:
description- The description of the connection.- Returns:
this
-
linkId
Sets the value ofCfnConnectionProps.getLinkId()- Parameters:
linkId- The ID of the link for the first device.- Returns:
this
-
tags
Sets the value ofCfnConnectionProps.getTags()- Parameters:
tags- The tags for the connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectionProps>- Returns:
- a new instance of
CfnConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-