All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.vias.v2.model.BatchTaskInputVideoSourceDto Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.vias.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * BatchTaskInputVideoSourceDto
 */
public class BatchTaskInputVideoSourceDto {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "video_source_id")

    private String videoSourceId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "target_roi")

    private String targetRoi;

    public BatchTaskInputVideoSourceDto withVideoSourceId(String videoSourceId) {
        this.videoSourceId = videoSourceId;
        return this;
    }

    /**
     * 视频源id
     * @return videoSourceId
     */
    public String getVideoSourceId() {
        return videoSourceId;
    }

    public void setVideoSourceId(String videoSourceId) {
        this.videoSourceId = videoSourceId;
    }

    public BatchTaskInputVideoSourceDto withTargetRoi(String targetRoi) {
        this.targetRoi = targetRoi;
        return this;
    }

    /**
     * roi区域
     * @return targetRoi
     */
    public String getTargetRoi() {
        return targetRoi;
    }

    public void setTargetRoi(String targetRoi) {
        this.targetRoi = targetRoi;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        BatchTaskInputVideoSourceDto that = (BatchTaskInputVideoSourceDto) obj;
        return Objects.equals(this.videoSourceId, that.videoSourceId) && Objects.equals(this.targetRoi, that.targetRoi);
    }

    @Override
    public int hashCode() {
        return Objects.hash(videoSourceId, targetRoi);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class BatchTaskInputVideoSourceDto {\n");
        sb.append("    videoSourceId: ").append(toIndentedString(videoSourceId)).append("\n");
        sb.append("    targetRoi: ").append(toIndentedString(targetRoi)).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    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy