Interface Connection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Connection.Builder,
,Connection> SdkBuilder<Connection.Builder,
,Connection> SdkPojo
- Enclosing class:
Connection
public static interface Connection.Builder
extends SdkPojo, CopyableBuilder<Connection.Builder,Connection>
-
Method Summary
Modifier and TypeMethodDescriptionconnectedDeviceId
(String connectedDeviceId) The ID of the second device in the connection.connectedLinkId
(String connectedLinkId) The ID of the link for the second device in the connection.connectionArn
(String connectionArn) The Amazon Resource Name (ARN) of the connection.connectionId
(String connectionId) The ID of the connection.The date and time that the connection was created.description
(String description) The description of the connection.The ID of the first device in the connection.globalNetworkId
(String globalNetworkId) The ID of the global network.The ID of the link for the first device in the connection.The state of the connection.state
(ConnectionState state) The state of the connection.tags
(Collection<Tag> tags) The tags for the connection.tags
(Consumer<Tag.Builder>... tags) The tags for the connection.The tags for the connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
connectionId
The ID of the connection.
- Parameters:
connectionId
- The ID of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionArn
The Amazon Resource Name (ARN) of the connection.
- Parameters:
connectionArn
- The Amazon Resource Name (ARN) of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
globalNetworkId
The ID of the global network.
- Parameters:
globalNetworkId
- The ID of the global network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceId
The ID of the first device in the connection.
- Parameters:
deviceId
- The ID of the first device in the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectedDeviceId
The ID of the second device in the connection.
- Parameters:
connectedDeviceId
- The ID of the second device in the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linkId
The ID of the link for the first device in the connection.
- Parameters:
linkId
- The ID of the link for the first device in the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectedLinkId
The ID of the link for the second device in the connection.
- Parameters:
connectedLinkId
- The ID of the link for the second device in the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the connection.
- Parameters:
description
- The description of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time that the connection was created.
- Parameters:
createdAt
- The date and time that the connection was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the connection.
- Parameters:
state
- The state of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the connection.
- Parameters:
state
- The state of the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags for the connection.
- Parameters:
tags
- The tags for the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the connection.
- Parameters:
tags
- The tags for the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the connection.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-