
com.aliyun.sdk.service.cbn20170912.models.AddTraficMatchRuleToTrafficMarkingPolicyRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cbn20170912.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AddTraficMatchRuleToTrafficMarkingPolicyRequest} extends {@link RequestModel}
*
* AddTraficMatchRuleToTrafficMarkingPolicyRequest
*/
public class AddTraficMatchRuleToTrafficMarkingPolicyRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMarkingPolicyId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMarkingPolicyId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMatchRules")
private java.util.List < TrafficMatchRules> trafficMatchRules;
private AddTraficMatchRuleToTrafficMarkingPolicyRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.trafficMarkingPolicyId = builder.trafficMarkingPolicyId;
this.trafficMatchRules = builder.trafficMatchRules;
}
public static Builder builder() {
return new Builder();
}
public static AddTraficMatchRuleToTrafficMarkingPolicyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return trafficMarkingPolicyId
*/
public String getTrafficMarkingPolicyId() {
return this.trafficMarkingPolicyId;
}
/**
* @return trafficMatchRules
*/
public java.util.List < TrafficMatchRules> getTrafficMatchRules() {
return this.trafficMatchRules;
}
public static final class Builder extends Request.Builder {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String trafficMarkingPolicyId;
private java.util.List < TrafficMatchRules> trafficMatchRules;
private Builder() {
super();
}
private Builder(AddTraficMatchRuleToTrafficMarkingPolicyRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.trafficMarkingPolicyId = request.trafficMarkingPolicyId;
this.trafficMatchRules = request.trafficMatchRules;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* TrafficMarkingPolicyId.
*/
public Builder trafficMarkingPolicyId(String trafficMarkingPolicyId) {
this.putQueryParameter("TrafficMarkingPolicyId", trafficMarkingPolicyId);
this.trafficMarkingPolicyId = trafficMarkingPolicyId;
return this;
}
/**
* TrafficMatchRules.
*/
public Builder trafficMatchRules(java.util.List < TrafficMatchRules> trafficMatchRules) {
this.putQueryParameter("TrafficMatchRules", trafficMatchRules);
this.trafficMatchRules = trafficMatchRules;
return this;
}
@Override
public AddTraficMatchRuleToTrafficMarkingPolicyRequest build() {
return new AddTraficMatchRuleToTrafficMarkingPolicyRequest(this);
}
}
public static class TrafficMatchRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidr")
private String dstCidr;
@com.aliyun.core.annotation.NameInMap("DstPortRange")
private java.util.List < Integer > dstPortRange;
@com.aliyun.core.annotation.NameInMap("MatchDscp")
private Integer matchDscp;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SrcCidr")
private String srcCidr;
@com.aliyun.core.annotation.NameInMap("SrcPortRange")
private java.util.List < Integer > srcPortRange;
@com.aliyun.core.annotation.NameInMap("TrafficMatchRuleDescription")
private String trafficMatchRuleDescription;
@com.aliyun.core.annotation.NameInMap("TrafficMatchRuleName")
private String trafficMatchRuleName;
private TrafficMatchRules(Builder builder) {
this.dstCidr = builder.dstCidr;
this.dstPortRange = builder.dstPortRange;
this.matchDscp = builder.matchDscp;
this.protocol = builder.protocol;
this.srcCidr = builder.srcCidr;
this.srcPortRange = builder.srcPortRange;
this.trafficMatchRuleDescription = builder.trafficMatchRuleDescription;
this.trafficMatchRuleName = builder.trafficMatchRuleName;
}
public static Builder builder() {
return new Builder();
}
public static TrafficMatchRules create() {
return builder().build();
}
/**
* @return dstCidr
*/
public String getDstCidr() {
return this.dstCidr;
}
/**
* @return dstPortRange
*/
public java.util.List < Integer > getDstPortRange() {
return this.dstPortRange;
}
/**
* @return matchDscp
*/
public Integer getMatchDscp() {
return this.matchDscp;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return srcCidr
*/
public String getSrcCidr() {
return this.srcCidr;
}
/**
* @return srcPortRange
*/
public java.util.List < Integer > getSrcPortRange() {
return this.srcPortRange;
}
/**
* @return trafficMatchRuleDescription
*/
public String getTrafficMatchRuleDescription() {
return this.trafficMatchRuleDescription;
}
/**
* @return trafficMatchRuleName
*/
public String getTrafficMatchRuleName() {
return this.trafficMatchRuleName;
}
public static final class Builder {
private String dstCidr;
private java.util.List < Integer > dstPortRange;
private Integer matchDscp;
private String protocol;
private String srcCidr;
private java.util.List < Integer > srcPortRange;
private String trafficMatchRuleDescription;
private String trafficMatchRuleName;
/**
* DstCidr.
*/
public Builder dstCidr(String dstCidr) {
this.dstCidr = dstCidr;
return this;
}
/**
* DstPortRange.
*/
public Builder dstPortRange(java.util.List < Integer > dstPortRange) {
this.dstPortRange = dstPortRange;
return this;
}
/**
* MatchDscp.
*/
public Builder matchDscp(Integer matchDscp) {
this.matchDscp = matchDscp;
return this;
}
/**
* Protocol.
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* SrcCidr.
*/
public Builder srcCidr(String srcCidr) {
this.srcCidr = srcCidr;
return this;
}
/**
* SrcPortRange.
*/
public Builder srcPortRange(java.util.List < Integer > srcPortRange) {
this.srcPortRange = srcPortRange;
return this;
}
/**
* TrafficMatchRuleDescription.
*/
public Builder trafficMatchRuleDescription(String trafficMatchRuleDescription) {
this.trafficMatchRuleDescription = trafficMatchRuleDescription;
return this;
}
/**
* TrafficMatchRuleName.
*/
public Builder trafficMatchRuleName(String trafficMatchRuleName) {
this.trafficMatchRuleName = trafficMatchRuleName;
return this;
}
public TrafficMatchRules build() {
return new TrafficMatchRules(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy