com.aliyun.sdk.service.cloudapi20160714.models.DescribeSignaturesByApiRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cloudapi20160714 Show documentation
// 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 DescribeSignaturesByApiRequest} extends {@link RequestModel}
*
* DescribeSignaturesByApiRequest
*/
public class DescribeSignaturesByApiRequest extends Request {
@Query
@NameInMap("ApiId")
@Validation(required = true)
private String apiId;
@Query
@NameInMap("GroupId")
@Validation(required = true)
private String groupId;
@Query
@NameInMap("SecurityToken")
private String securityToken;
@Query
@NameInMap("StageName")
@Validation(required = true)
private String stageName;
private DescribeSignaturesByApiRequest(Builder builder) {
super(builder);
this.apiId = builder.apiId;
this.groupId = builder.groupId;
this.securityToken = builder.securityToken;
this.stageName = builder.stageName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSignaturesByApiRequest 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 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 securityToken;
private String stageName;
private Builder() {
super();
}
private Builder(DescribeSignaturesByApiRequest request) {
super(request);
this.apiId = request.apiId;
this.groupId = request.groupId;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
}
/**
* The ID of the request.
*/
public Builder apiId(String apiId) {
this.putQueryParameter("ApiId", apiId);
this.apiId = apiId;
return this;
}
/**
* The runtime environment. Valid values:
*
*
* * **RELEASE**
* * **TEST**
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The returned signature key information. It is an array consisting of SignatureItem data.
*/
public Builder stageName(String stageName) {
this.putQueryParameter("StageName", stageName);
this.stageName = stageName;
return this;
}
@Override
public DescribeSignaturesByApiRequest build() {
return new DescribeSignaturesByApiRequest(this);
}
}
}