{-# 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.ColorFillType
-- 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.ColorFillType
  ( ColorFillType
      ( ..,
        ColorFillType_DISCRETE,
        ColorFillType_GRADIENT
      ),
  )
where

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

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

pattern ColorFillType_DISCRETE :: ColorFillType
pattern $bColorFillType_DISCRETE :: ColorFillType
$mColorFillType_DISCRETE :: forall {r}. ColorFillType -> ((# #) -> r) -> ((# #) -> r) -> r
ColorFillType_DISCRETE = ColorFillType' "DISCRETE"

pattern ColorFillType_GRADIENT :: ColorFillType
pattern $bColorFillType_GRADIENT :: ColorFillType
$mColorFillType_GRADIENT :: forall {r}. ColorFillType -> ((# #) -> r) -> ((# #) -> r) -> r
ColorFillType_GRADIENT = ColorFillType' "GRADIENT"

{-# COMPLETE
  ColorFillType_DISCRETE,
  ColorFillType_GRADIENT,
  ColorFillType'
  #-}