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