{-# 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.RelativeFontSize
-- 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.RelativeFontSize
  ( RelativeFontSize
      ( ..,
        RelativeFontSize_EXTRA_LARGE,
        RelativeFontSize_EXTRA_SMALL,
        RelativeFontSize_LARGE,
        RelativeFontSize_MEDIUM,
        RelativeFontSize_SMALL
      ),
  )
where

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

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

pattern RelativeFontSize_EXTRA_LARGE :: RelativeFontSize
pattern $bRelativeFontSize_EXTRA_LARGE :: RelativeFontSize
$mRelativeFontSize_EXTRA_LARGE :: forall {r}. RelativeFontSize -> ((# #) -> r) -> ((# #) -> r) -> r
RelativeFontSize_EXTRA_LARGE = RelativeFontSize' "EXTRA_LARGE"

pattern RelativeFontSize_EXTRA_SMALL :: RelativeFontSize
pattern $bRelativeFontSize_EXTRA_SMALL :: RelativeFontSize
$mRelativeFontSize_EXTRA_SMALL :: forall {r}. RelativeFontSize -> ((# #) -> r) -> ((# #) -> r) -> r
RelativeFontSize_EXTRA_SMALL = RelativeFontSize' "EXTRA_SMALL"

pattern RelativeFontSize_LARGE :: RelativeFontSize
pattern $bRelativeFontSize_LARGE :: RelativeFontSize
$mRelativeFontSize_LARGE :: forall {r}. RelativeFontSize -> ((# #) -> r) -> ((# #) -> r) -> r
RelativeFontSize_LARGE = RelativeFontSize' "LARGE"

pattern RelativeFontSize_MEDIUM :: RelativeFontSize
pattern $bRelativeFontSize_MEDIUM :: RelativeFontSize
$mRelativeFontSize_MEDIUM :: forall {r}. RelativeFontSize -> ((# #) -> r) -> ((# #) -> r) -> r
RelativeFontSize_MEDIUM = RelativeFontSize' "MEDIUM"

pattern RelativeFontSize_SMALL :: RelativeFontSize
pattern $bRelativeFontSize_SMALL :: RelativeFontSize
$mRelativeFontSize_SMALL :: forall {r}. RelativeFontSize -> ((# #) -> r) -> ((# #) -> r) -> r
RelativeFontSize_SMALL = RelativeFontSize' "SMALL"

{-# COMPLETE
  RelativeFontSize_EXTRA_LARGE,
  RelativeFontSize_EXTRA_SMALL,
  RelativeFontSize_LARGE,
  RelativeFontSize_MEDIUM,
  RelativeFontSize_SMALL,
  RelativeFontSize'
  #-}