{-# 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.VerticalTextAlignment
-- 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.VerticalTextAlignment
  ( VerticalTextAlignment
      ( ..,
        VerticalTextAlignment_BOTTOM,
        VerticalTextAlignment_MIDDLE,
        VerticalTextAlignment_TOP
      ),
  )
where

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

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

pattern VerticalTextAlignment_BOTTOM :: VerticalTextAlignment
pattern $bVerticalTextAlignment_BOTTOM :: VerticalTextAlignment
$mVerticalTextAlignment_BOTTOM :: forall {r}.
VerticalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
VerticalTextAlignment_BOTTOM = VerticalTextAlignment' "BOTTOM"

pattern VerticalTextAlignment_MIDDLE :: VerticalTextAlignment
pattern $bVerticalTextAlignment_MIDDLE :: VerticalTextAlignment
$mVerticalTextAlignment_MIDDLE :: forall {r}.
VerticalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
VerticalTextAlignment_MIDDLE = VerticalTextAlignment' "MIDDLE"

pattern VerticalTextAlignment_TOP :: VerticalTextAlignment
pattern $bVerticalTextAlignment_TOP :: VerticalTextAlignment
$mVerticalTextAlignment_TOP :: forall {r}.
VerticalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
VerticalTextAlignment_TOP = VerticalTextAlignment' "TOP"

{-# COMPLETE
  VerticalTextAlignment_BOTTOM,
  VerticalTextAlignment_MIDDLE,
  VerticalTextAlignment_TOP,
  VerticalTextAlignment'
  #-}