Interface TrafficMirrorSession.Builder

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

public static interface TrafficMirrorSession.Builder extends SdkPojo, CopyableBuilder<TrafficMirrorSession.Builder,TrafficMirrorSession>
  • Method Details

    • trafficMirrorSessionId

      TrafficMirrorSession.Builder trafficMirrorSessionId(String trafficMirrorSessionId)

      The ID for the Traffic Mirror session.

      Parameters:
      trafficMirrorSessionId - The ID for the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficMirrorTargetId

      TrafficMirrorSession.Builder trafficMirrorTargetId(String trafficMirrorTargetId)

      The ID of the Traffic Mirror target.

      Parameters:
      trafficMirrorTargetId - The ID of the Traffic Mirror target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficMirrorFilterId

      TrafficMirrorSession.Builder trafficMirrorFilterId(String trafficMirrorFilterId)

      The ID of the Traffic Mirror filter.

      Parameters:
      trafficMirrorFilterId - The ID of the Traffic Mirror filter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaceId

      TrafficMirrorSession.Builder networkInterfaceId(String networkInterfaceId)

      The ID of the Traffic Mirror session's network interface.

      Parameters:
      networkInterfaceId - The ID of the Traffic Mirror session's network interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerId

      The ID of the account that owns the Traffic Mirror session.

      Parameters:
      ownerId - The ID of the account that owns the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • packetLength

      TrafficMirrorSession.Builder packetLength(Integer packetLength)

      The number of bytes in each packet to mirror. These are the bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet

      Parameters:
      packetLength - The number of bytes in each packet to mirror. These are the bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionNumber

      TrafficMirrorSession.Builder sessionNumber(Integer sessionNumber)

      The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.

      Valid values are 1-32766.

      Parameters:
      sessionNumber - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.

      Valid values are 1-32766.

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

      TrafficMirrorSession.Builder virtualNetworkId(Integer virtualNetworkId)

      The virtual network ID associated with the Traffic Mirror session.

      Parameters:
      virtualNetworkId - The virtual network ID associated with the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      TrafficMirrorSession.Builder description(String description)

      The description of the Traffic Mirror session.

      Parameters:
      description - The description of the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the Traffic Mirror session.

      Parameters:
      tags - The tags assigned to the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the Traffic Mirror session.

      Parameters:
      tags - The tags assigned to the Traffic Mirror session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the Traffic Mirror session.

      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: