com.mux.sdk.models.UploadError 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;
/**
* Only set if an error occurred during asset creation.
*/
@ApiModel(description = "Only set if an error occurred during asset creation.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UploadError {
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
public UploadError type(String type) {
this.type = type;
return this;
}
/**
* Label for the specific error
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Label for the specific error")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public UploadError message(String message) {
this.message = message;
return this;
}
/**
* Human readable error message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human readable error message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UploadError uploadError = (UploadError) o;
return Objects.equals(this.type, uploadError.type) &&
Objects.equals(this.message, uploadError.message);
}
@Override
public int hashCode() {
return Objects.hash(type, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UploadError {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).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