Interface Peering.Builder

    • Method Detail

      • 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, PeeringType
      • 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:
        PeeringType, PeeringType
      • 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:
        PeeringState, PeeringState
      • state

        Peering.Builder state​(PeeringState 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:
        PeeringState, PeeringState
      • 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

        Peering.Builder tags​(Collection<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

        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

        Peering.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)
      • 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.