{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SMS.Types.ServerCatalogStatus
( ServerCatalogStatus
( ..,
ServerCatalogStatus_AVAILABLE,
ServerCatalogStatus_DELETED,
ServerCatalogStatus_EXPIRED,
ServerCatalogStatus_IMPORTING,
ServerCatalogStatus_NOT_IMPORTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ServerCatalogStatus = ServerCatalogStatus'
{ ServerCatalogStatus -> Text
fromServerCatalogStatus ::
Core.Text
}
deriving stock
( Int -> ServerCatalogStatus -> ShowS
[ServerCatalogStatus] -> ShowS
ServerCatalogStatus -> String
(Int -> ServerCatalogStatus -> ShowS)
-> (ServerCatalogStatus -> String)
-> ([ServerCatalogStatus] -> ShowS)
-> Show ServerCatalogStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServerCatalogStatus] -> ShowS
$cshowList :: [ServerCatalogStatus] -> ShowS
show :: ServerCatalogStatus -> String
$cshow :: ServerCatalogStatus -> String
showsPrec :: Int -> ServerCatalogStatus -> ShowS
$cshowsPrec :: Int -> ServerCatalogStatus -> ShowS
Prelude.Show,
ReadPrec [ServerCatalogStatus]
ReadPrec ServerCatalogStatus
Int -> ReadS ServerCatalogStatus
ReadS [ServerCatalogStatus]
(Int -> ReadS ServerCatalogStatus)
-> ReadS [ServerCatalogStatus]
-> ReadPrec ServerCatalogStatus
-> ReadPrec [ServerCatalogStatus]
-> Read ServerCatalogStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ServerCatalogStatus]
$creadListPrec :: ReadPrec [ServerCatalogStatus]
readPrec :: ReadPrec ServerCatalogStatus
$creadPrec :: ReadPrec ServerCatalogStatus
readList :: ReadS [ServerCatalogStatus]
$creadList :: ReadS [ServerCatalogStatus]
readsPrec :: Int -> ReadS ServerCatalogStatus
$creadsPrec :: Int -> ReadS ServerCatalogStatus
Prelude.Read,
ServerCatalogStatus -> ServerCatalogStatus -> Bool
(ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> (ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> Eq ServerCatalogStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c/= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
== :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c== :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
Prelude.Eq,
Eq ServerCatalogStatus
Eq ServerCatalogStatus
-> (ServerCatalogStatus -> ServerCatalogStatus -> Ordering)
-> (ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> (ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> (ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> (ServerCatalogStatus -> ServerCatalogStatus -> Bool)
-> (ServerCatalogStatus
-> ServerCatalogStatus -> ServerCatalogStatus)
-> (ServerCatalogStatus
-> ServerCatalogStatus -> ServerCatalogStatus)
-> Ord ServerCatalogStatus
ServerCatalogStatus -> ServerCatalogStatus -> Bool
ServerCatalogStatus -> ServerCatalogStatus -> Ordering
ServerCatalogStatus -> ServerCatalogStatus -> ServerCatalogStatus
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 :: ServerCatalogStatus -> ServerCatalogStatus -> ServerCatalogStatus
$cmin :: ServerCatalogStatus -> ServerCatalogStatus -> ServerCatalogStatus
max :: ServerCatalogStatus -> ServerCatalogStatus -> ServerCatalogStatus
$cmax :: ServerCatalogStatus -> ServerCatalogStatus -> ServerCatalogStatus
>= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c>= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
> :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c> :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
<= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c<= :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
< :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
$c< :: ServerCatalogStatus -> ServerCatalogStatus -> Bool
compare :: ServerCatalogStatus -> ServerCatalogStatus -> Ordering
$ccompare :: ServerCatalogStatus -> ServerCatalogStatus -> Ordering
$cp1Ord :: Eq ServerCatalogStatus
Prelude.Ord,
(forall x. ServerCatalogStatus -> Rep ServerCatalogStatus x)
-> (forall x. Rep ServerCatalogStatus x -> ServerCatalogStatus)
-> Generic ServerCatalogStatus
forall x. Rep ServerCatalogStatus x -> ServerCatalogStatus
forall x. ServerCatalogStatus -> Rep ServerCatalogStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServerCatalogStatus x -> ServerCatalogStatus
$cfrom :: forall x. ServerCatalogStatus -> Rep ServerCatalogStatus x
Prelude.Generic
)
deriving newtype
( Int -> ServerCatalogStatus -> Int
ServerCatalogStatus -> Int
(Int -> ServerCatalogStatus -> Int)
-> (ServerCatalogStatus -> Int) -> Hashable ServerCatalogStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ServerCatalogStatus -> Int
$chash :: ServerCatalogStatus -> Int
hashWithSalt :: Int -> ServerCatalogStatus -> Int
$chashWithSalt :: Int -> ServerCatalogStatus -> Int
Prelude.Hashable,
ServerCatalogStatus -> ()
(ServerCatalogStatus -> ()) -> NFData ServerCatalogStatus
forall a. (a -> ()) -> NFData a
rnf :: ServerCatalogStatus -> ()
$crnf :: ServerCatalogStatus -> ()
Prelude.NFData,
Text -> Either String ServerCatalogStatus
(Text -> Either String ServerCatalogStatus)
-> FromText ServerCatalogStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServerCatalogStatus
$cfromText :: Text -> Either String ServerCatalogStatus
Core.FromText,
ServerCatalogStatus -> Text
(ServerCatalogStatus -> Text) -> ToText ServerCatalogStatus
forall a. (a -> Text) -> ToText a
toText :: ServerCatalogStatus -> Text
$ctoText :: ServerCatalogStatus -> Text
Core.ToText,
ServerCatalogStatus -> ByteString
(ServerCatalogStatus -> ByteString)
-> ToByteString ServerCatalogStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServerCatalogStatus -> ByteString
$ctoBS :: ServerCatalogStatus -> ByteString
Core.ToByteString,
ServerCatalogStatus -> ByteStringBuilder
(ServerCatalogStatus -> ByteStringBuilder)
-> ToLog ServerCatalogStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServerCatalogStatus -> ByteStringBuilder
$cbuild :: ServerCatalogStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ServerCatalogStatus -> [Header]
(HeaderName -> ServerCatalogStatus -> [Header])
-> ToHeader ServerCatalogStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServerCatalogStatus -> [Header]
$ctoHeader :: HeaderName -> ServerCatalogStatus -> [Header]
Core.ToHeader,
ServerCatalogStatus -> QueryString
(ServerCatalogStatus -> QueryString) -> ToQuery ServerCatalogStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServerCatalogStatus -> QueryString
$ctoQuery :: ServerCatalogStatus -> QueryString
Core.ToQuery,
Value -> Parser [ServerCatalogStatus]
Value -> Parser ServerCatalogStatus
(Value -> Parser ServerCatalogStatus)
-> (Value -> Parser [ServerCatalogStatus])
-> FromJSON ServerCatalogStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ServerCatalogStatus]
$cparseJSONList :: Value -> Parser [ServerCatalogStatus]
parseJSON :: Value -> Parser ServerCatalogStatus
$cparseJSON :: Value -> Parser ServerCatalogStatus
Core.FromJSON,
FromJSONKeyFunction [ServerCatalogStatus]
FromJSONKeyFunction ServerCatalogStatus
FromJSONKeyFunction ServerCatalogStatus
-> FromJSONKeyFunction [ServerCatalogStatus]
-> FromJSONKey ServerCatalogStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServerCatalogStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ServerCatalogStatus]
fromJSONKey :: FromJSONKeyFunction ServerCatalogStatus
$cfromJSONKey :: FromJSONKeyFunction ServerCatalogStatus
Core.FromJSONKey,
[ServerCatalogStatus] -> Encoding
[ServerCatalogStatus] -> Value
ServerCatalogStatus -> Encoding
ServerCatalogStatus -> Value
(ServerCatalogStatus -> Value)
-> (ServerCatalogStatus -> Encoding)
-> ([ServerCatalogStatus] -> Value)
-> ([ServerCatalogStatus] -> Encoding)
-> ToJSON ServerCatalogStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ServerCatalogStatus] -> Encoding
$ctoEncodingList :: [ServerCatalogStatus] -> Encoding
toJSONList :: [ServerCatalogStatus] -> Value
$ctoJSONList :: [ServerCatalogStatus] -> Value
toEncoding :: ServerCatalogStatus -> Encoding
$ctoEncoding :: ServerCatalogStatus -> Encoding
toJSON :: ServerCatalogStatus -> Value
$ctoJSON :: ServerCatalogStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ServerCatalogStatus]
ToJSONKeyFunction ServerCatalogStatus
ToJSONKeyFunction ServerCatalogStatus
-> ToJSONKeyFunction [ServerCatalogStatus]
-> ToJSONKey ServerCatalogStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServerCatalogStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ServerCatalogStatus]
toJSONKey :: ToJSONKeyFunction ServerCatalogStatus
$ctoJSONKey :: ToJSONKeyFunction ServerCatalogStatus
Core.ToJSONKey,
[Node] -> Either String ServerCatalogStatus
([Node] -> Either String ServerCatalogStatus)
-> FromXML ServerCatalogStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServerCatalogStatus
$cparseXML :: [Node] -> Either String ServerCatalogStatus
Core.FromXML,
ServerCatalogStatus -> XML
(ServerCatalogStatus -> XML) -> ToXML ServerCatalogStatus
forall a. (a -> XML) -> ToXML a
toXML :: ServerCatalogStatus -> XML
$ctoXML :: ServerCatalogStatus -> XML
Core.ToXML
)
pattern ServerCatalogStatus_AVAILABLE :: ServerCatalogStatus
pattern $bServerCatalogStatus_AVAILABLE :: ServerCatalogStatus
$mServerCatalogStatus_AVAILABLE :: forall r. ServerCatalogStatus -> (Void# -> r) -> (Void# -> r) -> r
ServerCatalogStatus_AVAILABLE = ServerCatalogStatus' "AVAILABLE"
pattern ServerCatalogStatus_DELETED :: ServerCatalogStatus
pattern $bServerCatalogStatus_DELETED :: ServerCatalogStatus
$mServerCatalogStatus_DELETED :: forall r. ServerCatalogStatus -> (Void# -> r) -> (Void# -> r) -> r
ServerCatalogStatus_DELETED = ServerCatalogStatus' "DELETED"
pattern ServerCatalogStatus_EXPIRED :: ServerCatalogStatus
pattern $bServerCatalogStatus_EXPIRED :: ServerCatalogStatus
$mServerCatalogStatus_EXPIRED :: forall r. ServerCatalogStatus -> (Void# -> r) -> (Void# -> r) -> r
ServerCatalogStatus_EXPIRED = ServerCatalogStatus' "EXPIRED"
pattern ServerCatalogStatus_IMPORTING :: ServerCatalogStatus
pattern $bServerCatalogStatus_IMPORTING :: ServerCatalogStatus
$mServerCatalogStatus_IMPORTING :: forall r. ServerCatalogStatus -> (Void# -> r) -> (Void# -> r) -> r
ServerCatalogStatus_IMPORTING = ServerCatalogStatus' "IMPORTING"
pattern ServerCatalogStatus_NOT_IMPORTED :: ServerCatalogStatus
pattern $bServerCatalogStatus_NOT_IMPORTED :: ServerCatalogStatus
$mServerCatalogStatus_NOT_IMPORTED :: forall r. ServerCatalogStatus -> (Void# -> r) -> (Void# -> r) -> r
ServerCatalogStatus_NOT_IMPORTED = ServerCatalogStatus' "NOT_IMPORTED"
{-# COMPLETE
ServerCatalogStatus_AVAILABLE,
ServerCatalogStatus_DELETED,
ServerCatalogStatus_EXPIRED,
ServerCatalogStatus_IMPORTING,
ServerCatalogStatus_NOT_IMPORTED,
ServerCatalogStatus'
#-}