{-# 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.HorizontalTextAlignment
-- 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.HorizontalTextAlignment
  ( HorizontalTextAlignment
      ( ..,
        HorizontalTextAlignment_AUTO,
        HorizontalTextAlignment_CENTER,
        HorizontalTextAlignment_LEFT,
        HorizontalTextAlignment_RIGHT
      ),
  )
where

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

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

pattern HorizontalTextAlignment_AUTO :: HorizontalTextAlignment
pattern $bHorizontalTextAlignment_AUTO :: HorizontalTextAlignment
$mHorizontalTextAlignment_AUTO :: forall {r}.
HorizontalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
HorizontalTextAlignment_AUTO = HorizontalTextAlignment' "AUTO"

pattern HorizontalTextAlignment_CENTER :: HorizontalTextAlignment
pattern $bHorizontalTextAlignment_CENTER :: HorizontalTextAlignment
$mHorizontalTextAlignment_CENTER :: forall {r}.
HorizontalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
HorizontalTextAlignment_CENTER = HorizontalTextAlignment' "CENTER"

pattern HorizontalTextAlignment_LEFT :: HorizontalTextAlignment
pattern $bHorizontalTextAlignment_LEFT :: HorizontalTextAlignment
$mHorizontalTextAlignment_LEFT :: forall {r}.
HorizontalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
HorizontalTextAlignment_LEFT = HorizontalTextAlignment' "LEFT"

pattern HorizontalTextAlignment_RIGHT :: HorizontalTextAlignment
pattern $bHorizontalTextAlignment_RIGHT :: HorizontalTextAlignment
$mHorizontalTextAlignment_RIGHT :: forall {r}.
HorizontalTextAlignment -> ((# #) -> r) -> ((# #) -> r) -> r
HorizontalTextAlignment_RIGHT = HorizontalTextAlignment' "RIGHT"

{-# COMPLETE
  HorizontalTextAlignment_AUTO,
  HorizontalTextAlignment_CENTER,
  HorizontalTextAlignment_LEFT,
  HorizontalTextAlignment_RIGHT,
  HorizontalTextAlignment'
  #-}