{-# 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.PanelBorderStyle
-- 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.PanelBorderStyle
  ( PanelBorderStyle
      ( ..,
        PanelBorderStyle_DASHED,
        PanelBorderStyle_DOTTED,
        PanelBorderStyle_SOLID
      ),
  )
where

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

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

pattern PanelBorderStyle_DASHED :: PanelBorderStyle
pattern $bPanelBorderStyle_DASHED :: PanelBorderStyle
$mPanelBorderStyle_DASHED :: forall {r}. PanelBorderStyle -> ((# #) -> r) -> ((# #) -> r) -> r
PanelBorderStyle_DASHED = PanelBorderStyle' "DASHED"

pattern PanelBorderStyle_DOTTED :: PanelBorderStyle
pattern $bPanelBorderStyle_DOTTED :: PanelBorderStyle
$mPanelBorderStyle_DOTTED :: forall {r}. PanelBorderStyle -> ((# #) -> r) -> ((# #) -> r) -> r
PanelBorderStyle_DOTTED = PanelBorderStyle' "DOTTED"

pattern PanelBorderStyle_SOLID :: PanelBorderStyle
pattern $bPanelBorderStyle_SOLID :: PanelBorderStyle
$mPanelBorderStyle_SOLID :: forall {r}. PanelBorderStyle -> ((# #) -> r) -> ((# #) -> r) -> r
PanelBorderStyle_SOLID = PanelBorderStyle' "SOLID"

{-# COMPLETE
  PanelBorderStyle_DASHED,
  PanelBorderStyle_DOTTED,
  PanelBorderStyle_SOLID,
  PanelBorderStyle'
  #-}