com.huaweicloud.sdk.osm.v2.model.PutCaseExtParamReq Maven / Gradle / Ivy
package com.huaweicloud.sdk.osm.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* PutCaseExtParamReq
*/
public class PutCaseExtParamReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "group_id")
private String groupId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "message_id")
private String messageId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "extends_map")
private Map extendsMap = null;
public PutCaseExtParamReq withGroupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* 组id
* @return groupId
*/
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public PutCaseExtParamReq withMessageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* 消息id
* @return messageId
*/
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public PutCaseExtParamReq withExtendsMap(Map extendsMap) {
this.extendsMap = extendsMap;
return this;
}
public PutCaseExtParamReq putExtendsMapItem(String key, Object extendsMapItem) {
if (this.extendsMap == null) {
this.extendsMap = new HashMap<>();
}
this.extendsMap.put(key, extendsMapItem);
return this;
}
public PutCaseExtParamReq withExtendsMap(Consumer