com.mux.sdk.models.AssetErrors Maven / Gradle / Ivy
/*
* Mux API
* Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
*
* The version of the OpenAPI document: v1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mux.sdk.models;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Object that describes any errors that happened when processing this asset.
*/
@ApiModel(description = "Object that describes any errors that happened when processing this asset.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AssetErrors {
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public static final String SERIALIZED_NAME_MESSAGES = "messages";
@SerializedName(SERIALIZED_NAME_MESSAGES)
private java.util.List messages = null;
public AssetErrors type(String type) {
this.type = type;
return this;
}
/**
* The type of error that occurred for this asset.
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The type of error that occurred for this asset.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public AssetErrors messages(java.util.List messages) {
this.messages = messages;
return this;
}
public AssetErrors addMessagesItem(String messagesItem) {
if (this.messages == null) {
this.messages = new java.util.ArrayList<>();
}
this.messages.add(messagesItem);
return this;
}
/**
* Error messages with more details.
* @return messages
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Error messages with more details.")
public java.util.List getMessages() {
return messages;
}
public void setMessages(java.util.List messages) {
this.messages = messages;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssetErrors assetErrors = (AssetErrors) o;
return Objects.equals(this.type, assetErrors.type) &&
Objects.equals(this.messages, assetErrors.messages);
}
@Override
public int hashCode() {
return Objects.hash(type, messages);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssetErrors {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" messages: ").append(toIndentedString(messages)).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