com.aliyun.sdk.service.cloudapi20160714.models.DescribeApiHistoryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Alibaba Cloud CloudAPI (20160714) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeApiHistoryRequest} extends {@link RequestModel}
*
* DescribeApiHistoryRequest
*/
public class DescribeApiHistoryRequest extends Request {
@Query
@NameInMap("ApiId")
@Validation(required = true)
private String apiId;
@Query
@NameInMap("GroupId")
private String groupId;
@Query
@NameInMap("HistoryVersion")
@Validation(required = true)
private String historyVersion;
@Query
@NameInMap("SecurityToken")
private String securityToken;
@Query
@NameInMap("StageName")
@Validation(required = true)
private String stageName;
private DescribeApiHistoryRequest(Builder builder) {
super(builder);
this.apiId = builder.apiId;
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 DescribeApiHistoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiId
*/
public String getApiId() {
return this.apiId;
}
/**
* @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 groupId;
private String historyVersion;
private String securityToken;
private String stageName;
private Builder() {
super();
}
private Builder(DescribeApiHistoryRequest request) {
super(request);
this.apiId = request.apiId;
this.groupId = request.groupId;
this.historyVersion = request.historyVersion;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
}
/**
* The ID of the API.
*/
public Builder apiId(String apiId) {
this.putQueryParameter("ApiId", apiId);
this.apiId = apiId;
return this;
}
/**
* The ID of the API group to which the API belongs. This ID is generated by the system and globally unique.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The historical version number of the API.
*/
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 to which the API is published. Valid values:
*
*
* * **RELEASE**: production environment
* * **TEST**: test environment
* * **PRE**: staging environment
*/
public Builder stageName(String stageName) {
this.putQueryParameter("StageName", stageName);
this.stageName = stageName;
return this;
}
@Override
public DescribeApiHistoryRequest build() {
return new DescribeApiHistoryRequest(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy