com.aliyun.sdk.service.agency20221216.models.SetWarningThresholdRequest 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 SetWarningThresholdRequest} extends {@link RequestModel}
*
* SetWarningThresholdRequest
*/
public class SetWarningThresholdRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uid")
@com.aliyun.core.annotation.Validation(required = true)
private Long uid;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarningValue")
@com.aliyun.core.annotation.Validation(required = true)
private String warningValue;
private SetWarningThresholdRequest(Builder builder) {
super(builder);
this.uid = builder.uid;
this.warningValue = builder.warningValue;
}
public static Builder builder() {
return new Builder();
}
public static SetWarningThresholdRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return uid
*/
public Long getUid() {
return this.uid;
}
/**
* @return warningValue
*/
public String getWarningValue() {
return this.warningValue;
}
public static final class Builder extends Request.Builder {
private Long uid;
private String warningValue;
private Builder() {
super();
}
private Builder(SetWarningThresholdRequest request) {
super(request);
this.uid = request.uid;
this.warningValue = request.warningValue;
}
/**
* The UID of the partner‘s customer.
* This parameter is required.
*
* example:
* 1792155717328010
*/
public Builder uid(Long uid) {
this.putQueryParameter("Uid", uid);
this.uid = uid;
return this;
}
/**
* Percentage, 1 to 100. When the available credit limit is lower than the credit limit percentage, an email is sent to the main account.
* This parameter is required.
*
* example:
* 20
*/
public Builder warningValue(String warningValue) {
this.putQueryParameter("WarningValue", warningValue);
this.warningValue = warningValue;
return this;
}
@Override
public SetWarningThresholdRequest build() {
return new SetWarningThresholdRequest(this);
}
}
}