public static final class CreateTrafficMarkingPolicyRequest.Builder extends Object
public CreateTrafficMarkingPolicyRequest.Builder clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among all requests. The client token can contain only ASCII characters.
example:If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
123e4567-e89b-12d3-a456-426****
public CreateTrafficMarkingPolicyRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public CreateTrafficMarkingPolicyRequest.Builder markingDscp(Integer markingDscp)
The differentiated services code point (DSCP) value to be added to packets that match the traffic classification rule. Valid values: 0 to 63.
The DSCP value of each traffic marking policy on a transit router must be unique.
This parameter is required.
example:5
public CreateTrafficMarkingPolicyRequest.Builder ownerAccount(String ownerAccount)
public CreateTrafficMarkingPolicyRequest.Builder ownerId(Long ownerId)
public CreateTrafficMarkingPolicyRequest.Builder priority(Integer priority)
The priority value of the traffic marking policy. Valid values: 1 to 100.
The priority value of each traffic marking policy on a transit router must be unique. A smaller value specifies a higher priority.
This parameter is required.
example:5
public CreateTrafficMarkingPolicyRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTrafficMarkingPolicyRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTrafficMarkingPolicyRequest.Builder trafficMarkingPolicyDescription(String trafficMarkingPolicyDescription)
The description of the traffic marking policy.
This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
example:desctest
public CreateTrafficMarkingPolicyRequest.Builder trafficMarkingPolicyName(String trafficMarkingPolicyName)
The name of the traffic marking policy.
The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
example:nametest
public CreateTrafficMarkingPolicyRequest.Builder trafficMatchRules(List<CreateTrafficMarkingPolicyRequest.TrafficMatchRules> trafficMatchRules)
The traffic classification rules in the traffic marking policy.
Data packets that meet the traffic classification rule is assigned the DSCP value of quality of service (QoS) policy.
You can create up to 50 traffic classification rules.
public CreateTrafficMarkingPolicyRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
This parameter is required.
example:tr-8vbuqeo5h5pu3m01d****
public CreateTrafficMarkingPolicyRequest build()
Copyright © 2025. All rights reserved.