com.huaweicloud.sdk.koomessage.v1.model.CreateShortChainParam Maven / Gradle / Ivy
package com.huaweicloud.sdk.koomessage.v1.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;
/**
* 生成短链的参数对象。
*/
public class CreateShortChainParam {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "cust_flag")
private String custFlag;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "dync_params")
private Map dyncParams = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "custom_url")
private String customUrl;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "custom_short_code")
private String customShortCode;
public CreateShortChainParam withCustFlag(String custFlag) {
this.custFlag = custFlag;
return this;
}
/**
* 创建解析任务时填写用户唯一标识,手机号码或者任何的唯一标识,唯一标识不超过64个字符。 发送智能信息时则必须填客户的手机号码。样例为:130****0001。
* @return custFlag
*/
public String getCustFlag() {
return custFlag;
}
public void setCustFlag(String custFlag) {
this.custFlag = custFlag;
}
public CreateShortChainParam withDyncParams(Map dyncParams) {
this.dyncParams = dyncParams;
return this;
}
public CreateShortChainParam putDyncParamsItem(String key, String dyncParamsItem) {
if (this.dyncParams == null) {
this.dyncParams = new HashMap<>();
}
this.dyncParams.put(key, dyncParamsItem);
return this;
}
public CreateShortChainParam withDyncParams(Consumer