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