Interface Peering.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Peering.Builder,Peering>, SdkBuilder<Peering.Builder,Peering>, SdkPojo
Enclosing class:
Peering

@Mutable @NotThreadSafe public static interface Peering.Builder extends SdkPojo, CopyableBuilder<Peering.Builder,Peering>
  • Method Details

    • coreNetworkId

      Peering.Builder coreNetworkId(String coreNetworkId)

      The ID of the core network for the peering request.

      Parameters:
      coreNetworkId - The ID of the core network for the peering request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • coreNetworkArn

      Peering.Builder coreNetworkArn(String coreNetworkArn)

      The ARN of a core network.

      Parameters:
      coreNetworkArn - The ARN of a core network.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • peeringId

      Peering.Builder peeringId(String peeringId)

      The ID of the peering attachment.

      Parameters:
      peeringId - The ID of the peering attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerAccountId

      Peering.Builder ownerAccountId(String ownerAccountId)

      The ID of the account owner.

      Parameters:
      ownerAccountId - The ID of the account owner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • peeringType

      Peering.Builder peeringType(String peeringType)

      The type of peering. This will be TRANSIT_GATEWAY.

      Parameters:
      peeringType - The type of peering. This will be TRANSIT_GATEWAY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • peeringType

      Peering.Builder peeringType(PeeringType peeringType)

      The type of peering. This will be TRANSIT_GATEWAY.

      Parameters:
      peeringType - The type of peering. This will be TRANSIT_GATEWAY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      Peering.Builder state(String state)

      The current state of the peering connection.

      Parameters:
      state - The current state of the peering connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The current state of the peering connection.

      Parameters:
      state - The current state of the peering connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • edgeLocation

      Peering.Builder edgeLocation(String edgeLocation)

      The edge location for the peer.

      Parameters:
      edgeLocation - The edge location for the peer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceArn

      Peering.Builder resourceArn(String resourceArn)

      The resource ARN of the peer.

      Parameters:
      resourceArn - The resource ARN of the peer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The list of key-value tags associated with the peering.

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

      Peering.Builder tags(Tag... tags)

      The list of key-value tags associated with the peering.

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

      The list of key-value tags associated with the peering.

      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:
    • createdAt

      Peering.Builder createdAt(Instant createdAt)

      The timestamp when the attachment peer was created.

      Parameters:
      createdAt - The timestamp when the attachment peer was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModificationErrors

      Peering.Builder lastModificationErrors(Collection<PeeringError> lastModificationErrors)

      Describes the error associated with the Connect peer request.

      Parameters:
      lastModificationErrors - Describes the error associated with the Connect peer request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModificationErrors

      Peering.Builder lastModificationErrors(PeeringError... lastModificationErrors)

      Describes the error associated with the Connect peer request.

      Parameters:
      lastModificationErrors - Describes the error associated with the Connect peer request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModificationErrors

      Peering.Builder lastModificationErrors(Consumer<PeeringError.Builder>... lastModificationErrors)

      Describes the error associated with the Connect peer request.

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

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

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