/* 
 * 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;

/**
 * GetAllLibrariesResponseBody - The libraries available on the Server
 */

public class GetAllLibrariesResponseBody {

    @JsonProperty("MediaContainer")
    private GetAllLibrariesMediaContainer mediaContainer;

    @JsonCreator
    public GetAllLibrariesResponseBody(
            @JsonProperty("MediaContainer") GetAllLibrariesMediaContainer mediaContainer) {
        Utils.checkNotNull(mediaContainer, "mediaContainer");
        this.mediaContainer = mediaContainer;
    }

    @JsonIgnore
    public GetAllLibrariesMediaContainer mediaContainer() {
        return mediaContainer;
    }

    public final static Builder builder() {
        return new Builder();
    }

    public GetAllLibrariesResponseBody withMediaContainer(GetAllLibrariesMediaContainer mediaContainer) {
        Utils.checkNotNull(mediaContainer, "mediaContainer");
        this.mediaContainer = mediaContainer;
        return this;
    }
    
    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        GetAllLibrariesResponseBody other = (GetAllLibrariesResponseBody) o;
        return 
            Objects.deepEquals(this.mediaContainer, other.mediaContainer);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(
            mediaContainer);
    }
    
    @Override
    public String toString() {
        return Utils.toString(GetAllLibrariesResponseBody.class,
                "mediaContainer", mediaContainer);
    }
    
    public final static class Builder {
 
        private GetAllLibrariesMediaContainer mediaContainer;  
        
        private Builder() {
          // force use of static builder() method
        }

        public Builder mediaContainer(GetAllLibrariesMediaContainer mediaContainer) {
            Utils.checkNotNull(mediaContainer, "mediaContainer");
            this.mediaContainer = mediaContainer;
            return this;
        }
        
        public GetAllLibrariesResponseBody build() {
            return new GetAllLibrariesResponseBody(
                mediaContainer);
        }
    }
}

