com.aliyuncs.domain_intl.model.v20171218.SaveBatchTaskForCreatingOrderRedeemRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-domain-intl Show documentation
Show all versions of aliyun-java-sdk-domain-intl Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.domain_intl.model.v20171218;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class SaveBatchTaskForCreatingOrderRedeemRequest extends RpcAcsRequest {
private String couponNo;
private Boolean useCoupon;
private String promotionNo;
private List orderRedeemParams;
private String userClientIp;
private String lang;
private Boolean usePromotion;
public SaveBatchTaskForCreatingOrderRedeemRequest() {
super("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderRedeem");
setMethod(MethodType.POST);
}
public String getCouponNo() {
return this.couponNo;
}
public void setCouponNo(String couponNo) {
this.couponNo = couponNo;
if(couponNo != null){
putQueryParameter("CouponNo", couponNo);
}
}
public Boolean getUseCoupon() {
return this.useCoupon;
}
public void setUseCoupon(Boolean useCoupon) {
this.useCoupon = useCoupon;
if(useCoupon != null){
putQueryParameter("UseCoupon", useCoupon.toString());
}
}
public String getPromotionNo() {
return this.promotionNo;
}
public void setPromotionNo(String promotionNo) {
this.promotionNo = promotionNo;
if(promotionNo != null){
putQueryParameter("PromotionNo", promotionNo);
}
}
public List getOrderRedeemParams() {
return this.orderRedeemParams;
}
public void setOrderRedeemParams(List orderRedeemParams) {
this.orderRedeemParams = orderRedeemParams;
if (orderRedeemParams != null) {
for (int depth1 = 0; depth1 < orderRedeemParams.size(); depth1++) {
putQueryParameter("OrderRedeemParam." + (depth1 + 1) + ".CurrentExpirationDate" , orderRedeemParams.get(depth1).getCurrentExpirationDate());
putQueryParameter("OrderRedeemParam." + (depth1 + 1) + ".DomainName" , orderRedeemParams.get(depth1).getDomainName());
}
}
}
public String getUserClientIp() {
return this.userClientIp;
}
public void setUserClientIp(String userClientIp) {
this.userClientIp = userClientIp;
if(userClientIp != null){
putQueryParameter("UserClientIp", userClientIp);
}
}
public String getLang() {
return this.lang;
}
public void setLang(String lang) {
this.lang = lang;
if(lang != null){
putQueryParameter("Lang", lang);
}
}
public Boolean getUsePromotion() {
return this.usePromotion;
}
public void setUsePromotion(Boolean usePromotion) {
this.usePromotion = usePromotion;
if(usePromotion != null){
putQueryParameter("UsePromotion", usePromotion.toString());
}
}
public static class OrderRedeemParam {
private Long currentExpirationDate;
private String domainName;
public Long getCurrentExpirationDate() {
return this.currentExpirationDate;
}
public void setCurrentExpirationDate(Long currentExpirationDate) {
this.currentExpirationDate = currentExpirationDate;
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
}
}
@Override
public Class getResponseClass() {
return SaveBatchTaskForCreatingOrderRedeemResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy