nl.vpro.nep.sam.model.StreamAccessResponseAttributesAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-nep Show documentation
Show all versions of media-nep Show documentation
Support for the several APIs of NEP that POMS is integrating with
/*
* Stream Access Manager
* Get access to a stream in order to view it
*
* The version of the OpenAPI document: 4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package nl.vpro.nep.sam.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import nl.vpro.nep.sam.model.CdnTypeEnum;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
/**
* StreamAccessResponseAttributesAttributes
*/
@JsonPropertyOrder({
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_URL,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_TYPE,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_CDN,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_CDN_TYPE,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_DRM,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_LEGACY,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_OPTIONS,
StreamAccessResponseAttributesAttributes.JSON_PROPERTY_TOKEN
})
@JsonTypeName("StreamAccessResponseAttributes_attributes")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-12-18T10:26:20.602909888Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class StreamAccessResponseAttributesAttributes {
public static final String JSON_PROPERTY_URL = "url";
private String url;
public static final String JSON_PROPERTY_TYPE = "type";
private String type;
public static final String JSON_PROPERTY_CDN = "cdn";
private String cdn;
public static final String JSON_PROPERTY_CDN_TYPE = "cdnType";
private CdnTypeEnum cdnType;
public static final String JSON_PROPERTY_DRM = "drm";
private Boolean drm;
public static final String JSON_PROPERTY_LEGACY = "legacy";
private Boolean legacy;
public static final String JSON_PROPERTY_OPTIONS = "options";
private Object options;
public static final String JSON_PROPERTY_TOKEN = "token";
private String token;
public StreamAccessResponseAttributesAttributes() {
}
public StreamAccessResponseAttributesAttributes url(String url) {
this.url = url;
return this;
}
/**
* Url to the stream
* @return url
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getUrl() {
return url;
}
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUrl(String url) {
this.url = url;
}
public StreamAccessResponseAttributesAttributes type(String type) {
this.type = type;
return this;
}
/**
* Type of the stream
* @return type
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setType(String type) {
this.type = type;
}
public StreamAccessResponseAttributesAttributes cdn(String cdn) {
this.cdn = cdn;
return this;
}
/**
* Identifier of the used CDN
* @return cdn
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_CDN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCdn() {
return cdn;
}
@JsonProperty(JSON_PROPERTY_CDN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCdn(String cdn) {
this.cdn = cdn;
}
public StreamAccessResponseAttributesAttributes cdnType(CdnTypeEnum cdnType) {
this.cdnType = cdnType;
return this;
}
/**
* Get cdnType
* @return cdnType
**/
@jakarta.annotation.Nonnull
@NotNull
@Valid
@JsonProperty(JSON_PROPERTY_CDN_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public CdnTypeEnum getCdnType() {
return cdnType;
}
@JsonProperty(JSON_PROPERTY_CDN_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCdnType(CdnTypeEnum cdnType) {
this.cdnType = cdnType;
}
public StreamAccessResponseAttributesAttributes drm(Boolean drm) {
this.drm = drm;
return this;
}
/**
* Flags if the stream is drm encrypted or not, default: true
* @return drm
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DRM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDrm() {
return drm;
}
@JsonProperty(JSON_PROPERTY_DRM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDrm(Boolean drm) {
this.drm = drm;
}
public StreamAccessResponseAttributesAttributes legacy(Boolean legacy) {
this.legacy = legacy;
return this;
}
/**
* Flags if the stream has not been migrated to the new cdn yet, default: false
* @return legacy
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LEGACY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getLegacy() {
return legacy;
}
@JsonProperty(JSON_PROPERTY_LEGACY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegacy(Boolean legacy) {
this.legacy = legacy;
}
public StreamAccessResponseAttributesAttributes options(Object options) {
this.options = options;
return this;
}
/**
* Extra options passed to the response. Ex. if DAI is enabled or not, default: {}
* @return options
**/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_OPTIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getOptions() {
return options;
}
@JsonProperty(JSON_PROPERTY_OPTIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOptions(Object options) {
this.options = options;
}
public StreamAccessResponseAttributesAttributes token(String token) {
this.token = token;
return this;
}
/**
*
* @return token
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getToken() {
return token;
}
@JsonProperty(JSON_PROPERTY_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setToken(String token) {
this.token = token;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StreamAccessResponseAttributesAttributes streamAccessResponseAttributesAttributes = (StreamAccessResponseAttributesAttributes) o;
return Objects.equals(this.url, streamAccessResponseAttributesAttributes.url) &&
Objects.equals(this.type, streamAccessResponseAttributesAttributes.type) &&
Objects.equals(this.cdn, streamAccessResponseAttributesAttributes.cdn) &&
Objects.equals(this.cdnType, streamAccessResponseAttributesAttributes.cdnType) &&
Objects.equals(this.drm, streamAccessResponseAttributesAttributes.drm) &&
Objects.equals(this.legacy, streamAccessResponseAttributesAttributes.legacy) &&
Objects.equals(this.options, streamAccessResponseAttributesAttributes.options) &&
Objects.equals(this.token, streamAccessResponseAttributesAttributes.token);
}
@Override
public int hashCode() {
return Objects.hash(url, type, cdn, cdnType, drm, legacy, options, token);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StreamAccessResponseAttributesAttributes {\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" cdn: ").append(toIndentedString(cdn)).append("\n");
sb.append(" cdnType: ").append(toIndentedString(cdnType)).append("\n");
sb.append(" drm: ").append(toIndentedString(drm)).append("\n");
sb.append(" legacy: ").append(toIndentedString(legacy)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy