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


public class GetCountriesLibraryDirectory {

    @JsonProperty("fastKey")
    private String fastKey;

    @JsonProperty("key")
    private String key;

    @JsonProperty("title")
    private String title;

    @JsonCreator
    public GetCountriesLibraryDirectory(
            @JsonProperty("fastKey") String fastKey,
            @JsonProperty("key") String key,
            @JsonProperty("title") String title) {
        Utils.checkNotNull(fastKey, "fastKey");
        Utils.checkNotNull(key, "key");
        Utils.checkNotNull(title, "title");
        this.fastKey = fastKey;
        this.key = key;
        this.title = title;
    }

    @JsonIgnore
    public String fastKey() {
        return fastKey;
    }

    @JsonIgnore
    public String key() {
        return key;
    }

    @JsonIgnore
    public String title() {
        return title;
    }

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

    public GetCountriesLibraryDirectory withFastKey(String fastKey) {
        Utils.checkNotNull(fastKey, "fastKey");
        this.fastKey = fastKey;
        return this;
    }

    public GetCountriesLibraryDirectory withKey(String key) {
        Utils.checkNotNull(key, "key");
        this.key = key;
        return this;
    }

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

        public Builder fastKey(String fastKey) {
            Utils.checkNotNull(fastKey, "fastKey");
            this.fastKey = fastKey;
            return this;
        }

        public Builder key(String key) {
            Utils.checkNotNull(key, "key");
            this.key = key;
            return this;
        }

        public Builder title(String title) {
            Utils.checkNotNull(title, "title");
            this.title = title;
            return this;
        }
        
        public GetCountriesLibraryDirectory build() {
            return new GetCountriesLibraryDirectory(
                fastKey,
                key,
                title);
        }
    }
}

