mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 20:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2
This commit is contained in:
159
src/main/java/dev/plexapi/sdk/models/operations/Meta.java
Normal file
159
src/main/java/dev/plexapi/sdk/models/operations/Meta.java
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Meta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
|
||||
public class Meta {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetLibraryItemsType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType;
|
||||
|
||||
@JsonCreator
|
||||
public Meta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.type = type;
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
|
||||
public Meta() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsType>> type() {
|
||||
return (Optional<List<GetLibraryItemsType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibraryItemsFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Meta withType(List<GetLibraryItemsType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withType(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withFieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withFieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Meta other = (Meta) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.fieldType, other.fieldType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
type,
|
||||
fieldType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Meta.class,
|
||||
"type", type,
|
||||
"fieldType", fieldType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetLibraryItemsType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<GetLibraryItemsFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta build() {
|
||||
return new Meta(
|
||||
type,
|
||||
fieldType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user