com.antgroup.antchain.openapi.twc.models.NotaryCheckResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-twc Show documentation
Show all versions of openapi-twc Show documentation
Ant Chain TWC SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.twc.models;
import com.aliyun.tea.*;
public class NotaryCheckResult extends TeaModel {
// 存证所在区块高度
@NameInMap("block_height")
@Validation(required = true)
public Long blockHeight;
// 核验结果错误码
@NameInMap("error_code")
@Validation(required = true)
public Long errorCode;
// 错误信息
@NameInMap("error_message")
@Validation(required = true)
public String errorMessage;
// 存证时间
@NameInMap("notary_time")
@Validation(required = true, pattern = "\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})")
public String notaryTime;
// 存证类型
@NameInMap("notary_type")
@Validation(required = true)
public String notaryType;
// 核验是否成功
@NameInMap("result")
@Validation(required = true)
public Boolean result;
// 存证事务ID
@NameInMap("transaction_id")
@Validation(required = true)
public String transactionId;
// 交易哈希
@NameInMap("tx_hash")
@Validation(required = true)
public String txHash;
// 区块哈希
@NameInMap("block_hash")
@Validation(required = true)
public String blockHash;
// 存证阶段
@NameInMap("phase")
@Validation(required = true)
public String phase;
public static NotaryCheckResult build(java.util.Map map) throws Exception {
NotaryCheckResult self = new NotaryCheckResult();
return TeaModel.build(map, self);
}
public NotaryCheckResult setBlockHeight(Long blockHeight) {
this.blockHeight = blockHeight;
return this;
}
public Long getBlockHeight() {
return this.blockHeight;
}
public NotaryCheckResult setErrorCode(Long errorCode) {
this.errorCode = errorCode;
return this;
}
public Long getErrorCode() {
return this.errorCode;
}
public NotaryCheckResult setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
public String getErrorMessage() {
return this.errorMessage;
}
public NotaryCheckResult setNotaryTime(String notaryTime) {
this.notaryTime = notaryTime;
return this;
}
public String getNotaryTime() {
return this.notaryTime;
}
public NotaryCheckResult setNotaryType(String notaryType) {
this.notaryType = notaryType;
return this;
}
public String getNotaryType() {
return this.notaryType;
}
public NotaryCheckResult setResult(Boolean result) {
this.result = result;
return this;
}
public Boolean getResult() {
return this.result;
}
public NotaryCheckResult setTransactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}
public String getTransactionId() {
return this.transactionId;
}
public NotaryCheckResult setTxHash(String txHash) {
this.txHash = txHash;
return this;
}
public String getTxHash() {
return this.txHash;
}
public NotaryCheckResult setBlockHash(String blockHash) {
this.blockHash = blockHash;
return this;
}
public String getBlockHash() {
return this.blockHash;
}
public NotaryCheckResult setPhase(String phase) {
this.phase = phase;
return this;
}
public String getPhase() {
return this.phase;
}
}