public static final class UpdateTrafficMarkingPolicyAttributeRequest.Builder extends Object
public UpdateTrafficMarkingPolicyAttributeRequest.Builder addTrafficMatchRules(List<UpdateTrafficMarkingPolicyAttributeRequest.AddTrafficMatchRules> addTrafficMatchRules)
The traffic classification rules to be added to the traffic marking policy.
You can add at most 50 traffic classification rules in each call.
public UpdateTrafficMarkingPolicyAttributeRequest.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 different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
example:123e4567-e89b-12d3-a456-426****
public UpdateTrafficMarkingPolicyAttributeRequest.Builder deleteTrafficMatchRules(List<UpdateTrafficMarkingPolicyAttributeRequest.DeleteTrafficMatchRules> deleteTrafficMatchRules)
The traffic classification rules to be deleted from the traffic marking policy.
Specify detailed information about the traffic classification rule, such as the source CIDR block, destination CIDR block, source port, destination port, and DSCP value. If you do not specify sufficient information, the system may fail to match the traffic classification rule that you want to delete.
public UpdateTrafficMarkingPolicyAttributeRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public UpdateTrafficMarkingPolicyAttributeRequest.Builder ownerAccount(String ownerAccount)
public UpdateTrafficMarkingPolicyAttributeRequest.Builder ownerId(Long ownerId)
public UpdateTrafficMarkingPolicyAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public UpdateTrafficMarkingPolicyAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public UpdateTrafficMarkingPolicyAttributeRequest.Builder trafficMarkingPolicyDescription(String trafficMarkingPolicyDescription)
The new description of the traffic marking policy.
The description must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The description must start with a letter.
example:desctest
public UpdateTrafficMarkingPolicyAttributeRequest.Builder trafficMarkingPolicyId(String trafficMarkingPolicyId)
The ID of the traffic marking policy.
This parameter is required.
example:tm-u9nxup5kww5po8****
public UpdateTrafficMarkingPolicyAttributeRequest.Builder trafficMarkingPolicyName(String trafficMarkingPolicyName)
The new name of the traffic marking policy.
The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
example:nametest
public UpdateTrafficMarkingPolicyAttributeRequest build()
Copyright © 2025. All rights reserved.