{-# 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.SSM.Types.RebootOption
-- 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.SSM.Types.RebootOption
  ( RebootOption
      ( ..,
        RebootOption_NoReboot,
        RebootOption_RebootIfNeeded
      ),
  )
where

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

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

pattern RebootOption_NoReboot :: RebootOption
pattern $bRebootOption_NoReboot :: RebootOption
$mRebootOption_NoReboot :: forall {r}. RebootOption -> ((# #) -> r) -> ((# #) -> r) -> r
RebootOption_NoReboot = RebootOption' "NoReboot"

pattern RebootOption_RebootIfNeeded :: RebootOption
pattern $bRebootOption_RebootIfNeeded :: RebootOption
$mRebootOption_RebootIfNeeded :: forall {r}. RebootOption -> ((# #) -> r) -> ((# #) -> r) -> r
RebootOption_RebootIfNeeded = RebootOption' "RebootIfNeeded"

{-# COMPLETE
  RebootOption_NoReboot,
  RebootOption_RebootIfNeeded,
  RebootOption'
  #-}