public static final class CreateTrafficMirrorSessionRequest.Builder extends Object
public CreateTrafficMirrorSessionRequest.Builder clientToken(String clientToken)
You can use the client to generate the value, but you must ensure that the value is unique among all requests. The client token can contain only ASCII characters. > If you do not set this parameter, the system uses **RequestId** as **ClientToken**. **RequestId** might be different for each API request.
public CreateTrafficMirrorSessionRequest.Builder dryRun(Boolean dryRun)
* **true**: performs a dry run. The system checks the required parameters, request format, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * **false** (default): performs a dry run and sends the request. If the request passes the dry run, the operation is performed.
public CreateTrafficMirrorSessionRequest.Builder enabled(Boolean enabled)
* **false** (default): does not enable the traffic mirror session. * **true**: enables the traffic mirror session.
public CreateTrafficMirrorSessionRequest.Builder ownerAccount(String ownerAccount)
public CreateTrafficMirrorSessionRequest.Builder ownerId(Long ownerId)
public CreateTrafficMirrorSessionRequest.Builder packetLength(Integer packetLength)
Valid values: **64 to 9600**. Default value: **1500**.
public CreateTrafficMirrorSessionRequest.Builder priority(Integer priority)
A smaller value indicates a higher priority. You cannot specify identical priorities for traffic mirror sessions that are created in the same region by using the same account.
public CreateTrafficMirrorSessionRequest.Builder regionId(String regionId)
public CreateTrafficMirrorSessionRequest.Builder resourceGroupId(String resourceGroupId)
public CreateTrafficMirrorSessionRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTrafficMirrorSessionRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTrafficMirrorSessionRequest.Builder tag(List<CreateTrafficMirrorSessionRequest.Tag> tag)
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorFilterId(String trafficMirrorFilterId)
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorSessionDescription(String trafficMirrorSessionDescription)
The description must be 1 to 256 characters in length and cannot start with `http://` or `https://`.
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorSessionName(String trafficMirrorSessionName)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorSourceIds(List<String> trafficMirrorSourceIds)
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorTargetId(String trafficMirrorTargetId)
public CreateTrafficMirrorSessionRequest.Builder trafficMirrorTargetType(String trafficMirrorTargetType)
* **NetworkInterface**: an ENI * **SLB**: an SLB instance
public CreateTrafficMirrorSessionRequest.Builder virtualNetworkId(Integer virtualNetworkId)
You can use VNIs to identify mirrored traffic from different sessions at the traffic mirror destination. You can specify a custom VNI or use a random VNI allocated by the system. If you want the system to randomly allocate a VNI, do not enter a value.
public CreateTrafficMirrorSessionRequest build()
Copyright © 2024. All rights reserved.