All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ens20171110.models.UpdateEnsSaleControlRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link UpdateEnsSaleControlRequest} extends {@link RequestModel}
 *
 * 

UpdateEnsSaleControlRequest

*/ public class UpdateEnsSaleControlRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AliUidAccount") private String aliUidAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CommodityCode") @com.aliyun.core.annotation.Validation(required = true) private String commodityCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CustomAccount") private String customAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SaleControls") @com.aliyun.core.annotation.Validation(required = true) private java.util.List saleControls; private UpdateEnsSaleControlRequest(Builder builder) { super(builder); this.aliUidAccount = builder.aliUidAccount; this.commodityCode = builder.commodityCode; this.customAccount = builder.customAccount; this.saleControls = builder.saleControls; } public static Builder builder() { return new Builder(); } public static UpdateEnsSaleControlRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aliUidAccount */ public String getAliUidAccount() { return this.aliUidAccount; } /** * @return commodityCode */ public String getCommodityCode() { return this.commodityCode; } /** * @return customAccount */ public String getCustomAccount() { return this.customAccount; } /** * @return saleControls */ public java.util.List getSaleControls() { return this.saleControls; } public static final class Builder extends Request.Builder { private String aliUidAccount; private String commodityCode; private String customAccount; private java.util.List saleControls; private Builder() { super(); } private Builder(UpdateEnsSaleControlRequest request) { super(request); this.aliUidAccount = request.aliUidAccount; this.commodityCode = request.commodityCode; this.customAccount = request.customAccount; this.saleControls = request.saleControls; } /** * AliUidAccount. */ public Builder aliUidAccount(String aliUidAccount) { this.putQueryParameter("AliUidAccount", aliUidAccount); this.aliUidAccount = aliUidAccount; return this; } /** *

This parameter is required.

*/ public Builder commodityCode(String commodityCode) { this.putQueryParameter("CommodityCode", commodityCode); this.commodityCode = commodityCode; return this; } /** * CustomAccount. */ public Builder customAccount(String customAccount) { this.putQueryParameter("CustomAccount", customAccount); this.customAccount = customAccount; return this; } /** *

This parameter is required.

*/ public Builder saleControls(java.util.List saleControls) { String saleControlsShrink = shrink(saleControls, "SaleControls", "json"); this.putQueryParameter("SaleControls", saleControlsShrink); this.saleControls = saleControls; return this; } @Override public UpdateEnsSaleControlRequest build() { return new UpdateEnsSaleControlRequest(this); } } /** * * {@link UpdateEnsSaleControlRequest} extends {@link TeaModel} * *

UpdateEnsSaleControlRequest

*/ public static class ConditionControls extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConditionControlModuleCode") private String conditionControlModuleCode; @com.aliyun.core.annotation.NameInMap("ConditionControlModuleValue") private String conditionControlModuleValue; private ConditionControls(Builder builder) { this.conditionControlModuleCode = builder.conditionControlModuleCode; this.conditionControlModuleValue = builder.conditionControlModuleValue; } public static Builder builder() { return new Builder(); } public static ConditionControls create() { return builder().build(); } /** * @return conditionControlModuleCode */ public String getConditionControlModuleCode() { return this.conditionControlModuleCode; } /** * @return conditionControlModuleValue */ public String getConditionControlModuleValue() { return this.conditionControlModuleValue; } public static final class Builder { private String conditionControlModuleCode; private String conditionControlModuleValue; /** * ConditionControlModuleCode. */ public Builder conditionControlModuleCode(String conditionControlModuleCode) { this.conditionControlModuleCode = conditionControlModuleCode; return this; } /** * ConditionControlModuleValue. */ public Builder conditionControlModuleValue(String conditionControlModuleValue) { this.conditionControlModuleValue = conditionControlModuleValue; return this; } public ConditionControls build() { return new ConditionControls(this); } } } /** * * {@link UpdateEnsSaleControlRequest} extends {@link TeaModel} * *

UpdateEnsSaleControlRequest

*/ public static class ModuleValue extends TeaModel { @com.aliyun.core.annotation.NameInMap("ModuleMaxValue") private String moduleMaxValue; @com.aliyun.core.annotation.NameInMap("ModuleMinValue") private String moduleMinValue; @com.aliyun.core.annotation.NameInMap("ModuleValue") private java.util.List moduleValue; private ModuleValue(Builder builder) { this.moduleMaxValue = builder.moduleMaxValue; this.moduleMinValue = builder.moduleMinValue; this.moduleValue = builder.moduleValue; } public static Builder builder() { return new Builder(); } public static ModuleValue create() { return builder().build(); } /** * @return moduleMaxValue */ public String getModuleMaxValue() { return this.moduleMaxValue; } /** * @return moduleMinValue */ public String getModuleMinValue() { return this.moduleMinValue; } /** * @return moduleValue */ public java.util.List getModuleValue() { return this.moduleValue; } public static final class Builder { private String moduleMaxValue; private String moduleMinValue; private java.util.List moduleValue; /** * ModuleMaxValue. */ public Builder moduleMaxValue(String moduleMaxValue) { this.moduleMaxValue = moduleMaxValue; return this; } /** * ModuleMinValue. */ public Builder moduleMinValue(String moduleMinValue) { this.moduleMinValue = moduleMinValue; return this; } /** * ModuleValue. */ public Builder moduleValue(java.util.List moduleValue) { this.moduleValue = moduleValue; return this; } public ModuleValue build() { return new ModuleValue(this); } } } /** * * {@link UpdateEnsSaleControlRequest} extends {@link TeaModel} * *

UpdateEnsSaleControlRequest

*/ public static class SaleControls extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConditionControls") private java.util.List conditionControls; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("ModuleCode") @com.aliyun.core.annotation.Validation(required = true) private String moduleCode; @com.aliyun.core.annotation.NameInMap("ModuleValue") @com.aliyun.core.annotation.Validation(required = true) private ModuleValue moduleValue; @com.aliyun.core.annotation.NameInMap("Operator") @com.aliyun.core.annotation.Validation(required = true) private String operator; @com.aliyun.core.annotation.NameInMap("OrderType") @com.aliyun.core.annotation.Validation(required = true) private String orderType; private SaleControls(Builder builder) { this.conditionControls = builder.conditionControls; this.description = builder.description; this.moduleCode = builder.moduleCode; this.moduleValue = builder.moduleValue; this.operator = builder.operator; this.orderType = builder.orderType; } public static Builder builder() { return new Builder(); } public static SaleControls create() { return builder().build(); } /** * @return conditionControls */ public java.util.List getConditionControls() { return this.conditionControls; } /** * @return description */ public String getDescription() { return this.description; } /** * @return moduleCode */ public String getModuleCode() { return this.moduleCode; } /** * @return moduleValue */ public ModuleValue getModuleValue() { return this.moduleValue; } /** * @return operator */ public String getOperator() { return this.operator; } /** * @return orderType */ public String getOrderType() { return this.orderType; } public static final class Builder { private java.util.List conditionControls; private String description; private String moduleCode; private ModuleValue moduleValue; private String operator; private String orderType; /** * ConditionControls. */ public Builder conditionControls(java.util.List conditionControls) { this.conditionControls = conditionControls; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** *

This parameter is required.

*/ public Builder moduleCode(String moduleCode) { this.moduleCode = moduleCode; return this; } /** *

This parameter is required.

*/ public Builder moduleValue(ModuleValue moduleValue) { this.moduleValue = moduleValue; return this; } /** *

This parameter is required.

*/ public Builder operator(String operator) { this.operator = operator; return this; } /** *

This parameter is required.

*/ public Builder orderType(String orderType) { this.orderType = orderType; return this; } public SaleControls build() { return new SaleControls(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy