com.antgroup.antchain.openapi.baasdt.models.QueryBlockRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-baasdt Show documentation
Show all versions of openapi-baasdt Show documentation
Ant Chain BAASDT SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.baasdt.models;
import com.aliyun.tea.*;
public class QueryBlockRequest extends TeaModel {
// OAuth模式下的授权token
@NameInMap("auth_token")
public String authToken;
@NameInMap("product_instance_id")
public String productInstanceId;
// 区块链高度
@NameInMap("block_number")
@Validation(required = true)
public Long blockNumber;
// 链ID
@NameInMap("chain_id")
@Validation(required = true)
public String chainId;
public static QueryBlockRequest build(java.util.Map map) throws Exception {
QueryBlockRequest self = new QueryBlockRequest();
return TeaModel.build(map, self);
}
public QueryBlockRequest setAuthToken(String authToken) {
this.authToken = authToken;
return this;
}
public String getAuthToken() {
return this.authToken;
}
public QueryBlockRequest setProductInstanceId(String productInstanceId) {
this.productInstanceId = productInstanceId;
return this;
}
public String getProductInstanceId() {
return this.productInstanceId;
}
public QueryBlockRequest setBlockNumber(Long blockNumber) {
this.blockNumber = blockNumber;
return this;
}
public Long getBlockNumber() {
return this.blockNumber;
}
public QueryBlockRequest setChainId(String chainId) {
this.chainId = chainId;
return this;
}
public String getChainId() {
return this.chainId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy