com.aliyun.sdk.service.agency20221216.models.CancelSubscriptionBillRequest 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 CancelSubscriptionBillRequest} extends {@link RequestModel}
*
* CancelSubscriptionBillRequest
*/
public class CancelSubscriptionBillRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SubscribeType")
@com.aliyun.core.annotation.Validation(required = true)
private String subscribeType;
private CancelSubscriptionBillRequest(Builder builder) {
super(builder);
this.subscribeType = builder.subscribeType;
}
public static Builder builder() {
return new Builder();
}
public static CancelSubscriptionBillRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return subscribeType
*/
public String getSubscribeType() {
return this.subscribeType;
}
public static final class Builder extends Request.Builder {
private String subscribeType;
private Builder() {
super();
}
private Builder(CancelSubscriptionBillRequest request) {
super(request);
this.subscribeType = request.subscribeType;
}
/**
* The type of the bill to which you want to cancel the subscription. Valid values: PartnerBillingItemDetailForBillingPeriod, PartnerBillingItemDetailMonthly, PartnerInstanceDetailForBillingPeriod, and PartnerInstanceDetailMonthly.
* This parameter is required.
*
* example:
* PartnerBillingItemDetailForBillingPeriod
*/
public Builder subscribeType(String subscribeType) {
this.putQueryParameter("SubscribeType", subscribeType);
this.subscribeType = subscribeType;
return this;
}
@Override
public CancelSubscriptionBillRequest build() {
return new CancelSubscriptionBillRequest(this);
}
}
}