
com.huaweicloud.sdk.bcs.v2.model.Channel 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;
/**
* Channel
*/
public class Channel {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="create_time")
private String createTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="peers")
private Map> peers = null;
public Channel withName(String name) {
this.name = name;
return this;
}
/**
* 通道名
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Channel withDescription(String description) {
this.description = description;
return this;
}
/**
* 通道细节描述
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Channel withCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* 通道创建时间
* @return createTime
*/
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public Channel withPeers(Map> peers) {
this.peers = peers;
return this;
}
public Channel putPeersItem(String key, List peersItem) {
if(this.peers == null) {
this.peers = new HashMap<>();
}
this.peers.put(key, peersItem);
return this;
}
public Channel withPeers(Consumer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy