{-# 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.ElastiCache.Types.ServiceUpdateStatus
-- 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.ElastiCache.Types.ServiceUpdateStatus
  ( ServiceUpdateStatus
      ( ..,
        ServiceUpdateStatus_Available,
        ServiceUpdateStatus_Cancelled,
        ServiceUpdateStatus_Expired
      ),
  )
where

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

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

pattern ServiceUpdateStatus_Available :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_Available :: ServiceUpdateStatus
$mServiceUpdateStatus_Available :: forall {r}.
ServiceUpdateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateStatus_Available = ServiceUpdateStatus' "available"

pattern ServiceUpdateStatus_Cancelled :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_Cancelled :: ServiceUpdateStatus
$mServiceUpdateStatus_Cancelled :: forall {r}.
ServiceUpdateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateStatus_Cancelled = ServiceUpdateStatus' "cancelled"

pattern ServiceUpdateStatus_Expired :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_Expired :: ServiceUpdateStatus
$mServiceUpdateStatus_Expired :: forall {r}.
ServiceUpdateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateStatus_Expired = ServiceUpdateStatus' "expired"

{-# COMPLETE
  ServiceUpdateStatus_Available,
  ServiceUpdateStatus_Cancelled,
  ServiceUpdateStatus_Expired,
  ServiceUpdateStatus'
  #-}