com.bitmovin.api.sdk.model.IngestInputStream Maven / Gradle / Ivy
package com.bitmovin.api.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.InputStream;
import com.bitmovin.api.sdk.model.StreamSelectionMode;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* IngestInputStream
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = false, defaultImpl = IngestInputStream.class)
public class IngestInputStream extends InputStream {
@JsonProperty("inputId")
private String inputId;
@JsonProperty("inputPath")
private String inputPath;
@JsonProperty("selectionMode")
private StreamSelectionMode selectionMode;
@JsonProperty("position")
private Integer position;
/**
* ID of an Input resource defining the input storage (required)
* @return inputId
*/
public String getInputId() {
return inputId;
}
/**
* ID of an Input resource defining the input storage (required)
*
* @param inputId
* ID of an Input resource defining the input storage (required)
*/
public void setInputId(String inputId) {
this.inputId = inputId;
}
/**
* Path to an input media file (required)
* @return inputPath
*/
public String getInputPath() {
return inputPath;
}
/**
* Path to an input media file (required)
*
* @param inputPath
* Path to an input media file (required)
*/
public void setInputPath(String inputPath) {
this.inputPath = inputPath;
}
/**
* Specifies the strategy for selecting a stream from the input file
* @return selectionMode
*/
public StreamSelectionMode getSelectionMode() {
return selectionMode;
}
/**
* Specifies the strategy for selecting a stream from the input file
*
* @param selectionMode
* Specifies the strategy for selecting a stream from the input file
*/
public void setSelectionMode(StreamSelectionMode selectionMode) {
this.selectionMode = selectionMode;
}
/**
* Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.
* minimum: 0
* @return position
*/
public Integer getPosition() {
return position;
}
/**
* Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.
* minimum: 0
*
* @param position
* Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.
* minimum: 0
*/
public void setPosition(Integer position) {
this.position = position;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IngestInputStream ingestInputStream = (IngestInputStream) o;
return Objects.equals(this.inputId, ingestInputStream.inputId) &&
Objects.equals(this.inputPath, ingestInputStream.inputPath) &&
Objects.equals(this.selectionMode, ingestInputStream.selectionMode) &&
Objects.equals(this.position, ingestInputStream.position) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(inputId, inputPath, selectionMode, position, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IngestInputStream {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" inputId: ").append(toIndentedString(inputId)).append("\n");
sb.append(" inputPath: ").append(toIndentedString(inputPath)).append("\n");
sb.append(" selectionMode: ").append(toIndentedString(selectionMode)).append("\n");
sb.append(" position: ").append(toIndentedString(position)).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 ");
}
}