Interface ModifyTrafficMirrorSessionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<ModifyTrafficMirrorSessionRequest.Builder,ModifyTrafficMirrorSessionRequest>, Ec2Request.Builder, SdkBuilder<ModifyTrafficMirrorSessionRequest.Builder,ModifyTrafficMirrorSessionRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
ModifyTrafficMirrorSessionRequest

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

    • trafficMirrorSessionId

      ModifyTrafficMirrorSessionRequest.Builder trafficMirrorSessionId(String trafficMirrorSessionId)

      The ID of the Traffic Mirror session.

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

      ModifyTrafficMirrorSessionRequest.Builder trafficMirrorTargetId(String trafficMirrorTargetId)

      The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.

      Parameters:
      trafficMirrorTargetId - The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficMirrorFilterId

      ModifyTrafficMirrorSessionRequest.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.
    • packetLength

      The number of bytes in each packet to mirror. These are 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.

      For sessions with Network Load Balancer (NLB) traffic mirror targets, the default PacketLength will be set to 8500. Valid values are 1-8500. Setting a PacketLength greater than 8500 will result in an error response.

      Parameters:
      packetLength - The number of bytes in each packet to mirror. These are 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.

      For sessions with Network Load Balancer (NLB) traffic mirror targets, the default PacketLength will be set to 8500. Valid values are 1-8500. Setting a PacketLength greater than 8500 will result in an error response.

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

      ModifyTrafficMirrorSessionRequest.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

      ModifyTrafficMirrorSessionRequest.Builder virtualNetworkId(Integer virtualNetworkId)

      The virtual network ID of the Traffic Mirror session.

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

      The description to assign to the Traffic Mirror session.

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

      ModifyTrafficMirrorSessionRequest.Builder removeFieldsWithStrings(Collection<String> removeFields)

      The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

      Parameters:
      removeFields - The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

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

      ModifyTrafficMirrorSessionRequest.Builder removeFieldsWithStrings(String... removeFields)

      The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

      Parameters:
      removeFields - The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

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

      The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

      Parameters:
      removeFields - The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

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

      The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

      Parameters:
      removeFields - The properties that you want to remove from the Traffic Mirror session.

      When you remove a property from a Traffic Mirror session, the property is set to the default.

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

      Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

      Parameters:
      dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      ModifyTrafficMirrorSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.