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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection.BuilderconnectedDeviceId(String connectedDeviceId)The ID of the second device in the connection.Connection.BuilderconnectedLinkId(String connectedLinkId)The ID of the link for the second device in the connection.Connection.BuilderconnectionArn(String connectionArn)The Amazon Resource Name (ARN) of the connection.Connection.BuilderconnectionId(String connectionId)The ID of the connection.Connection.BuildercreatedAt(Instant createdAt)The date and time that the connection was created.Connection.Builderdescription(String description)The description of the connection.Connection.BuilderdeviceId(String deviceId)The ID of the first device in the connection.Connection.BuilderglobalNetworkId(String globalNetworkId)The ID of the global network.Connection.BuilderlinkId(String linkId)The ID of the link for the first device in the connection.Connection.Builderstate(String state)The state of the connection.Connection.Builderstate(ConnectionState state)The state of the connection.Connection.Buildertags(Collection<Tag> tags)The tags for the connection.Connection.Buildertags(Consumer<Tag.Builder>... tags)The tags for the connection.Connection.Buildertags(Tag... tags)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 Detail
-
connectionId
Connection.Builder connectionId(String 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
Connection.Builder connectionArn(String 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
Connection.Builder globalNetworkId(String 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
Connection.Builder deviceId(String 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
Connection.Builder connectedDeviceId(String 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
Connection.Builder linkId(String 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
Connection.Builder connectedLinkId(String 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
Connection.Builder description(String 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
Connection.Builder createdAt(Instant 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
Connection.Builder state(String 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:
ConnectionState,ConnectionState
-
state
Connection.Builder state(ConnectionState 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:
ConnectionState,ConnectionState
-
tags
Connection.Builder tags(Collection<Tag> 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
Connection.Builder tags(Tag... 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
Connection.Builder tags(Consumer<Tag.Builder>... tags)
The tags for the connection.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-