mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-08 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2
This commit is contained in:
@@ -25,29 +25,57 @@ public class Feature {
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flavor")
|
||||
private Optional<String> flavor;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("scrobbleKey")
|
||||
private Optional<String> scrobbleKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("unscrobbleKey")
|
||||
private Optional<String> unscrobbleKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Directory")
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Action")
|
||||
private Optional<? extends List<Action>> action;
|
||||
|
||||
@JsonCreator
|
||||
public Feature(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetMediaProvidersDirectory>> directory) {
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("flavor") Optional<String> flavor,
|
||||
@JsonProperty("scrobbleKey") Optional<String> scrobbleKey,
|
||||
@JsonProperty("unscrobbleKey") Optional<String> unscrobbleKey,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetMediaProvidersDirectory>> directory,
|
||||
@JsonProperty("Action") Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.flavor = flavor;
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
this.directory = directory;
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public Feature() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Feature(
|
||||
String type) {
|
||||
this(Optional.empty(), type, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -56,16 +84,37 @@ public class Feature {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> flavor() {
|
||||
return flavor;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> scrobbleKey() {
|
||||
return scrobbleKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> unscrobbleKey() {
|
||||
return unscrobbleKey;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMediaProvidersDirectory>> directory() {
|
||||
return (Optional<List<GetMediaProvidersDirectory>>) directory;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Action>> action() {
|
||||
return (Optional<List<Action>>) action;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
@@ -84,13 +133,43 @@ public class Feature {
|
||||
|
||||
public Feature withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
public Feature withFlavor(String flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = Optional.ofNullable(flavor);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withFlavor(Optional<String> flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = flavor;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withScrobbleKey(String scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = Optional.ofNullable(scrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withScrobbleKey(Optional<String> scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withUnscrobbleKey(String unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = Optional.ofNullable(unscrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withUnscrobbleKey(Optional<String> unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -105,6 +184,18 @@ public class Feature {
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withAction(List<Action> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = Optional.ofNullable(action);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withAction(Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -118,7 +209,11 @@ public class Feature {
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.directory, other.directory);
|
||||
Objects.deepEquals(this.flavor, other.flavor) &&
|
||||
Objects.deepEquals(this.scrobbleKey, other.scrobbleKey) &&
|
||||
Objects.deepEquals(this.unscrobbleKey, other.unscrobbleKey) &&
|
||||
Objects.deepEquals(this.directory, other.directory) &&
|
||||
Objects.deepEquals(this.action, other.action);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -126,7 +221,11 @@ public class Feature {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
directory);
|
||||
flavor,
|
||||
scrobbleKey,
|
||||
unscrobbleKey,
|
||||
directory,
|
||||
action);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -134,16 +233,28 @@ public class Feature {
|
||||
return Utils.toString(Feature.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"directory", directory);
|
||||
"flavor", flavor,
|
||||
"scrobbleKey", scrobbleKey,
|
||||
"unscrobbleKey", unscrobbleKey,
|
||||
"directory", directory,
|
||||
"action", action);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
private String type;
|
||||
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory = Optional.empty();
|
||||
private Optional<String> flavor = Optional.empty();
|
||||
|
||||
private Optional<String> scrobbleKey = Optional.empty();
|
||||
|
||||
private Optional<String> unscrobbleKey = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Action>> action = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -163,13 +274,43 @@ public class Feature {
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
public Builder flavor(String flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = Optional.ofNullable(flavor);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder flavor(Optional<String> flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = flavor;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder scrobbleKey(String scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = Optional.ofNullable(scrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder scrobbleKey(Optional<String> scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder unscrobbleKey(String unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = Optional.ofNullable(unscrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder unscrobbleKey(Optional<String> unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -184,12 +325,28 @@ public class Feature {
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder action(List<Action> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = Optional.ofNullable(action);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder action(Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature build() {
|
||||
return new Feature(
|
||||
key,
|
||||
type,
|
||||
directory);
|
||||
flavor,
|
||||
scrobbleKey,
|
||||
unscrobbleKey,
|
||||
directory,
|
||||
action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user