{-# 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.TableBorderStyle
-- 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.TableBorderStyle
  ( TableBorderStyle
      ( ..,
        TableBorderStyle_NONE,
        TableBorderStyle_SOLID
      ),
  )
where

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

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

pattern TableBorderStyle_NONE :: TableBorderStyle
pattern $bTableBorderStyle_NONE :: TableBorderStyle
$mTableBorderStyle_NONE :: forall {r}. TableBorderStyle -> ((# #) -> r) -> ((# #) -> r) -> r
TableBorderStyle_NONE = TableBorderStyle' "NONE"

pattern TableBorderStyle_SOLID :: TableBorderStyle
pattern $bTableBorderStyle_SOLID :: TableBorderStyle
$mTableBorderStyle_SOLID :: forall {r}. TableBorderStyle -> ((# #) -> r) -> ((# #) -> r) -> r
TableBorderStyle_SOLID = TableBorderStyle' "SOLID"

{-# COMPLETE
  TableBorderStyle_NONE,
  TableBorderStyle_SOLID,
  TableBorderStyle'
  #-}