mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 12:37:45 +00:00
145 lines
3.5 KiB
Java
145 lines
3.5 KiB
Java
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
package dev.plexapi.sdk.models.operations;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import dev.plexapi.sdk.utils.Utils;
|
|
import java.lang.Override;
|
|
import java.lang.String;
|
|
import java.util.Objects;
|
|
|
|
public class GetLibraryItemsImage {
|
|
|
|
@JsonProperty("alt")
|
|
private String alt;
|
|
|
|
@JsonProperty("type")
|
|
private GetLibraryItemsLibraryResponseType type;
|
|
|
|
@JsonProperty("url")
|
|
private String url;
|
|
|
|
@JsonCreator
|
|
public GetLibraryItemsImage(
|
|
@JsonProperty("alt") String alt,
|
|
@JsonProperty("type") GetLibraryItemsLibraryResponseType type,
|
|
@JsonProperty("url") String url) {
|
|
Utils.checkNotNull(alt, "alt");
|
|
Utils.checkNotNull(type, "type");
|
|
Utils.checkNotNull(url, "url");
|
|
this.alt = alt;
|
|
this.type = type;
|
|
this.url = url;
|
|
}
|
|
|
|
@JsonIgnore
|
|
public String alt() {
|
|
return alt;
|
|
}
|
|
|
|
@JsonIgnore
|
|
public GetLibraryItemsLibraryResponseType type() {
|
|
return type;
|
|
}
|
|
|
|
@JsonIgnore
|
|
public String url() {
|
|
return url;
|
|
}
|
|
|
|
public final static Builder builder() {
|
|
return new Builder();
|
|
}
|
|
|
|
public GetLibraryItemsImage withAlt(String alt) {
|
|
Utils.checkNotNull(alt, "alt");
|
|
this.alt = alt;
|
|
return this;
|
|
}
|
|
|
|
public GetLibraryItemsImage withType(GetLibraryItemsLibraryResponseType type) {
|
|
Utils.checkNotNull(type, "type");
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
public GetLibraryItemsImage withUrl(String url) {
|
|
Utils.checkNotNull(url, "url");
|
|
this.url = url;
|
|
return this;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
GetLibraryItemsImage other = (GetLibraryItemsImage) o;
|
|
return
|
|
Objects.deepEquals(this.alt, other.alt) &&
|
|
Objects.deepEquals(this.type, other.type) &&
|
|
Objects.deepEquals(this.url, other.url);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(
|
|
alt,
|
|
type,
|
|
url);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return Utils.toString(GetLibraryItemsImage.class,
|
|
"alt", alt,
|
|
"type", type,
|
|
"url", url);
|
|
}
|
|
|
|
public final static class Builder {
|
|
|
|
private String alt;
|
|
|
|
private GetLibraryItemsLibraryResponseType type;
|
|
|
|
private String url;
|
|
|
|
private Builder() {
|
|
// force use of static builder() method
|
|
}
|
|
|
|
public Builder alt(String alt) {
|
|
Utils.checkNotNull(alt, "alt");
|
|
this.alt = alt;
|
|
return this;
|
|
}
|
|
|
|
public Builder type(GetLibraryItemsLibraryResponseType type) {
|
|
Utils.checkNotNull(type, "type");
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
public Builder url(String url) {
|
|
Utils.checkNotNull(url, "url");
|
|
this.url = url;
|
|
return this;
|
|
}
|
|
|
|
public GetLibraryItemsImage build() {
|
|
return new GetLibraryItemsImage(
|
|
alt,
|
|
type,
|
|
url);
|
|
}
|
|
}
|
|
}
|