com.huaweicloud.sdk.frs.v2.model.CreateFaceSetReq Maven / Gradle / Ivy
package com.huaweicloud.sdk.frs.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;
/**
* CreateFaceSetReq
*/
public class CreateFaceSetReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "external_fields")
private Map externalFields = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "face_set_name")
private String faceSetName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "face_set_capacity")
private Integer faceSetCapacity;
public CreateFaceSetReq withExternalFields(Map externalFields) {
this.externalFields = externalFields;
return this;
}
public CreateFaceSetReq putExternalFieldsItem(String key, TypeInfo externalFieldsItem) {
if (this.externalFields == null) {
this.externalFields = new HashMap<>();
}
this.externalFields.put(key, externalFieldsItem);
return this;
}
public CreateFaceSetReq withExternalFields(Consumer