Files
plexjava/src/main/java/dev/plexapi/sdk/models/operations/GetMediaArtsRequest.java

100 lines
2.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 dev.plexapi.sdk.utils.SpeakeasyMetadata;
import dev.plexapi.sdk.utils.Utils;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
public class GetMediaArtsRequest {
/**
* the id of the library item to return the artwork of.
*/
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")
private long ratingKey;
@JsonCreator
public GetMediaArtsRequest(
long ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
}
/**
* the id of the library item to return the artwork of.
*/
@JsonIgnore
public long ratingKey() {
return ratingKey;
}
public final static Builder builder() {
return new Builder();
}
/**
* the id of the library item to return the artwork of.
*/
public GetMediaArtsRequest withRatingKey(long ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetMediaArtsRequest other = (GetMediaArtsRequest) o;
return
Objects.deepEquals(this.ratingKey, other.ratingKey);
}
@Override
public int hashCode() {
return Objects.hash(
ratingKey);
}
@Override
public String toString() {
return Utils.toString(GetMediaArtsRequest.class,
"ratingKey", ratingKey);
}
public final static class Builder {
private Long ratingKey;
private Builder() {
// force use of static builder() method
}
/**
* the id of the library item to return the artwork of.
*/
public Builder ratingKey(long ratingKey) {
Utils.checkNotNull(ratingKey, "ratingKey");
this.ratingKey = ratingKey;
return this;
}
public GetMediaArtsRequest build() {
return new GetMediaArtsRequest(
ratingKey);
}
}
}