com.huaweicloud.sdk.koomessage.v1.model.CreateResolveTaskParamMode 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 CreateResolveTaskParamMode {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "cust_flag")
private String custFlag;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "cust_id")
private String custId;
@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 = "aim_url")
private String aimUrl;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "aim_code")
private String aimCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ext_data")
private String extData;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "result_code")
private String resultCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "error_message")
private String errorMessage;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "generate_date")
private String generateDate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "expire_date")
private String expireDate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "resolved_date")
private String resolvedDate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "resolved_times")
private Integer resolvedTimes;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "custom_short_code")
private String customShortCode;
public CreateResolveTaskParamMode 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 CreateResolveTaskParamMode withCustId(String custId) {
this.custId = custId;
return this;
}
/**
* 租户ID。
* @return custId
*/
public String getCustId() {
return custId;
}
public void setCustId(String custId) {
this.custId = custId;
}
public CreateResolveTaskParamMode withDyncParams(Map dyncParams) {
this.dyncParams = dyncParams;
return this;
}
public CreateResolveTaskParamMode putDyncParamsItem(String key, String dyncParamsItem) {
if (this.dyncParams == null) {
this.dyncParams = new HashMap<>();
}
this.dyncParams.put(key, dyncParamsItem);
return this;
}
public CreateResolveTaskParamMode withDyncParams(Consumer