{-# 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.LexModels.Types.ObfuscationSetting
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.LexModels.Types.ObfuscationSetting
  ( ObfuscationSetting
      ( ..,
        ObfuscationSetting_DEFAULT_OBFUSCATION,
        ObfuscationSetting_NONE
      ),
  )
where

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

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

pattern ObfuscationSetting_DEFAULT_OBFUSCATION :: ObfuscationSetting
pattern $bObfuscationSetting_DEFAULT_OBFUSCATION :: ObfuscationSetting
$mObfuscationSetting_DEFAULT_OBFUSCATION :: forall r. ObfuscationSetting -> (Void# -> r) -> (Void# -> r) -> r
ObfuscationSetting_DEFAULT_OBFUSCATION = ObfuscationSetting' "DEFAULT_OBFUSCATION"

pattern ObfuscationSetting_NONE :: ObfuscationSetting
pattern $bObfuscationSetting_NONE :: ObfuscationSetting
$mObfuscationSetting_NONE :: forall r. ObfuscationSetting -> (Void# -> r) -> (Void# -> r) -> r
ObfuscationSetting_NONE = ObfuscationSetting' "NONE"

{-# COMPLETE
  ObfuscationSetting_DEFAULT_OBFUSCATION,
  ObfuscationSetting_NONE,
  ObfuscationSetting'
  #-}