{-# 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.SSMSAP.Types.HostRole
-- 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.SSMSAP.Types.HostRole
  ( HostRole
      ( ..,
        HostRole_LEADER,
        HostRole_STANDBY,
        HostRole_UNKNOWN,
        HostRole_WORKER
      ),
  )
where

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

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

pattern HostRole_LEADER :: HostRole
pattern $bHostRole_LEADER :: HostRole
$mHostRole_LEADER :: forall {r}. HostRole -> ((# #) -> r) -> ((# #) -> r) -> r
HostRole_LEADER = HostRole' "LEADER"

pattern HostRole_STANDBY :: HostRole
pattern $bHostRole_STANDBY :: HostRole
$mHostRole_STANDBY :: forall {r}. HostRole -> ((# #) -> r) -> ((# #) -> r) -> r
HostRole_STANDBY = HostRole' "STANDBY"

pattern HostRole_UNKNOWN :: HostRole
pattern $bHostRole_UNKNOWN :: HostRole
$mHostRole_UNKNOWN :: forall {r}. HostRole -> ((# #) -> r) -> ((# #) -> r) -> r
HostRole_UNKNOWN = HostRole' "UNKNOWN"

pattern HostRole_WORKER :: HostRole
pattern $bHostRole_WORKER :: HostRole
$mHostRole_WORKER :: forall {r}. HostRole -> ((# #) -> r) -> ((# #) -> r) -> r
HostRole_WORKER = HostRole' "WORKER"

{-# COMPLETE
  HostRole_LEADER,
  HostRole_STANDBY,
  HostRole_UNKNOWN,
  HostRole_WORKER,
  HostRole'
  #-}