// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package sdkerrors

import (
	"encoding/json"
	"net/http"
)

type PostUsersSignInDataAuthenticationErrors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (p *PostUsersSignInDataAuthenticationErrors) GetCode() *int {
	if p == nil {
		return nil
	}
	return p.Code
}

func (p *PostUsersSignInDataAuthenticationErrors) GetMessage() *string {
	if p == nil {
		return nil
	}
	return p.Message
}

func (p *PostUsersSignInDataAuthenticationErrors) GetStatus() *int {
	if p == nil {
		return nil
	}
	return p.Status
}

// PostUsersSignInDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type PostUsersSignInDataUnauthorized struct {
	Errors []PostUsersSignInDataAuthenticationErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

var _ error = &PostUsersSignInDataUnauthorized{}

func (e *PostUsersSignInDataUnauthorized) Error() string {
	data, _ := json.Marshal(e)
	return string(data)
}

type PostUsersSignInDataErrors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (p *PostUsersSignInDataErrors) GetCode() *int {
	if p == nil {
		return nil
	}
	return p.Code
}

func (p *PostUsersSignInDataErrors) GetMessage() *string {
	if p == nil {
		return nil
	}
	return p.Message
}

func (p *PostUsersSignInDataErrors) GetStatus() *int {
	if p == nil {
		return nil
	}
	return p.Status
}

// PostUsersSignInDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type PostUsersSignInDataBadRequest struct {
	Errors []PostUsersSignInDataErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

var _ error = &PostUsersSignInDataBadRequest{}

func (e *PostUsersSignInDataBadRequest) Error() string {
	data, _ := json.Marshal(e)
	return string(data)
}
