com.aliyun.sdk.service.agency20221216.models.EditNewBuyStatusRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-agency20221216 Show documentation
Show all versions of alibabacloud-agency20221216 Show documentation
Alibaba Cloud Agency (20221216) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.agency20221216.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EditNewBuyStatusRequest} extends {@link RequestModel}
*
* EditNewBuyStatusRequest
*/
public class EditNewBuyStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewBuyStatus")
private String newBuyStatus;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uid")
private Long uid;
private EditNewBuyStatusRequest(Builder builder) {
super(builder);
this.newBuyStatus = builder.newBuyStatus;
this.uid = builder.uid;
}
public static Builder builder() {
return new Builder();
}
public static EditNewBuyStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return newBuyStatus
*/
public String getNewBuyStatus() {
return this.newBuyStatus;
}
/**
* @return uid
*/
public Long getUid() {
return this.uid;
}
public static final class Builder extends Request.Builder {
private String newBuyStatus;
private Long uid;
private Builder() {
super();
}
private Builder(EditNewBuyStatusRequest request) {
super(request);
this.newBuyStatus = request.newBuyStatus;
this.uid = request.uid;
}
/**
* New Purchase Status
*
* cancelBan: Cancel the restriction for New Purchase request
*
* ban: ban the New Purchase request
*
*
*
* example:
* cancelBan
*/
public Builder newBuyStatus(String newBuyStatus) {
this.putQueryParameter("NewBuyStatus", newBuyStatus);
this.newBuyStatus = newBuyStatus;
return this;
}
/**
* Customer UID
*
* example:
* 1133166938931507
*/
public Builder uid(Long uid) {
this.putQueryParameter("Uid", uid);
this.uid = uid;
return this;
}
@Override
public EditNewBuyStatusRequest build() {
return new EditNewBuyStatusRequest(this);
}
}
}