mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 20:47:45 +00:00
99 lines
2.4 KiB
Java
99 lines
2.4 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 GetLibrarySectionsAllCollection {
|
|
|
|
/**
|
|
* The user-made collection this media item belongs to
|
|
*/
|
|
@JsonProperty("tag")
|
|
private String tag;
|
|
|
|
@JsonCreator
|
|
public GetLibrarySectionsAllCollection(
|
|
@JsonProperty("tag") String tag) {
|
|
Utils.checkNotNull(tag, "tag");
|
|
this.tag = tag;
|
|
}
|
|
|
|
/**
|
|
* The user-made collection this media item belongs to
|
|
*/
|
|
@JsonIgnore
|
|
public String tag() {
|
|
return tag;
|
|
}
|
|
|
|
public final static Builder builder() {
|
|
return new Builder();
|
|
}
|
|
|
|
/**
|
|
* The user-made collection this media item belongs to
|
|
*/
|
|
public GetLibrarySectionsAllCollection withTag(String tag) {
|
|
Utils.checkNotNull(tag, "tag");
|
|
this.tag = tag;
|
|
return this;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
GetLibrarySectionsAllCollection other = (GetLibrarySectionsAllCollection) o;
|
|
return
|
|
Objects.deepEquals(this.tag, other.tag);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(
|
|
tag);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return Utils.toString(GetLibrarySectionsAllCollection.class,
|
|
"tag", tag);
|
|
}
|
|
|
|
public final static class Builder {
|
|
|
|
private String tag;
|
|
|
|
private Builder() {
|
|
// force use of static builder() method
|
|
}
|
|
|
|
/**
|
|
* The user-made collection this media item belongs to
|
|
*/
|
|
public Builder tag(String tag) {
|
|
Utils.checkNotNull(tag, "tag");
|
|
this.tag = tag;
|
|
return this;
|
|
}
|
|
|
|
public GetLibrarySectionsAllCollection build() {
|
|
return new GetLibrarySectionsAllCollection(
|
|
tag);
|
|
}
|
|
}
|
|
}
|