{-# 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.TopBottomComputationType
-- 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.TopBottomComputationType
  ( TopBottomComputationType
      ( ..,
        TopBottomComputationType_BOTTOM,
        TopBottomComputationType_TOP
      ),
  )
where

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

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

pattern TopBottomComputationType_BOTTOM :: TopBottomComputationType
pattern $bTopBottomComputationType_BOTTOM :: TopBottomComputationType
$mTopBottomComputationType_BOTTOM :: forall {r}.
TopBottomComputationType -> ((# #) -> r) -> ((# #) -> r) -> r
TopBottomComputationType_BOTTOM = TopBottomComputationType' "BOTTOM"

pattern TopBottomComputationType_TOP :: TopBottomComputationType
pattern $bTopBottomComputationType_TOP :: TopBottomComputationType
$mTopBottomComputationType_TOP :: forall {r}.
TopBottomComputationType -> ((# #) -> r) -> ((# #) -> r) -> r
TopBottomComputationType_TOP = TopBottomComputationType' "TOP"

{-# COMPLETE
  TopBottomComputationType_BOTTOM,
  TopBottomComputationType_TOP,
  TopBottomComputationType'
  #-}