{-# 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.TableCellImageScalingConfiguration
-- 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.TableCellImageScalingConfiguration
  ( TableCellImageScalingConfiguration
      ( ..,
        TableCellImageScalingConfiguration_DO_NOT_SCALE,
        TableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT,
        TableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH
      ),
  )
where

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

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

pattern TableCellImageScalingConfiguration_DO_NOT_SCALE :: TableCellImageScalingConfiguration
pattern $bTableCellImageScalingConfiguration_DO_NOT_SCALE :: TableCellImageScalingConfiguration
$mTableCellImageScalingConfiguration_DO_NOT_SCALE :: forall {r}.
TableCellImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
TableCellImageScalingConfiguration_DO_NOT_SCALE = TableCellImageScalingConfiguration' "DO_NOT_SCALE"

pattern TableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT :: TableCellImageScalingConfiguration
pattern $bTableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT :: TableCellImageScalingConfiguration
$mTableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT :: forall {r}.
TableCellImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
TableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT = TableCellImageScalingConfiguration' "FIT_TO_CELL_HEIGHT"

pattern TableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH :: TableCellImageScalingConfiguration
pattern $bTableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH :: TableCellImageScalingConfiguration
$mTableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH :: forall {r}.
TableCellImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
TableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH = TableCellImageScalingConfiguration' "FIT_TO_CELL_WIDTH"

{-# COMPLETE
  TableCellImageScalingConfiguration_DO_NOT_SCALE,
  TableCellImageScalingConfiguration_FIT_TO_CELL_HEIGHT,
  TableCellImageScalingConfiguration_FIT_TO_CELL_WIDTH,
  TableCellImageScalingConfiguration'
  #-}