{-# 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.ResizeOption
-- 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.ResizeOption
  ( ResizeOption
      ( ..,
        ResizeOption_FIXED,
        ResizeOption_RESPONSIVE
      ),
  )
where

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

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

pattern ResizeOption_FIXED :: ResizeOption
pattern $bResizeOption_FIXED :: ResizeOption
$mResizeOption_FIXED :: forall {r}. ResizeOption -> ((# #) -> r) -> ((# #) -> r) -> r
ResizeOption_FIXED = ResizeOption' "FIXED"

pattern ResizeOption_RESPONSIVE :: ResizeOption
pattern $bResizeOption_RESPONSIVE :: ResizeOption
$mResizeOption_RESPONSIVE :: forall {r}. ResizeOption -> ((# #) -> r) -> ((# #) -> r) -> r
ResizeOption_RESPONSIVE = ResizeOption' "RESPONSIVE"

{-# COMPLETE
  ResizeOption_FIXED,
  ResizeOption_RESPONSIVE,
  ResizeOption'
  #-}