{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lightsail.Types.ExportSnapshotRecordSourceInfo
-- 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.ExportSnapshotRecordSourceInfo where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Lightsail.Types.DiskSnapshotInfo
import Amazonka.Lightsail.Types.ExportSnapshotRecordSourceType
import Amazonka.Lightsail.Types.InstanceSnapshotInfo
import qualified Amazonka.Prelude as Prelude

-- | Describes the source of an export snapshot record.
--
-- /See:/ 'newExportSnapshotRecordSourceInfo' smart constructor.
data ExportSnapshotRecordSourceInfo = ExportSnapshotRecordSourceInfo'
  { -- | The Amazon Resource Name (ARN) of the source instance or disk snapshot.
    ExportSnapshotRecordSourceInfo -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The date when the source instance or disk snapshot was created.
    ExportSnapshotRecordSourceInfo -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | A list of objects describing a disk snapshot.
    ExportSnapshotRecordSourceInfo -> Maybe DiskSnapshotInfo
diskSnapshotInfo :: Prelude.Maybe DiskSnapshotInfo,
    -- | The Amazon Resource Name (ARN) of the snapshot\'s source instance or
    -- disk.
    ExportSnapshotRecordSourceInfo -> Maybe Text
fromResourceArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the snapshot\'s source instance or disk.
    ExportSnapshotRecordSourceInfo -> Maybe Text
fromResourceName :: Prelude.Maybe Prelude.Text,
    -- | A list of objects describing an instance snapshot.
    ExportSnapshotRecordSourceInfo -> Maybe InstanceSnapshotInfo
instanceSnapshotInfo :: Prelude.Maybe InstanceSnapshotInfo,
    -- | The name of the source instance or disk snapshot.
    ExportSnapshotRecordSourceInfo -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The Lightsail resource type (e.g., @InstanceSnapshot@ or
    -- @DiskSnapshot@).
    ExportSnapshotRecordSourceInfo
-> Maybe ExportSnapshotRecordSourceType
resourceType :: Prelude.Maybe ExportSnapshotRecordSourceType
  }
  deriving (ExportSnapshotRecordSourceInfo
-> ExportSnapshotRecordSourceInfo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportSnapshotRecordSourceInfo
-> ExportSnapshotRecordSourceInfo -> Bool
$c/= :: ExportSnapshotRecordSourceInfo
-> ExportSnapshotRecordSourceInfo -> Bool
== :: ExportSnapshotRecordSourceInfo
-> ExportSnapshotRecordSourceInfo -> Bool
$c== :: ExportSnapshotRecordSourceInfo
-> ExportSnapshotRecordSourceInfo -> Bool
Prelude.Eq, ReadPrec [ExportSnapshotRecordSourceInfo]
ReadPrec ExportSnapshotRecordSourceInfo
Int -> ReadS ExportSnapshotRecordSourceInfo
ReadS [ExportSnapshotRecordSourceInfo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportSnapshotRecordSourceInfo]
$creadListPrec :: ReadPrec [ExportSnapshotRecordSourceInfo]
readPrec :: ReadPrec ExportSnapshotRecordSourceInfo
$creadPrec :: ReadPrec ExportSnapshotRecordSourceInfo
readList :: ReadS [ExportSnapshotRecordSourceInfo]
$creadList :: ReadS [ExportSnapshotRecordSourceInfo]
readsPrec :: Int -> ReadS ExportSnapshotRecordSourceInfo
$creadsPrec :: Int -> ReadS ExportSnapshotRecordSourceInfo
Prelude.Read, Int -> ExportSnapshotRecordSourceInfo -> ShowS
[ExportSnapshotRecordSourceInfo] -> ShowS
ExportSnapshotRecordSourceInfo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportSnapshotRecordSourceInfo] -> ShowS
$cshowList :: [ExportSnapshotRecordSourceInfo] -> ShowS
show :: ExportSnapshotRecordSourceInfo -> String
$cshow :: ExportSnapshotRecordSourceInfo -> String
showsPrec :: Int -> ExportSnapshotRecordSourceInfo -> ShowS
$cshowsPrec :: Int -> ExportSnapshotRecordSourceInfo -> ShowS
Prelude.Show, forall x.
Rep ExportSnapshotRecordSourceInfo x
-> ExportSnapshotRecordSourceInfo
forall x.
ExportSnapshotRecordSourceInfo
-> Rep ExportSnapshotRecordSourceInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExportSnapshotRecordSourceInfo x
-> ExportSnapshotRecordSourceInfo
$cfrom :: forall x.
ExportSnapshotRecordSourceInfo
-> Rep ExportSnapshotRecordSourceInfo x
Prelude.Generic)

-- |
-- Create a value of 'ExportSnapshotRecordSourceInfo' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'exportSnapshotRecordSourceInfo_arn' - The Amazon Resource Name (ARN) of the source instance or disk snapshot.
--
-- 'createdAt', 'exportSnapshotRecordSourceInfo_createdAt' - The date when the source instance or disk snapshot was created.
--
-- 'diskSnapshotInfo', 'exportSnapshotRecordSourceInfo_diskSnapshotInfo' - A list of objects describing a disk snapshot.
--
-- 'fromResourceArn', 'exportSnapshotRecordSourceInfo_fromResourceArn' - The Amazon Resource Name (ARN) of the snapshot\'s source instance or
-- disk.
--
-- 'fromResourceName', 'exportSnapshotRecordSourceInfo_fromResourceName' - The name of the snapshot\'s source instance or disk.
--
-- 'instanceSnapshotInfo', 'exportSnapshotRecordSourceInfo_instanceSnapshotInfo' - A list of objects describing an instance snapshot.
--
-- 'name', 'exportSnapshotRecordSourceInfo_name' - The name of the source instance or disk snapshot.
--
-- 'resourceType', 'exportSnapshotRecordSourceInfo_resourceType' - The Lightsail resource type (e.g., @InstanceSnapshot@ or
-- @DiskSnapshot@).
newExportSnapshotRecordSourceInfo ::
  ExportSnapshotRecordSourceInfo
newExportSnapshotRecordSourceInfo :: ExportSnapshotRecordSourceInfo
newExportSnapshotRecordSourceInfo =
  ExportSnapshotRecordSourceInfo'
    { $sel:arn:ExportSnapshotRecordSourceInfo' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:ExportSnapshotRecordSourceInfo' :: Maybe POSIX
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:diskSnapshotInfo:ExportSnapshotRecordSourceInfo' :: Maybe DiskSnapshotInfo
diskSnapshotInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:fromResourceArn:ExportSnapshotRecordSourceInfo' :: Maybe Text
fromResourceArn = forall a. Maybe a
Prelude.Nothing,
      $sel:fromResourceName:ExportSnapshotRecordSourceInfo' :: Maybe Text
fromResourceName = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceSnapshotInfo:ExportSnapshotRecordSourceInfo' :: Maybe InstanceSnapshotInfo
instanceSnapshotInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ExportSnapshotRecordSourceInfo' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceType:ExportSnapshotRecordSourceInfo' :: Maybe ExportSnapshotRecordSourceType
resourceType = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the source instance or disk snapshot.
exportSnapshotRecordSourceInfo_arn :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe Prelude.Text)
exportSnapshotRecordSourceInfo_arn :: Lens' ExportSnapshotRecordSourceInfo (Maybe Text)
exportSnapshotRecordSourceInfo_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe Text
arn :: Maybe Text
$sel:arn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe Text
a -> ExportSnapshotRecordSourceInfo
s {$sel:arn:ExportSnapshotRecordSourceInfo' :: Maybe Text
arn = Maybe Text
a} :: ExportSnapshotRecordSourceInfo)

-- | The date when the source instance or disk snapshot was created.
exportSnapshotRecordSourceInfo_createdAt :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe Prelude.UTCTime)
exportSnapshotRecordSourceInfo_createdAt :: Lens' ExportSnapshotRecordSourceInfo (Maybe UTCTime)
exportSnapshotRecordSourceInfo_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe POSIX
a -> ExportSnapshotRecordSourceInfo
s {$sel:createdAt:ExportSnapshotRecordSourceInfo' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: ExportSnapshotRecordSourceInfo) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A list of objects describing a disk snapshot.
exportSnapshotRecordSourceInfo_diskSnapshotInfo :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe DiskSnapshotInfo)
exportSnapshotRecordSourceInfo_diskSnapshotInfo :: Lens' ExportSnapshotRecordSourceInfo (Maybe DiskSnapshotInfo)
exportSnapshotRecordSourceInfo_diskSnapshotInfo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe DiskSnapshotInfo
diskSnapshotInfo :: Maybe DiskSnapshotInfo
$sel:diskSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe DiskSnapshotInfo
diskSnapshotInfo} -> Maybe DiskSnapshotInfo
diskSnapshotInfo) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe DiskSnapshotInfo
a -> ExportSnapshotRecordSourceInfo
s {$sel:diskSnapshotInfo:ExportSnapshotRecordSourceInfo' :: Maybe DiskSnapshotInfo
diskSnapshotInfo = Maybe DiskSnapshotInfo
a} :: ExportSnapshotRecordSourceInfo)

-- | The Amazon Resource Name (ARN) of the snapshot\'s source instance or
-- disk.
exportSnapshotRecordSourceInfo_fromResourceArn :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe Prelude.Text)
exportSnapshotRecordSourceInfo_fromResourceArn :: Lens' ExportSnapshotRecordSourceInfo (Maybe Text)
exportSnapshotRecordSourceInfo_fromResourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe Text
fromResourceArn :: Maybe Text
$sel:fromResourceArn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
fromResourceArn} -> Maybe Text
fromResourceArn) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe Text
a -> ExportSnapshotRecordSourceInfo
s {$sel:fromResourceArn:ExportSnapshotRecordSourceInfo' :: Maybe Text
fromResourceArn = Maybe Text
a} :: ExportSnapshotRecordSourceInfo)

-- | The name of the snapshot\'s source instance or disk.
exportSnapshotRecordSourceInfo_fromResourceName :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe Prelude.Text)
exportSnapshotRecordSourceInfo_fromResourceName :: Lens' ExportSnapshotRecordSourceInfo (Maybe Text)
exportSnapshotRecordSourceInfo_fromResourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe Text
fromResourceName :: Maybe Text
$sel:fromResourceName:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
fromResourceName} -> Maybe Text
fromResourceName) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe Text
a -> ExportSnapshotRecordSourceInfo
s {$sel:fromResourceName:ExportSnapshotRecordSourceInfo' :: Maybe Text
fromResourceName = Maybe Text
a} :: ExportSnapshotRecordSourceInfo)

-- | A list of objects describing an instance snapshot.
exportSnapshotRecordSourceInfo_instanceSnapshotInfo :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe InstanceSnapshotInfo)
exportSnapshotRecordSourceInfo_instanceSnapshotInfo :: Lens' ExportSnapshotRecordSourceInfo (Maybe InstanceSnapshotInfo)
exportSnapshotRecordSourceInfo_instanceSnapshotInfo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe InstanceSnapshotInfo
instanceSnapshotInfo :: Maybe InstanceSnapshotInfo
$sel:instanceSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe InstanceSnapshotInfo
instanceSnapshotInfo} -> Maybe InstanceSnapshotInfo
instanceSnapshotInfo) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe InstanceSnapshotInfo
a -> ExportSnapshotRecordSourceInfo
s {$sel:instanceSnapshotInfo:ExportSnapshotRecordSourceInfo' :: Maybe InstanceSnapshotInfo
instanceSnapshotInfo = Maybe InstanceSnapshotInfo
a} :: ExportSnapshotRecordSourceInfo)

-- | The name of the source instance or disk snapshot.
exportSnapshotRecordSourceInfo_name :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe Prelude.Text)
exportSnapshotRecordSourceInfo_name :: Lens' ExportSnapshotRecordSourceInfo (Maybe Text)
exportSnapshotRecordSourceInfo_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe Text
name :: Maybe Text
$sel:name:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
name} -> Maybe Text
name) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe Text
a -> ExportSnapshotRecordSourceInfo
s {$sel:name:ExportSnapshotRecordSourceInfo' :: Maybe Text
name = Maybe Text
a} :: ExportSnapshotRecordSourceInfo)

-- | The Lightsail resource type (e.g., @InstanceSnapshot@ or
-- @DiskSnapshot@).
exportSnapshotRecordSourceInfo_resourceType :: Lens.Lens' ExportSnapshotRecordSourceInfo (Prelude.Maybe ExportSnapshotRecordSourceType)
exportSnapshotRecordSourceInfo_resourceType :: Lens'
  ExportSnapshotRecordSourceInfo
  (Maybe ExportSnapshotRecordSourceType)
exportSnapshotRecordSourceInfo_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportSnapshotRecordSourceInfo' {Maybe ExportSnapshotRecordSourceType
resourceType :: Maybe ExportSnapshotRecordSourceType
$sel:resourceType:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo
-> Maybe ExportSnapshotRecordSourceType
resourceType} -> Maybe ExportSnapshotRecordSourceType
resourceType) (\s :: ExportSnapshotRecordSourceInfo
s@ExportSnapshotRecordSourceInfo' {} Maybe ExportSnapshotRecordSourceType
a -> ExportSnapshotRecordSourceInfo
s {$sel:resourceType:ExportSnapshotRecordSourceInfo' :: Maybe ExportSnapshotRecordSourceType
resourceType = Maybe ExportSnapshotRecordSourceType
a} :: ExportSnapshotRecordSourceInfo)

instance Data.FromJSON ExportSnapshotRecordSourceInfo where
  parseJSON :: Value -> Parser ExportSnapshotRecordSourceInfo
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ExportSnapshotRecordSourceInfo"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe DiskSnapshotInfo
-> Maybe Text
-> Maybe Text
-> Maybe InstanceSnapshotInfo
-> Maybe Text
-> Maybe ExportSnapshotRecordSourceType
-> ExportSnapshotRecordSourceInfo
ExportSnapshotRecordSourceInfo'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"diskSnapshotInfo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"fromResourceArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"fromResourceName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"instanceSnapshotInfo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"resourceType")
      )

instance
  Prelude.Hashable
    ExportSnapshotRecordSourceInfo
  where
  hashWithSalt :: Int -> ExportSnapshotRecordSourceInfo -> Int
hashWithSalt
    Int
_salt
    ExportSnapshotRecordSourceInfo' {Maybe Text
Maybe POSIX
Maybe DiskSnapshotInfo
Maybe ExportSnapshotRecordSourceType
Maybe InstanceSnapshotInfo
resourceType :: Maybe ExportSnapshotRecordSourceType
name :: Maybe Text
instanceSnapshotInfo :: Maybe InstanceSnapshotInfo
fromResourceName :: Maybe Text
fromResourceArn :: Maybe Text
diskSnapshotInfo :: Maybe DiskSnapshotInfo
createdAt :: Maybe POSIX
arn :: Maybe Text
$sel:resourceType:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo
-> Maybe ExportSnapshotRecordSourceType
$sel:name:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:instanceSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe InstanceSnapshotInfo
$sel:fromResourceName:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:fromResourceArn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:diskSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe DiskSnapshotInfo
$sel:createdAt:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe POSIX
$sel:arn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DiskSnapshotInfo
diskSnapshotInfo
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fromResourceArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fromResourceName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InstanceSnapshotInfo
instanceSnapshotInfo
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExportSnapshotRecordSourceType
resourceType

instance
  Prelude.NFData
    ExportSnapshotRecordSourceInfo
  where
  rnf :: ExportSnapshotRecordSourceInfo -> ()
rnf ExportSnapshotRecordSourceInfo' {Maybe Text
Maybe POSIX
Maybe DiskSnapshotInfo
Maybe ExportSnapshotRecordSourceType
Maybe InstanceSnapshotInfo
resourceType :: Maybe ExportSnapshotRecordSourceType
name :: Maybe Text
instanceSnapshotInfo :: Maybe InstanceSnapshotInfo
fromResourceName :: Maybe Text
fromResourceArn :: Maybe Text
diskSnapshotInfo :: Maybe DiskSnapshotInfo
createdAt :: Maybe POSIX
arn :: Maybe Text
$sel:resourceType:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo
-> Maybe ExportSnapshotRecordSourceType
$sel:name:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:instanceSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe InstanceSnapshotInfo
$sel:fromResourceName:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:fromResourceArn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
$sel:diskSnapshotInfo:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe DiskSnapshotInfo
$sel:createdAt:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe POSIX
$sel:arn:ExportSnapshotRecordSourceInfo' :: ExportSnapshotRecordSourceInfo -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DiskSnapshotInfo
diskSnapshotInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fromResourceArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fromResourceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InstanceSnapshotInfo
instanceSnapshotInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExportSnapshotRecordSourceType
resourceType