com.huaweicloud.sdk.frs.v2.model.FaceDetectUrlReq 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.Objects;
/**
* FaceDetectUrlReq
*/
public class FaceDetectUrlReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "image_url")
private String imageUrl;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "attributes")
private String attributes;
public FaceDetectUrlReq withImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* [图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。](tag:hc) [图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/intl/zh-cn/api-face/face_02_0006.html)。](tag:hk)
* @return imageUrl
*/
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public FaceDetectUrlReq withAttributes(String attributes) {
this.attributes = attributes;
return this;
}
/**
* 是否返回人脸属性,希望获取的属性列表,多个属性间使用逗号(,)隔开。目前支持的属性有: • 1:性别 • 2:年龄 • 4:装束(帽子、眼镜) • 6:口罩 • 7:发型 • 8:胡须 • 11:图片类型 • 12:质量 • 13:表情 • 21:人脸图片旋转角(顺时针偏转角度),支持0°、90°、180°和270°图片旋转
* @return attributes
*/
public String getAttributes() {
return attributes;
}
public void setAttributes(String attributes) {
this.attributes = attributes;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
FaceDetectUrlReq that = (FaceDetectUrlReq) obj;
return Objects.equals(this.imageUrl, that.imageUrl) && Objects.equals(this.attributes, that.attributes);
}
@Override
public int hashCode() {
return Objects.hash(imageUrl, attributes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FaceDetectUrlReq {\n");
sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}