mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4
This commit is contained in:
@@ -6,34 +6,60 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
/**
|
||||
* Genre - The filter query string for similar items.
|
||||
*/
|
||||
|
||||
public class Genre {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public Genre(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public Genre() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@@ -41,13 +67,23 @@ public class Genre {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Genre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Genre withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Genre withTag(Optional<String> tag) {
|
||||
public Genre withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public Genre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -63,36 +99,56 @@ public class Genre {
|
||||
}
|
||||
Genre other = (Genre) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Genre.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -100,6 +156,8 @@ public class Genre {
|
||||
|
||||
public Genre build() {
|
||||
return new Genre(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user