Interface Tunnel.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Tunnel.Builder,Tunnel>,SdkBuilder<Tunnel.Builder,Tunnel>,SdkPojo
- Enclosing class:
- Tunnel
public static interface Tunnel.Builder extends SdkPojo, CopyableBuilder<Tunnel.Builder,Tunnel>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tunnel.BuildercreatedAt(Instant createdAt)The time when the tunnel was created.Tunnel.Builderdescription(String description)A description of the tunnel.default Tunnel.BuilderdestinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.Tunnel.BuilderdestinationConfig(DestinationConfig destinationConfig)The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.default Tunnel.BuilderdestinationConnectionState(Consumer<ConnectionState.Builder> destinationConnectionState)The connection state of the destination application.Tunnel.BuilderdestinationConnectionState(ConnectionState destinationConnectionState)The connection state of the destination application.Tunnel.BuilderlastUpdatedAt(Instant lastUpdatedAt)The last time the tunnel was updated.default Tunnel.BuildersourceConnectionState(Consumer<ConnectionState.Builder> sourceConnectionState)The connection state of the source application.Tunnel.BuildersourceConnectionState(ConnectionState sourceConnectionState)The connection state of the source application.Tunnel.Builderstatus(String status)The status of a tunnel.Tunnel.Builderstatus(TunnelStatus status)The status of a tunnel.Tunnel.Buildertags(Collection<Tag> tags)A list of tag metadata associated with the secure tunnel.Tunnel.Buildertags(Consumer<Tag.Builder>... tags)A list of tag metadata associated with the secure tunnel.Tunnel.Buildertags(Tag... tags)A list of tag metadata associated with the secure tunnel.default Tunnel.BuildertimeoutConfig(Consumer<TimeoutConfig.Builder> timeoutConfig)Timeout configuration for the tunnel.Tunnel.BuildertimeoutConfig(TimeoutConfig timeoutConfig)Timeout configuration for the tunnel.Tunnel.BuildertunnelArn(String tunnelArn)The Amazon Resource Name (ARN) of a tunnel.Tunnel.BuildertunnelId(String tunnelId)A unique alpha-numeric ID that identifies a tunnel.-
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
-
tunnelId
Tunnel.Builder tunnelId(String tunnelId)
A unique alpha-numeric ID that identifies a tunnel.
- Parameters:
tunnelId- A unique alpha-numeric ID that identifies a tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tunnelArn
Tunnel.Builder tunnelArn(String tunnelArn)
The Amazon Resource Name (ARN) of a tunnel.
- Parameters:
tunnelArn- The Amazon Resource Name (ARN) of a tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Tunnel.Builder status(String status)
The status of a tunnel. Valid values are: Open and Closed.
- Parameters:
status- The status of a tunnel. Valid values are: Open and Closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TunnelStatus,TunnelStatus
-
status
Tunnel.Builder status(TunnelStatus status)
The status of a tunnel. Valid values are: Open and Closed.
- Parameters:
status- The status of a tunnel. Valid values are: Open and Closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TunnelStatus,TunnelStatus
-
sourceConnectionState
Tunnel.Builder sourceConnectionState(ConnectionState sourceConnectionState)
The connection state of the source application.
- Parameters:
sourceConnectionState- The connection state of the source application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceConnectionState
default Tunnel.Builder sourceConnectionState(Consumer<ConnectionState.Builder> sourceConnectionState)
The connection state of the source application.
This is a convenience method that creates an instance of theConnectionState.Builderavoiding the need to create one manually viaConnectionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceConnectionState(ConnectionState).- Parameters:
sourceConnectionState- a consumer that will call methods onConnectionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourceConnectionState(ConnectionState)
-
destinationConnectionState
Tunnel.Builder destinationConnectionState(ConnectionState destinationConnectionState)
The connection state of the destination application.
- Parameters:
destinationConnectionState- The connection state of the destination application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConnectionState
default Tunnel.Builder destinationConnectionState(Consumer<ConnectionState.Builder> destinationConnectionState)
The connection state of the destination application.
This is a convenience method that creates an instance of theConnectionState.Builderavoiding the need to create one manually viaConnectionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinationConnectionState(ConnectionState).- Parameters:
destinationConnectionState- a consumer that will call methods onConnectionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
destinationConnectionState(ConnectionState)
-
description
Tunnel.Builder description(String description)
A description of the tunnel.
- Parameters:
description- A description of the tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfig
Tunnel.Builder destinationConfig(DestinationConfig destinationConfig)
The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.
- Parameters:
destinationConfig- The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfig
default Tunnel.Builder destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
The destination configuration that specifies the thing name of the destination device and a service name that the local proxy uses to connect to the destination application.
This is a convenience method that creates an instance of theDestinationConfig.Builderavoiding the need to create one manually viaDestinationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinationConfig(DestinationConfig).- Parameters:
destinationConfig- a consumer that will call methods onDestinationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
destinationConfig(DestinationConfig)
-
timeoutConfig
Tunnel.Builder timeoutConfig(TimeoutConfig timeoutConfig)
Timeout configuration for the tunnel.
- Parameters:
timeoutConfig- Timeout configuration for the tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutConfig
default Tunnel.Builder timeoutConfig(Consumer<TimeoutConfig.Builder> timeoutConfig)
Timeout configuration for the tunnel.
This is a convenience method that creates an instance of theTimeoutConfig.Builderavoiding the need to create one manually viaTimeoutConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeoutConfig(TimeoutConfig).- Parameters:
timeoutConfig- a consumer that will call methods onTimeoutConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeoutConfig(TimeoutConfig)
-
tags
Tunnel.Builder tags(Collection<Tag> tags)
A list of tag metadata associated with the secure tunnel.
- Parameters:
tags- A list of tag metadata associated with the secure tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tunnel.Builder tags(Tag... tags)
A list of tag metadata associated with the secure tunnel.
- Parameters:
tags- A list of tag metadata associated with the secure tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tunnel.Builder tags(Consumer<Tag.Builder>... tags)
A list of tag metadata associated with the secure tunnel.
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)
-
createdAt
Tunnel.Builder createdAt(Instant createdAt)
The time when the tunnel was created.
- Parameters:
createdAt- The time when the tunnel was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
Tunnel.Builder lastUpdatedAt(Instant lastUpdatedAt)
The last time the tunnel was updated.
- Parameters:
lastUpdatedAt- The last time the tunnel was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-