com.aliyun.sdk.service.cloudapi20160714.models.SwitchApiRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.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 SwitchApiRequest} extends {@link RequestModel}
*
* SwitchApiRequest
*/
public class SwitchApiRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ApiId")
@com.aliyun.core.annotation.Validation(required = true)
private String apiId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
@com.aliyun.core.annotation.Validation(required = true)
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private String groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HistoryVersion")
@com.aliyun.core.annotation.Validation(required = true)
private String historyVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StageName")
@com.aliyun.core.annotation.Validation(required = true)
private String stageName;
private SwitchApiRequest(Builder builder) {
super(builder);
this.apiId = builder.apiId;
this.description = builder.description;
this.groupId = builder.groupId;
this.historyVersion = builder.historyVersion;
this.securityToken = builder.securityToken;
this.stageName = builder.stageName;
}
public static Builder builder() {
return new Builder();
}
public static SwitchApiRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiId
*/
public String getApiId() {
return this.apiId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return historyVersion
*/
public String getHistoryVersion() {
return this.historyVersion;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return stageName
*/
public String getStageName() {
return this.stageName;
}
public static final class Builder extends Request.Builder {
private String apiId;
private String description;
private String groupId;
private String historyVersion;
private String securityToken;
private String stageName;
private Builder() {
super();
}
private Builder(SwitchApiRequest request) {
super(request);
this.apiId = request.apiId;
this.description = request.description;
this.groupId = request.groupId;
this.historyVersion = request.historyVersion;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
}
/**
* The API ID.
* This parameter is required.
*
* example:
* d6f679aeb3be4b91b3688e887ca1fe16
*/
public Builder apiId(String apiId) {
this.putQueryParameter("ApiId", apiId);
this.apiId = apiId;
return this;
}
/**
* The description. The description can be up to 200 characters in length.
* This parameter is required.
*
* example:
* for_demo
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The API group ID.
*
* example:
* 123
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The historical version number of the API.
* This parameter is required.
*
* example:
* 20160705104552292
*/
public Builder historyVersion(String historyVersion) {
this.putQueryParameter("HistoryVersion", historyVersion);
this.historyVersion = historyVersion;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The environment. Valid values:
*
* - RELEASE: the production environment
* - PRE: the staging environment
* - TEST: the test environment
*
* This parameter is required.
*
* example:
* RELEASE
*/
public Builder stageName(String stageName) {
this.putQueryParameter("StageName", stageName);
this.stageName = stageName;
return this;
}
@Override
public SwitchApiRequest build() {
return new SwitchApiRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy