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 Details

    • ownerAccount

      Connection.Builder ownerAccount(String ownerAccount)

      The ID of the Amazon Web Services account that owns the connection.

      Parameters:
      ownerAccount - The ID of the Amazon Web Services account that owns the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.
    • connectionName

      Connection.Builder connectionName(String connectionName)

      The name of the connection.

      Parameters:
      connectionName - The name of the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectionState

      Connection.Builder connectionState(String connectionState)

      The state of the connection. The following are the possible values:

      • ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.

      • requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

      • pending: The connection has been approved and is being initialized.

      • available: The network link is up and the connection is ready for use.

      • down: The network link is down.

      • deleting: The connection is being deleted.

      • deleted: The connection has been deleted.

      • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

      • unknown: The state of the connection is not available.

      Parameters:
      connectionState - The state of the connection. The following are the possible values:

      • ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.

      • requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

      • pending: The connection has been approved and is being initialized.

      • available: The network link is up and the connection is ready for use.

      • down: The network link is down.

      • deleting: The connection is being deleted.

      • deleted: The connection has been deleted.

      • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

      • unknown: The state of the connection is not available.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • connectionState

      Connection.Builder connectionState(ConnectionState connectionState)

      The state of the connection. The following are the possible values:

      • ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.

      • requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

      • pending: The connection has been approved and is being initialized.

      • available: The network link is up and the connection is ready for use.

      • down: The network link is down.

      • deleting: The connection is being deleted.

      • deleted: The connection has been deleted.

      • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

      • unknown: The state of the connection is not available.

      Parameters:
      connectionState - The state of the connection. The following are the possible values:

      • ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.

      • requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

      • pending: The connection has been approved and is being initialized.

      • available: The network link is up and the connection is ready for use.

      • down: The network link is down.

      • deleting: The connection is being deleted.

      • deleted: The connection has been deleted.

      • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

      • unknown: The state of the connection is not available.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • region

      Connection.Builder region(String region)

      The Amazon Web Services Region where the connection is located.

      Parameters:
      region - The Amazon Web Services Region where the connection is located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      Connection.Builder location(String location)

      The location of the connection.

      Parameters:
      location - The location of the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bandwidth

      Connection.Builder bandwidth(String bandwidth)

      The bandwidth of the connection.

      Parameters:
      bandwidth - The bandwidth of the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vlan

      The ID of the VLAN.

      Parameters:
      vlan - The ID of the VLAN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partnerName

      Connection.Builder partnerName(String partnerName)

      The name of the Direct Connect service provider associated with the connection.

      Parameters:
      partnerName - The name of the Direct Connect service provider associated with the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loaIssueTime

      Connection.Builder loaIssueTime(Instant loaIssueTime)

      The time of the most recent call to DescribeLoa for this connection.

      Parameters:
      loaIssueTime - The time of the most recent call to DescribeLoa for this connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lagId

      Connection.Builder lagId(String lagId)

      The ID of the LAG.

      Parameters:
      lagId - The ID of the LAG.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsDevice

      Connection.Builder awsDevice(String awsDevice)

      The Direct Connect endpoint on which the physical connection terminates.

      Parameters:
      awsDevice - The Direct Connect endpoint on which the physical connection terminates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jumboFrameCapable

      Connection.Builder jumboFrameCapable(Boolean jumboFrameCapable)

      Indicates whether jumbo frames are supported.

      Parameters:
      jumboFrameCapable - Indicates whether jumbo frames are supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsDeviceV2

      Connection.Builder awsDeviceV2(String awsDeviceV2)

      The Direct Connect endpoint that terminates the physical connection.

      Parameters:
      awsDeviceV2 - The Direct Connect endpoint that terminates the physical connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsLogicalDeviceId

      Connection.Builder awsLogicalDeviceId(String awsLogicalDeviceId)

      The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.

      Parameters:
      awsLogicalDeviceId - The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hasLogicalRedundancy

      Connection.Builder hasLogicalRedundancy(String hasLogicalRedundancy)

      Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).

      Parameters:
      hasLogicalRedundancy - Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hasLogicalRedundancy

      Connection.Builder hasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy)

      Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).

      Parameters:
      hasLogicalRedundancy - Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      The tags associated with the connection.

      Parameters:
      tags - The tags associated with 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 associated with the connection.

      Parameters:
      tags - The tags associated with the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags associated with the connection.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • providerName

      Connection.Builder providerName(String providerName)

      The name of the service provider associated with the connection.

      Parameters:
      providerName - The name of the service provider associated with the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • macSecCapable

      Connection.Builder macSecCapable(Boolean macSecCapable)

      Indicates whether the connection supports MAC Security (MACsec).

      Parameters:
      macSecCapable - Indicates whether the connection supports MAC Security (MACsec).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • portEncryptionStatus

      Connection.Builder portEncryptionStatus(String portEncryptionStatus)

      The MAC Security (MACsec) port link status of the connection.

      The valid values are Encryption Up, which means that there is an active Connection Key Name, or Encryption Down.

      Parameters:
      portEncryptionStatus - The MAC Security (MACsec) port link status of the connection.

      The valid values are Encryption Up, which means that there is an active Connection Key Name, or Encryption Down.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionMode

      Connection.Builder encryptionMode(String encryptionMode)

      The MAC Security (MACsec) connection encryption mode.

      The valid values are no_encrypt, should_encrypt, and must_encrypt.

      Parameters:
      encryptionMode - The MAC Security (MACsec) connection encryption mode.

      The valid values are no_encrypt, should_encrypt, and must_encrypt.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • macSecKeys

      Connection.Builder macSecKeys(Collection<MacSecKey> macSecKeys)

      The MAC Security (MACsec) security keys associated with the connection.

      Parameters:
      macSecKeys - The MAC Security (MACsec) security keys associated with the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • macSecKeys

      Connection.Builder macSecKeys(MacSecKey... macSecKeys)

      The MAC Security (MACsec) security keys associated with the connection.

      Parameters:
      macSecKeys - The MAC Security (MACsec) security keys associated with the connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • macSecKeys

      Connection.Builder macSecKeys(Consumer<MacSecKey.Builder>... macSecKeys)

      The MAC Security (MACsec) security keys associated with the connection.

      This is a convenience method that creates an instance of the MacSecKey.Builder avoiding the need to create one manually via MacSecKey.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to macSecKeys(List<MacSecKey>).

      Parameters:
      macSecKeys - a consumer that will call methods on MacSecKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: