{-# 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.EMR.Types.RepoUpgradeOnBoot
-- 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.EMR.Types.RepoUpgradeOnBoot
  ( RepoUpgradeOnBoot
      ( ..,
        RepoUpgradeOnBoot_NONE,
        RepoUpgradeOnBoot_SECURITY
      ),
  )
where

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

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

pattern RepoUpgradeOnBoot_NONE :: RepoUpgradeOnBoot
pattern $bRepoUpgradeOnBoot_NONE :: RepoUpgradeOnBoot
$mRepoUpgradeOnBoot_NONE :: forall r. RepoUpgradeOnBoot -> (Void# -> r) -> (Void# -> r) -> r
RepoUpgradeOnBoot_NONE = RepoUpgradeOnBoot' "NONE"

pattern RepoUpgradeOnBoot_SECURITY :: RepoUpgradeOnBoot
pattern $bRepoUpgradeOnBoot_SECURITY :: RepoUpgradeOnBoot
$mRepoUpgradeOnBoot_SECURITY :: forall r. RepoUpgradeOnBoot -> (Void# -> r) -> (Void# -> r) -> r
RepoUpgradeOnBoot_SECURITY = RepoUpgradeOnBoot' "SECURITY"

{-# COMPLETE
  RepoUpgradeOnBoot_NONE,
  RepoUpgradeOnBoot_SECURITY,
  RepoUpgradeOnBoot'
  #-}