
com.huaweicloud.sdk.bcs.v2.model.ShowBlockchainDetailResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.bcs.v2.model;
import com.huaweicloud.sdk.core.SdkResponse;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.bcs.v2.model.BasicInfo;
import com.huaweicloud.sdk.bcs.v2.model.ChannelInfo;
import com.huaweicloud.sdk.bcs.v2.model.CouchDBInfo;
import com.huaweicloud.sdk.bcs.v2.model.DmsKafkaInfo;
import com.huaweicloud.sdk.bcs.v2.model.IefInfo;
import com.huaweicloud.sdk.bcs.v2.model.OBSInfo;
import com.huaweicloud.sdk.bcs.v2.model.PeerInfo;
import com.huaweicloud.sdk.bcs.v2.model.SfsInfo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.Objects;
/**
* Response Object
*/
public class ShowBlockchainDetailResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="basic_info")
private BasicInfo basicInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="channels")
private List channels = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="peer_info")
private List peerInfo = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="light_peer_info")
private List lightPeerInfo = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="orderer_info")
private PeerInfo ordererInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="couch_db_info")
private CouchDBInfo couchDbInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="dms_kafka_info")
private DmsKafkaInfo dmsKafkaInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="ief_info")
private IefInfo iefInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="sfs_info")
private SfsInfo sfsInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="agent_info")
private PeerInfo agentInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="restapi_info")
private PeerInfo restapiInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="evs_pvc_info")
private Map> evsPvcInfo = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="tc3_taskserver_info")
private PeerInfo tc3TaskserverInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="obs_bucket_info")
private OBSInfo obsBucketInfo;
public ShowBlockchainDetailResponse withBasicInfo(BasicInfo basicInfo) {
this.basicInfo = basicInfo;
return this;
}
public ShowBlockchainDetailResponse withBasicInfo(Consumer basicInfoSetter) {
if(this.basicInfo == null ){
this.basicInfo = new BasicInfo();
basicInfoSetter.accept(this.basicInfo);
}
return this;
}
/**
* Get basicInfo
* @return basicInfo
*/
public BasicInfo getBasicInfo() {
return basicInfo;
}
public void setBasicInfo(BasicInfo basicInfo) {
this.basicInfo = basicInfo;
}
public ShowBlockchainDetailResponse withChannels(List channels) {
this.channels = channels;
return this;
}
public ShowBlockchainDetailResponse addChannelsItem(ChannelInfo channelsItem) {
if(this.channels == null) {
this.channels = new ArrayList<>();
}
this.channels.add(channelsItem);
return this;
}
public ShowBlockchainDetailResponse withChannels(Consumer> channelsSetter) {
if(this.channels == null) {
this.channels = new ArrayList<>();
}
channelsSetter.accept(this.channels);
return this;
}
/**
* 通道信息
* @return channels
*/
public List getChannels() {
return channels;
}
public void setChannels(List channels) {
this.channels = channels;
}
public ShowBlockchainDetailResponse withPeerInfo(List peerInfo) {
this.peerInfo = peerInfo;
return this;
}
public ShowBlockchainDetailResponse addPeerInfoItem(PeerInfo peerInfoItem) {
if(this.peerInfo == null) {
this.peerInfo = new ArrayList<>();
}
this.peerInfo.add(peerInfoItem);
return this;
}
public ShowBlockchainDetailResponse withPeerInfo(Consumer> peerInfoSetter) {
if(this.peerInfo == null) {
this.peerInfo = new ArrayList<>();
}
peerInfoSetter.accept(this.peerInfo);
return this;
}
/**
* peer组织信息
* @return peerInfo
*/
public List getPeerInfo() {
return peerInfo;
}
public void setPeerInfo(List peerInfo) {
this.peerInfo = peerInfo;
}
public ShowBlockchainDetailResponse withLightPeerInfo(List lightPeerInfo) {
this.lightPeerInfo = lightPeerInfo;
return this;
}
public ShowBlockchainDetailResponse addLightPeerInfoItem(PeerInfo lightPeerInfoItem) {
if(this.lightPeerInfo == null) {
this.lightPeerInfo = new ArrayList<>();
}
this.lightPeerInfo.add(lightPeerInfoItem);
return this;
}
public ShowBlockchainDetailResponse withLightPeerInfo(Consumer> lightPeerInfoSetter) {
if(this.lightPeerInfo == null) {
this.lightPeerInfo = new ArrayList<>();
}
lightPeerInfoSetter.accept(this.lightPeerInfo);
return this;
}
/**
* light_peer组织信息
* @return lightPeerInfo
*/
public List getLightPeerInfo() {
return lightPeerInfo;
}
public void setLightPeerInfo(List lightPeerInfo) {
this.lightPeerInfo = lightPeerInfo;
}
public ShowBlockchainDetailResponse withOrdererInfo(PeerInfo ordererInfo) {
this.ordererInfo = ordererInfo;
return this;
}
public ShowBlockchainDetailResponse withOrdererInfo(Consumer ordererInfoSetter) {
if(this.ordererInfo == null ){
this.ordererInfo = new PeerInfo();
ordererInfoSetter.accept(this.ordererInfo);
}
return this;
}
/**
* Get ordererInfo
* @return ordererInfo
*/
public PeerInfo getOrdererInfo() {
return ordererInfo;
}
public void setOrdererInfo(PeerInfo ordererInfo) {
this.ordererInfo = ordererInfo;
}
public ShowBlockchainDetailResponse withCouchDbInfo(CouchDBInfo couchDbInfo) {
this.couchDbInfo = couchDbInfo;
return this;
}
public ShowBlockchainDetailResponse withCouchDbInfo(Consumer couchDbInfoSetter) {
if(this.couchDbInfo == null ){
this.couchDbInfo = new CouchDBInfo();
couchDbInfoSetter.accept(this.couchDbInfo);
}
return this;
}
/**
* Get couchDbInfo
* @return couchDbInfo
*/
public CouchDBInfo getCouchDbInfo() {
return couchDbInfo;
}
public void setCouchDbInfo(CouchDBInfo couchDbInfo) {
this.couchDbInfo = couchDbInfo;
}
public ShowBlockchainDetailResponse withDmsKafkaInfo(DmsKafkaInfo dmsKafkaInfo) {
this.dmsKafkaInfo = dmsKafkaInfo;
return this;
}
public ShowBlockchainDetailResponse withDmsKafkaInfo(Consumer dmsKafkaInfoSetter) {
if(this.dmsKafkaInfo == null ){
this.dmsKafkaInfo = new DmsKafkaInfo();
dmsKafkaInfoSetter.accept(this.dmsKafkaInfo);
}
return this;
}
/**
* Get dmsKafkaInfo
* @return dmsKafkaInfo
*/
public DmsKafkaInfo getDmsKafkaInfo() {
return dmsKafkaInfo;
}
public void setDmsKafkaInfo(DmsKafkaInfo dmsKafkaInfo) {
this.dmsKafkaInfo = dmsKafkaInfo;
}
public ShowBlockchainDetailResponse withIefInfo(IefInfo iefInfo) {
this.iefInfo = iefInfo;
return this;
}
public ShowBlockchainDetailResponse withIefInfo(Consumer iefInfoSetter) {
if(this.iefInfo == null ){
this.iefInfo = new IefInfo();
iefInfoSetter.accept(this.iefInfo);
}
return this;
}
/**
* Get iefInfo
* @return iefInfo
*/
public IefInfo getIefInfo() {
return iefInfo;
}
public void setIefInfo(IefInfo iefInfo) {
this.iefInfo = iefInfo;
}
public ShowBlockchainDetailResponse withSfsInfo(SfsInfo sfsInfo) {
this.sfsInfo = sfsInfo;
return this;
}
public ShowBlockchainDetailResponse withSfsInfo(Consumer sfsInfoSetter) {
if(this.sfsInfo == null ){
this.sfsInfo = new SfsInfo();
sfsInfoSetter.accept(this.sfsInfo);
}
return this;
}
/**
* Get sfsInfo
* @return sfsInfo
*/
public SfsInfo getSfsInfo() {
return sfsInfo;
}
public void setSfsInfo(SfsInfo sfsInfo) {
this.sfsInfo = sfsInfo;
}
public ShowBlockchainDetailResponse withAgentInfo(PeerInfo agentInfo) {
this.agentInfo = agentInfo;
return this;
}
public ShowBlockchainDetailResponse withAgentInfo(Consumer agentInfoSetter) {
if(this.agentInfo == null ){
this.agentInfo = new PeerInfo();
agentInfoSetter.accept(this.agentInfo);
}
return this;
}
/**
* Get agentInfo
* @return agentInfo
*/
public PeerInfo getAgentInfo() {
return agentInfo;
}
public void setAgentInfo(PeerInfo agentInfo) {
this.agentInfo = agentInfo;
}
public ShowBlockchainDetailResponse withRestapiInfo(PeerInfo restapiInfo) {
this.restapiInfo = restapiInfo;
return this;
}
public ShowBlockchainDetailResponse withRestapiInfo(Consumer restapiInfoSetter) {
if(this.restapiInfo == null ){
this.restapiInfo = new PeerInfo();
restapiInfoSetter.accept(this.restapiInfo);
}
return this;
}
/**
* Get restapiInfo
* @return restapiInfo
*/
public PeerInfo getRestapiInfo() {
return restapiInfo;
}
public void setRestapiInfo(PeerInfo restapiInfo) {
this.restapiInfo = restapiInfo;
}
public ShowBlockchainDetailResponse withEvsPvcInfo(Map> evsPvcInfo) {
this.evsPvcInfo = evsPvcInfo;
return this;
}
public ShowBlockchainDetailResponse putEvsPvcInfoItem(String key, Map evsPvcInfoItem) {
if(this.evsPvcInfo == null) {
this.evsPvcInfo = new HashMap<>();
}
this.evsPvcInfo.put(key, evsPvcInfoItem);
return this;
}
public ShowBlockchainDetailResponse withEvsPvcInfo(Consumer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy