{-# 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.MemoryDb.Types.ServiceUpdateStatus
-- 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.MemoryDb.Types.ServiceUpdateStatus
  ( ServiceUpdateStatus
      ( ..,
        ServiceUpdateStatus_Available,
        ServiceUpdateStatus_Complete,
        ServiceUpdateStatus_In_progress,
        ServiceUpdateStatus_Scheduled
      ),
  )
where

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

newtype ServiceUpdateStatus = ServiceUpdateStatus'
  { ServiceUpdateStatus -> Text
fromServiceUpdateStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ServiceUpdateStatus -> ShowS
[ServiceUpdateStatus] -> ShowS
ServiceUpdateStatus -> String
(Int -> ServiceUpdateStatus -> ShowS)
-> (ServiceUpdateStatus -> String)
-> ([ServiceUpdateStatus] -> ShowS)
-> Show ServiceUpdateStatus
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]
(Int -> ReadS ServiceUpdateStatus)
-> ReadS [ServiceUpdateStatus]
-> ReadPrec ServiceUpdateStatus
-> ReadPrec [ServiceUpdateStatus]
-> Read 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
(ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> Eq ServiceUpdateStatus
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
Eq ServiceUpdateStatus
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Ordering)
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> (ServiceUpdateStatus -> ServiceUpdateStatus -> Bool)
-> (ServiceUpdateStatus
    -> ServiceUpdateStatus -> ServiceUpdateStatus)
-> (ServiceUpdateStatus
    -> ServiceUpdateStatus -> ServiceUpdateStatus)
-> Ord 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
$cp1Ord :: Eq ServiceUpdateStatus
Prelude.Ord,
      (forall x. ServiceUpdateStatus -> Rep ServiceUpdateStatus x)
-> (forall x. Rep ServiceUpdateStatus x -> ServiceUpdateStatus)
-> Generic ServiceUpdateStatus
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
    ( Int -> ServiceUpdateStatus -> Int
ServiceUpdateStatus -> Int
(Int -> ServiceUpdateStatus -> Int)
-> (ServiceUpdateStatus -> Int) -> Hashable ServiceUpdateStatus
forall 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 -> ()
(ServiceUpdateStatus -> ()) -> NFData ServiceUpdateStatus
forall a. (a -> ()) -> NFData a
rnf :: ServiceUpdateStatus -> ()
$crnf :: ServiceUpdateStatus -> ()
Prelude.NFData,
      Text -> Either String ServiceUpdateStatus
(Text -> Either String ServiceUpdateStatus)
-> FromText ServiceUpdateStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServiceUpdateStatus
$cfromText :: Text -> Either String ServiceUpdateStatus
Core.FromText,
      ServiceUpdateStatus -> Text
(ServiceUpdateStatus -> Text) -> ToText ServiceUpdateStatus
forall a. (a -> Text) -> ToText a
toText :: ServiceUpdateStatus -> Text
$ctoText :: ServiceUpdateStatus -> Text
Core.ToText,
      ServiceUpdateStatus -> ByteString
(ServiceUpdateStatus -> ByteString)
-> ToByteString ServiceUpdateStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServiceUpdateStatus -> ByteString
$ctoBS :: ServiceUpdateStatus -> ByteString
Core.ToByteString,
      ServiceUpdateStatus -> ByteStringBuilder
(ServiceUpdateStatus -> ByteStringBuilder)
-> ToLog ServiceUpdateStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServiceUpdateStatus -> ByteStringBuilder
$cbuild :: ServiceUpdateStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ServiceUpdateStatus -> [Header]
(HeaderName -> ServiceUpdateStatus -> [Header])
-> ToHeader ServiceUpdateStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServiceUpdateStatus -> [Header]
$ctoHeader :: HeaderName -> ServiceUpdateStatus -> [Header]
Core.ToHeader,
      ServiceUpdateStatus -> QueryString
(ServiceUpdateStatus -> QueryString) -> ToQuery ServiceUpdateStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServiceUpdateStatus -> QueryString
$ctoQuery :: ServiceUpdateStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ServiceUpdateStatus]
Value -> Parser ServiceUpdateStatus
(Value -> Parser ServiceUpdateStatus)
-> (Value -> Parser [ServiceUpdateStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ServiceUpdateStatus]
FromJSONKeyFunction ServiceUpdateStatus
FromJSONKeyFunction ServiceUpdateStatus
-> FromJSONKeyFunction [ServiceUpdateStatus]
-> FromJSONKey ServiceUpdateStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateStatus]
fromJSONKey :: FromJSONKeyFunction ServiceUpdateStatus
$cfromJSONKey :: FromJSONKeyFunction ServiceUpdateStatus
Core.FromJSONKey,
      [ServiceUpdateStatus] -> Encoding
[ServiceUpdateStatus] -> Value
ServiceUpdateStatus -> Encoding
ServiceUpdateStatus -> Value
(ServiceUpdateStatus -> Value)
-> (ServiceUpdateStatus -> Encoding)
-> ([ServiceUpdateStatus] -> Value)
-> ([ServiceUpdateStatus] -> Encoding)
-> ToJSON ServiceUpdateStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ServiceUpdateStatus]
ToJSONKeyFunction ServiceUpdateStatus
ToJSONKeyFunction ServiceUpdateStatus
-> ToJSONKeyFunction [ServiceUpdateStatus]
-> ToJSONKey ServiceUpdateStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServiceUpdateStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ServiceUpdateStatus]
toJSONKey :: ToJSONKeyFunction ServiceUpdateStatus
$ctoJSONKey :: ToJSONKeyFunction ServiceUpdateStatus
Core.ToJSONKey,
      [Node] -> Either String ServiceUpdateStatus
([Node] -> Either String ServiceUpdateStatus)
-> FromXML ServiceUpdateStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServiceUpdateStatus
$cparseXML :: [Node] -> Either String ServiceUpdateStatus
Core.FromXML,
      ServiceUpdateStatus -> XML
(ServiceUpdateStatus -> XML) -> ToXML ServiceUpdateStatus
forall a. (a -> XML) -> ToXML a
toXML :: ServiceUpdateStatus -> XML
$ctoXML :: ServiceUpdateStatus -> XML
Core.ToXML
    )

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

pattern ServiceUpdateStatus_Complete :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_Complete :: ServiceUpdateStatus
$mServiceUpdateStatus_Complete :: forall r. ServiceUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceUpdateStatus_Complete = ServiceUpdateStatus' "complete"

pattern ServiceUpdateStatus_In_progress :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_In_progress :: ServiceUpdateStatus
$mServiceUpdateStatus_In_progress :: forall r. ServiceUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceUpdateStatus_In_progress = ServiceUpdateStatus' "in-progress"

pattern ServiceUpdateStatus_Scheduled :: ServiceUpdateStatus
pattern $bServiceUpdateStatus_Scheduled :: ServiceUpdateStatus
$mServiceUpdateStatus_Scheduled :: forall r. ServiceUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
ServiceUpdateStatus_Scheduled = ServiceUpdateStatus' "scheduled"

{-# COMPLETE
  ServiceUpdateStatus_Available,
  ServiceUpdateStatus_Complete,
  ServiceUpdateStatus_In_progress,
  ServiceUpdateStatus_Scheduled,
  ServiceUpdateStatus'
  #-}