{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QuickSight.Types.PaperSize
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.PaperSize
  ( PaperSize
      ( ..,
        PaperSize_A0,
        PaperSize_A1,
        PaperSize_A2,
        PaperSize_A3,
        PaperSize_A4,
        PaperSize_A5,
        PaperSize_JIS_B4,
        PaperSize_JIS_B5,
        PaperSize_US_LEGAL,
        PaperSize_US_LETTER,
        PaperSize_US_TABLOID_LEDGER
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype PaperSize = PaperSize'
  { PaperSize -> Text
fromPaperSize ::
      Data.Text
  }
  deriving stock
    ( Int -> PaperSize -> ShowS
[PaperSize] -> ShowS
PaperSize -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaperSize] -> ShowS
$cshowList :: [PaperSize] -> ShowS
show :: PaperSize -> String
$cshow :: PaperSize -> String
showsPrec :: Int -> PaperSize -> ShowS
$cshowsPrec :: Int -> PaperSize -> ShowS
Prelude.Show,
      ReadPrec [PaperSize]
ReadPrec PaperSize
Int -> ReadS PaperSize
ReadS [PaperSize]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PaperSize]
$creadListPrec :: ReadPrec [PaperSize]
readPrec :: ReadPrec PaperSize
$creadPrec :: ReadPrec PaperSize
readList :: ReadS [PaperSize]
$creadList :: ReadS [PaperSize]
readsPrec :: Int -> ReadS PaperSize
$creadsPrec :: Int -> ReadS PaperSize
Prelude.Read,
      PaperSize -> PaperSize -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaperSize -> PaperSize -> Bool
$c/= :: PaperSize -> PaperSize -> Bool
== :: PaperSize -> PaperSize -> Bool
$c== :: PaperSize -> PaperSize -> Bool
Prelude.Eq,
      Eq PaperSize
PaperSize -> PaperSize -> Bool
PaperSize -> PaperSize -> Ordering
PaperSize -> PaperSize -> PaperSize
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: PaperSize -> PaperSize -> PaperSize
$cmin :: PaperSize -> PaperSize -> PaperSize
max :: PaperSize -> PaperSize -> PaperSize
$cmax :: PaperSize -> PaperSize -> PaperSize
>= :: PaperSize -> PaperSize -> Bool
$c>= :: PaperSize -> PaperSize -> Bool
> :: PaperSize -> PaperSize -> Bool
$c> :: PaperSize -> PaperSize -> Bool
<= :: PaperSize -> PaperSize -> Bool
$c<= :: PaperSize -> PaperSize -> Bool
< :: PaperSize -> PaperSize -> Bool
$c< :: PaperSize -> PaperSize -> Bool
compare :: PaperSize -> PaperSize -> Ordering
$ccompare :: PaperSize -> PaperSize -> Ordering
Prelude.Ord,
      forall x. Rep PaperSize x -> PaperSize
forall x. PaperSize -> Rep PaperSize x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PaperSize x -> PaperSize
$cfrom :: forall x. PaperSize -> Rep PaperSize x
Prelude.Generic
    )
  deriving newtype
    ( Eq PaperSize
Int -> PaperSize -> Int
PaperSize -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PaperSize -> Int
$chash :: PaperSize -> Int
hashWithSalt :: Int -> PaperSize -> Int
$chashWithSalt :: Int -> PaperSize -> Int
Prelude.Hashable,
      PaperSize -> ()
forall a. (a -> ()) -> NFData a
rnf :: PaperSize -> ()
$crnf :: PaperSize -> ()
Prelude.NFData,
      Text -> Either String PaperSize
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PaperSize
$cfromText :: Text -> Either String PaperSize
Data.FromText,
      PaperSize -> Text
forall a. (a -> Text) -> ToText a
toText :: PaperSize -> Text
$ctoText :: PaperSize -> Text
Data.ToText,
      PaperSize -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PaperSize -> ByteString
$ctoBS :: PaperSize -> ByteString
Data.ToByteString,
      PaperSize -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PaperSize -> ByteStringBuilder
$cbuild :: PaperSize -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PaperSize -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PaperSize -> [Header]
$ctoHeader :: HeaderName -> PaperSize -> [Header]
Data.ToHeader,
      PaperSize -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PaperSize -> QueryString
$ctoQuery :: PaperSize -> QueryString
Data.ToQuery,
      Value -> Parser [PaperSize]
Value -> Parser PaperSize
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PaperSize]
$cparseJSONList :: Value -> Parser [PaperSize]
parseJSON :: Value -> Parser PaperSize
$cparseJSON :: Value -> Parser PaperSize
Data.FromJSON,
      FromJSONKeyFunction [PaperSize]
FromJSONKeyFunction PaperSize
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PaperSize]
$cfromJSONKeyList :: FromJSONKeyFunction [PaperSize]
fromJSONKey :: FromJSONKeyFunction PaperSize
$cfromJSONKey :: FromJSONKeyFunction PaperSize
Data.FromJSONKey,
      [PaperSize] -> Encoding
[PaperSize] -> Value
PaperSize -> Encoding
PaperSize -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PaperSize] -> Encoding
$ctoEncodingList :: [PaperSize] -> Encoding
toJSONList :: [PaperSize] -> Value
$ctoJSONList :: [PaperSize] -> Value
toEncoding :: PaperSize -> Encoding
$ctoEncoding :: PaperSize -> Encoding
toJSON :: PaperSize -> Value
$ctoJSON :: PaperSize -> Value
Data.ToJSON,
      ToJSONKeyFunction [PaperSize]
ToJSONKeyFunction PaperSize
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PaperSize]
$ctoJSONKeyList :: ToJSONKeyFunction [PaperSize]
toJSONKey :: ToJSONKeyFunction PaperSize
$ctoJSONKey :: ToJSONKeyFunction PaperSize
Data.ToJSONKey,
      [Node] -> Either String PaperSize
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PaperSize
$cparseXML :: [Node] -> Either String PaperSize
Data.FromXML,
      PaperSize -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PaperSize -> XML
$ctoXML :: PaperSize -> XML
Data.ToXML
    )

pattern PaperSize_A0 :: PaperSize
pattern $bPaperSize_A0 :: PaperSize
$mPaperSize_A0 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A0 = PaperSize' "A0"

pattern PaperSize_A1 :: PaperSize
pattern $bPaperSize_A1 :: PaperSize
$mPaperSize_A1 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A1 = PaperSize' "A1"

pattern PaperSize_A2 :: PaperSize
pattern $bPaperSize_A2 :: PaperSize
$mPaperSize_A2 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A2 = PaperSize' "A2"

pattern PaperSize_A3 :: PaperSize
pattern $bPaperSize_A3 :: PaperSize
$mPaperSize_A3 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A3 = PaperSize' "A3"

pattern PaperSize_A4 :: PaperSize
pattern $bPaperSize_A4 :: PaperSize
$mPaperSize_A4 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A4 = PaperSize' "A4"

pattern PaperSize_A5 :: PaperSize
pattern $bPaperSize_A5 :: PaperSize
$mPaperSize_A5 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_A5 = PaperSize' "A5"

pattern PaperSize_JIS_B4 :: PaperSize
pattern $bPaperSize_JIS_B4 :: PaperSize
$mPaperSize_JIS_B4 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_JIS_B4 = PaperSize' "JIS_B4"

pattern PaperSize_JIS_B5 :: PaperSize
pattern $bPaperSize_JIS_B5 :: PaperSize
$mPaperSize_JIS_B5 :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_JIS_B5 = PaperSize' "JIS_B5"

pattern PaperSize_US_LEGAL :: PaperSize
pattern $bPaperSize_US_LEGAL :: PaperSize
$mPaperSize_US_LEGAL :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_US_LEGAL = PaperSize' "US_LEGAL"

pattern PaperSize_US_LETTER :: PaperSize
pattern $bPaperSize_US_LETTER :: PaperSize
$mPaperSize_US_LETTER :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_US_LETTER = PaperSize' "US_LETTER"

pattern PaperSize_US_TABLOID_LEDGER :: PaperSize
pattern $bPaperSize_US_TABLOID_LEDGER :: PaperSize
$mPaperSize_US_TABLOID_LEDGER :: forall {r}. PaperSize -> ((# #) -> r) -> ((# #) -> r) -> r
PaperSize_US_TABLOID_LEDGER = PaperSize' "US_TABLOID_LEDGER"

{-# COMPLETE
  PaperSize_A0,
  PaperSize_A1,
  PaperSize_A2,
  PaperSize_A3,
  PaperSize_A4,
  PaperSize_A5,
  PaperSize_JIS_B4,
  PaperSize_JIS_B5,
  PaperSize_US_LEGAL,
  PaperSize_US_LETTER,
  PaperSize_US_TABLOID_LEDGER,
  PaperSize'
  #-}