{-# 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.Lightsail.Types.ExportSnapshotRecordSourceType
-- 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.Lightsail.Types.ExportSnapshotRecordSourceType
  ( ExportSnapshotRecordSourceType
      ( ..,
        ExportSnapshotRecordSourceType_DiskSnapshot,
        ExportSnapshotRecordSourceType_InstanceSnapshot
      ),
  )
where

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

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

pattern ExportSnapshotRecordSourceType_DiskSnapshot :: ExportSnapshotRecordSourceType
pattern $bExportSnapshotRecordSourceType_DiskSnapshot :: ExportSnapshotRecordSourceType
$mExportSnapshotRecordSourceType_DiskSnapshot :: forall {r}.
ExportSnapshotRecordSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportSnapshotRecordSourceType_DiskSnapshot = ExportSnapshotRecordSourceType' "DiskSnapshot"

pattern ExportSnapshotRecordSourceType_InstanceSnapshot :: ExportSnapshotRecordSourceType
pattern $bExportSnapshotRecordSourceType_InstanceSnapshot :: ExportSnapshotRecordSourceType
$mExportSnapshotRecordSourceType_InstanceSnapshot :: forall {r}.
ExportSnapshotRecordSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportSnapshotRecordSourceType_InstanceSnapshot = ExportSnapshotRecordSourceType' "InstanceSnapshot"

{-# COMPLETE
  ExportSnapshotRecordSourceType_DiskSnapshot,
  ExportSnapshotRecordSourceType_InstanceSnapshot,
  ExportSnapshotRecordSourceType'
  #-}