{-# 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.CustomContentImageScalingConfiguration
-- 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.CustomContentImageScalingConfiguration
  ( CustomContentImageScalingConfiguration
      ( ..,
        CustomContentImageScalingConfiguration_DO_NOT_SCALE,
        CustomContentImageScalingConfiguration_FIT_TO_HEIGHT,
        CustomContentImageScalingConfiguration_FIT_TO_WIDTH,
        CustomContentImageScalingConfiguration_SCALE_TO_VISUAL
      ),
  )
where

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

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

pattern CustomContentImageScalingConfiguration_DO_NOT_SCALE :: CustomContentImageScalingConfiguration
pattern $bCustomContentImageScalingConfiguration_DO_NOT_SCALE :: CustomContentImageScalingConfiguration
$mCustomContentImageScalingConfiguration_DO_NOT_SCALE :: forall {r}.
CustomContentImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomContentImageScalingConfiguration_DO_NOT_SCALE = CustomContentImageScalingConfiguration' "DO_NOT_SCALE"

pattern CustomContentImageScalingConfiguration_FIT_TO_HEIGHT :: CustomContentImageScalingConfiguration
pattern $bCustomContentImageScalingConfiguration_FIT_TO_HEIGHT :: CustomContentImageScalingConfiguration
$mCustomContentImageScalingConfiguration_FIT_TO_HEIGHT :: forall {r}.
CustomContentImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomContentImageScalingConfiguration_FIT_TO_HEIGHT = CustomContentImageScalingConfiguration' "FIT_TO_HEIGHT"

pattern CustomContentImageScalingConfiguration_FIT_TO_WIDTH :: CustomContentImageScalingConfiguration
pattern $bCustomContentImageScalingConfiguration_FIT_TO_WIDTH :: CustomContentImageScalingConfiguration
$mCustomContentImageScalingConfiguration_FIT_TO_WIDTH :: forall {r}.
CustomContentImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomContentImageScalingConfiguration_FIT_TO_WIDTH = CustomContentImageScalingConfiguration' "FIT_TO_WIDTH"

pattern CustomContentImageScalingConfiguration_SCALE_TO_VISUAL :: CustomContentImageScalingConfiguration
pattern $bCustomContentImageScalingConfiguration_SCALE_TO_VISUAL :: CustomContentImageScalingConfiguration
$mCustomContentImageScalingConfiguration_SCALE_TO_VISUAL :: forall {r}.
CustomContentImageScalingConfiguration
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomContentImageScalingConfiguration_SCALE_TO_VISUAL = CustomContentImageScalingConfiguration' "SCALE_TO_VISUAL"

{-# COMPLETE
  CustomContentImageScalingConfiguration_DO_NOT_SCALE,
  CustomContentImageScalingConfiguration_FIT_TO_HEIGHT,
  CustomContentImageScalingConfiguration_FIT_TO_WIDTH,
  CustomContentImageScalingConfiguration_SCALE_TO_VISUAL,
  CustomContentImageScalingConfiguration'
  #-}