com.huaweicloud.sdk.imagesearch.v2.model.UpdateParam Maven / Gradle / Ivy
package com.huaweicloud.sdk.imagesearch.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;
/**
* UpdateParam
*/
public class UpdateParam {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "item_id")
private String itemId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "desc")
private String desc;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "custom_tags")
private Map customTags = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "custom_num_tags")
private Map customNumTags = null;
public UpdateParam withItemId(String itemId) {
this.itemId = itemId;
return this;
}
/**
* 数据的服务实例级唯一标识,字符长度范围为[1, 256]。
* @return itemId
*/
public String getItemId() {
return itemId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
public UpdateParam withDesc(String desc) {
this.desc = desc;
return this;
}
/**
* 数据的描述信息,字符长度范围为[1, 2048]。
* @return desc
*/
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public UpdateParam withCustomTags(Map customTags) {
this.customTags = customTags;
return this;
}
public UpdateParam putCustomTagsItem(String key, String customTagsItem) {
if (this.customTags == null) {
this.customTags = new HashMap<>();
}
this.customTags.put(key, customTagsItem);
return this;
}
public UpdateParam withCustomTags(Consumer