
com.huaweicloud.sdk.bcs.v2.model.CfgRequestBody Maven / Gradle / Ivy
package com.huaweicloud.sdk.bcs.v2.model;
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 java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.Objects;
/**
* CfgRequestBody
*/
public class CfgRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="chaincode_name")
private String chaincodeName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="cert_path")
private String certPath;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="channel_name")
private String channelName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="peer_orgs")
private Map> peerOrgs = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="union_info")
private Map> unionInfo = null;
public CfgRequestBody withChaincodeName(String chaincodeName) {
this.chaincodeName = chaincodeName;
return this;
}
/**
* 链代码名称
* @return chaincodeName
*/
public String getChaincodeName() {
return chaincodeName;
}
public void setChaincodeName(String chaincodeName) {
this.chaincodeName = chaincodeName;
}
public CfgRequestBody withCertPath(String certPath) {
this.certPath = certPath;
return this;
}
/**
* SDK配置文件存放路径
* @return certPath
*/
public String getCertPath() {
return certPath;
}
public void setCertPath(String certPath) {
this.certPath = certPath;
}
public CfgRequestBody withChannelName(String channelName) {
this.channelName = channelName;
return this;
}
/**
* 通道名称
* @return channelName
*/
public String getChannelName() {
return channelName;
}
public void setChannelName(String channelName) {
this.channelName = channelName;
}
public CfgRequestBody withPeerOrgs(Map> peerOrgs) {
this.peerOrgs = peerOrgs;
return this;
}
public CfgRequestBody putPeerOrgsItem(String key, List peerOrgsItem) {
if(this.peerOrgs == null) {
this.peerOrgs = new HashMap<>();
}
this.peerOrgs.put(key, peerOrgsItem);
return this;
}
public CfgRequestBody withPeerOrgs(Consumer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy