com.huaweicloud.sdk.frs.v2.model.LiveDetectFaceUrlReq 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;
/**
* LiveDetectFaceUrlReq
*/
public class LiveDetectFaceUrlReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "image_url")
private String imageUrl;
public LiveDetectFaceUrlReq 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;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
LiveDetectFaceUrlReq that = (LiveDetectFaceUrlReq) obj;
return Objects.equals(this.imageUrl, that.imageUrl);
}
@Override
public int hashCode() {
return Objects.hash(imageUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LiveDetectFaceUrlReq {\n");
sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).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 ");
}
}