{-# 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.EMRContainers.Types.PersistentAppUI
-- 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.EMRContainers.Types.PersistentAppUI
  ( PersistentAppUI
      ( ..,
        PersistentAppUI_DISABLED,
        PersistentAppUI_ENABLED
      ),
  )
where

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

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

pattern PersistentAppUI_DISABLED :: PersistentAppUI
pattern $bPersistentAppUI_DISABLED :: PersistentAppUI
$mPersistentAppUI_DISABLED :: forall r. PersistentAppUI -> (Void# -> r) -> (Void# -> r) -> r
PersistentAppUI_DISABLED = PersistentAppUI' "DISABLED"

pattern PersistentAppUI_ENABLED :: PersistentAppUI
pattern $bPersistentAppUI_ENABLED :: PersistentAppUI
$mPersistentAppUI_ENABLED :: forall r. PersistentAppUI -> (Void# -> r) -> (Void# -> r) -> r
PersistentAppUI_ENABLED = PersistentAppUI' "ENABLED"

{-# COMPLETE
  PersistentAppUI_DISABLED,
  PersistentAppUI_ENABLED,
  PersistentAppUI'
  #-}