All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.antgroup.antchain.openapi.twc.models.CreateSourceRequest Maven / Gradle / Ivy

There is a newer version: 1.12.23
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.twc.models;

import com.aliyun.tea.*;

public class CreateSourceRequest extends TeaModel {
    // OAuth模式下的授权token
    @NameInMap("auth_token")
    public String authToken;

    @NameInMap("product_instance_id")
    public String productInstanceId;

    // 存证地点(如手机硬件ID,Wi-Fi地址,GPS位置,IP地址)
    @NameInMap("location")
    public Location location;

    // 描述本条存证在存证事务中的阶段,用户可自行维护
    @NameInMap("phase")
    @Validation(required = true)
    public String phase;

    // 扩展属性
    @NameInMap("properties")
    public String properties;

    // 原文文件描述
    @NameInMap("source_desc")
    @Validation(required = true)
    public String sourceDesc;

    // 存证文件内容,对文件内容做base64编码后得到。例如文件内容为“test”,那么base64编码后的结果则为“dGVzdA==”
    @NameInMap("source_file")
    @Validation(required = true)
    public String sourceFile;

    // 存证原文名称
    @NameInMap("source_name")
    @Validation(required = true)
    public String sourceName;

    // 存证事务ID
    @NameInMap("transaction_id")
    @Validation(required = true)
    public String transactionId;

    // 是否使用可信时间戳,默认为false
    @NameInMap("tsr")
    public Boolean tsr;

    public static CreateSourceRequest build(java.util.Map map) throws Exception {
        CreateSourceRequest self = new CreateSourceRequest();
        return TeaModel.build(map, self);
    }

    public CreateSourceRequest setAuthToken(String authToken) {
        this.authToken = authToken;
        return this;
    }
    public String getAuthToken() {
        return this.authToken;
    }

    public CreateSourceRequest setProductInstanceId(String productInstanceId) {
        this.productInstanceId = productInstanceId;
        return this;
    }
    public String getProductInstanceId() {
        return this.productInstanceId;
    }

    public CreateSourceRequest setLocation(Location location) {
        this.location = location;
        return this;
    }
    public Location getLocation() {
        return this.location;
    }

    public CreateSourceRequest setPhase(String phase) {
        this.phase = phase;
        return this;
    }
    public String getPhase() {
        return this.phase;
    }

    public CreateSourceRequest setProperties(String properties) {
        this.properties = properties;
        return this;
    }
    public String getProperties() {
        return this.properties;
    }

    public CreateSourceRequest setSourceDesc(String sourceDesc) {
        this.sourceDesc = sourceDesc;
        return this;
    }
    public String getSourceDesc() {
        return this.sourceDesc;
    }

    public CreateSourceRequest setSourceFile(String sourceFile) {
        this.sourceFile = sourceFile;
        return this;
    }
    public String getSourceFile() {
        return this.sourceFile;
    }

    public CreateSourceRequest setSourceName(String sourceName) {
        this.sourceName = sourceName;
        return this;
    }
    public String getSourceName() {
        return this.sourceName;
    }

    public CreateSourceRequest setTransactionId(String transactionId) {
        this.transactionId = transactionId;
        return this;
    }
    public String getTransactionId() {
        return this.transactionId;
    }

    public CreateSourceRequest setTsr(Boolean tsr) {
        this.tsr = tsr;
        return this;
    }
    public Boolean getTsr() {
        return this.tsr;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy