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

com.tencentcloudapi.tbaas.v20180416.models.GetBcosBlockListRequest Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tbaas.v20180416.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class GetBcosBlockListRequest extends AbstractModel{

    /**
    * 网络ID,可在区块链网络详情或列表中获取
    */
    @SerializedName("ClusterId")
    @Expose
    private String ClusterId;

    /**
    * 群组编号,可在群组列表中获取
    */
    @SerializedName("GroupId")
    @Expose
    private Long GroupId;

    /**
    * 当前页数,默认为1
    */
    @SerializedName("PageNumber")
    @Expose
    private Long PageNumber;

    /**
    * 每页记录数,默认为10
    */
    @SerializedName("PageSize")
    @Expose
    private Long PageSize;

    /**
    * 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
    */
    @SerializedName("BlockNumber")
    @Expose
    private Long BlockNumber;

    /**
    * 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取
    */
    @SerializedName("BlockHash")
    @Expose
    private String BlockHash;

    /**
     * Get 网络ID,可在区块链网络详情或列表中获取 
     * @return ClusterId 网络ID,可在区块链网络详情或列表中获取
     */
    public String getClusterId() {
        return this.ClusterId;
    }

    /**
     * Set 网络ID,可在区块链网络详情或列表中获取
     * @param ClusterId 网络ID,可在区块链网络详情或列表中获取
     */
    public void setClusterId(String ClusterId) {
        this.ClusterId = ClusterId;
    }

    /**
     * Get 群组编号,可在群组列表中获取 
     * @return GroupId 群组编号,可在群组列表中获取
     */
    public Long getGroupId() {
        return this.GroupId;
    }

    /**
     * Set 群组编号,可在群组列表中获取
     * @param GroupId 群组编号,可在群组列表中获取
     */
    public void setGroupId(Long GroupId) {
        this.GroupId = GroupId;
    }

    /**
     * Get 当前页数,默认为1 
     * @return PageNumber 当前页数,默认为1
     */
    public Long getPageNumber() {
        return this.PageNumber;
    }

    /**
     * Set 当前页数,默认为1
     * @param PageNumber 当前页数,默认为1
     */
    public void setPageNumber(Long PageNumber) {
        this.PageNumber = PageNumber;
    }

    /**
     * Get 每页记录数,默认为10 
     * @return PageSize 每页记录数,默认为10
     */
    public Long getPageSize() {
        return this.PageSize;
    }

    /**
     * Set 每页记录数,默认为10
     * @param PageSize 每页记录数,默认为10
     */
    public void setPageSize(Long PageSize) {
        this.PageSize = PageSize;
    }

    /**
     * Get 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 
     * @return BlockNumber 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
     */
    public Long getBlockNumber() {
        return this.BlockNumber;
    }

    /**
     * Set 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
     * @param BlockNumber 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
     */
    public void setBlockNumber(Long BlockNumber) {
        this.BlockNumber = BlockNumber;
    }

    /**
     * Get 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取 
     * @return BlockHash 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取
     */
    public String getBlockHash() {
        return this.BlockHash;
    }

    /**
     * Set 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取
     * @param BlockHash 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取
     */
    public void setBlockHash(String BlockHash) {
        this.BlockHash = BlockHash;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
        this.setParamSimple(map, prefix + "GroupId", this.GroupId);
        this.setParamSimple(map, prefix + "PageNumber", this.PageNumber);
        this.setParamSimple(map, prefix + "PageSize", this.PageSize);
        this.setParamSimple(map, prefix + "BlockNumber", this.BlockNumber);
        this.setParamSimple(map, prefix + "BlockHash", this.BlockHash);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy