{-# 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.StorageGateway.Types.TapeArchive
-- 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.StorageGateway.Types.TapeArchive where

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

-- | Represents a virtual tape that is archived in the virtual tape shelf
-- (VTS).
--
-- /See:/ 'newTapeArchive' smart constructor.
data TapeArchive = TapeArchive'
  { -- | The time that the archiving of the virtual tape was completed.
    --
    -- The default timestamp format is in the ISO8601 extended
    -- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
    TapeArchive -> Maybe POSIX
completionTime :: Prelude.Maybe Data.POSIX,
    TapeArchive -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
    -- | The time that the tape entered the custom tape pool.
    --
    -- The default timestamp format is in the ISO8601 extended
    -- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
    TapeArchive -> Maybe POSIX
poolEntryDate :: Prelude.Maybe Data.POSIX,
    -- | The ID of the pool that was used to archive the tape. The tapes in this
    -- pool are archived in the S3 storage class that is associated with the
    -- pool.
    TapeArchive -> Maybe Text
poolId :: Prelude.Maybe Prelude.Text,
    -- | If the archived tape is subject to tape retention lock, the date that
    -- the archived tape started being retained.
    TapeArchive -> Maybe POSIX
retentionStartDate :: Prelude.Maybe Data.POSIX,
    -- | The Amazon Resource Name (ARN) of the tape gateway that the virtual tape
    -- is being retrieved to.
    --
    -- The virtual tape is retrieved from the virtual tape shelf (VTS).
    TapeArchive -> Maybe Text
retrievedTo :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of an archived virtual tape.
    TapeArchive -> Maybe Text
tapeARN :: Prelude.Maybe Prelude.Text,
    -- | The barcode that identifies the archived virtual tape.
    TapeArchive -> Maybe Text
tapeBarcode :: Prelude.Maybe Prelude.Text,
    -- | The date the virtual tape was created.
    TapeArchive -> Maybe POSIX
tapeCreatedDate :: Prelude.Maybe Data.POSIX,
    -- | The size, in bytes, of the archived virtual tape.
    TapeArchive -> Maybe Integer
tapeSizeInBytes :: Prelude.Maybe Prelude.Integer,
    -- | The current state of the archived virtual tape.
    TapeArchive -> Maybe Text
tapeStatus :: Prelude.Maybe Prelude.Text,
    -- | The size, in bytes, of data stored on the virtual tape.
    --
    -- This value is not available for tapes created prior to May 13, 2015.
    TapeArchive -> Maybe Integer
tapeUsedInBytes :: Prelude.Maybe Prelude.Integer,
    -- | Set to @true@ if the archived tape is stored as write-once-read-many
    -- (WORM).
    TapeArchive -> Maybe Bool
worm :: Prelude.Maybe Prelude.Bool
  }
  deriving (TapeArchive -> TapeArchive -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TapeArchive -> TapeArchive -> Bool
$c/= :: TapeArchive -> TapeArchive -> Bool
== :: TapeArchive -> TapeArchive -> Bool
$c== :: TapeArchive -> TapeArchive -> Bool
Prelude.Eq, ReadPrec [TapeArchive]
ReadPrec TapeArchive
Int -> ReadS TapeArchive
ReadS [TapeArchive]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TapeArchive]
$creadListPrec :: ReadPrec [TapeArchive]
readPrec :: ReadPrec TapeArchive
$creadPrec :: ReadPrec TapeArchive
readList :: ReadS [TapeArchive]
$creadList :: ReadS [TapeArchive]
readsPrec :: Int -> ReadS TapeArchive
$creadsPrec :: Int -> ReadS TapeArchive
Prelude.Read, Int -> TapeArchive -> ShowS
[TapeArchive] -> ShowS
TapeArchive -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TapeArchive] -> ShowS
$cshowList :: [TapeArchive] -> ShowS
show :: TapeArchive -> String
$cshow :: TapeArchive -> String
showsPrec :: Int -> TapeArchive -> ShowS
$cshowsPrec :: Int -> TapeArchive -> ShowS
Prelude.Show, forall x. Rep TapeArchive x -> TapeArchive
forall x. TapeArchive -> Rep TapeArchive x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TapeArchive x -> TapeArchive
$cfrom :: forall x. TapeArchive -> Rep TapeArchive x
Prelude.Generic)

-- |
-- Create a value of 'TapeArchive' 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:
--
-- 'completionTime', 'tapeArchive_completionTime' - The time that the archiving of the virtual tape was completed.
--
-- The default timestamp format is in the ISO8601 extended
-- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
--
-- 'kmsKey', 'tapeArchive_kmsKey' - Undocumented member.
--
-- 'poolEntryDate', 'tapeArchive_poolEntryDate' - The time that the tape entered the custom tape pool.
--
-- The default timestamp format is in the ISO8601 extended
-- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
--
-- 'poolId', 'tapeArchive_poolId' - The ID of the pool that was used to archive the tape. The tapes in this
-- pool are archived in the S3 storage class that is associated with the
-- pool.
--
-- 'retentionStartDate', 'tapeArchive_retentionStartDate' - If the archived tape is subject to tape retention lock, the date that
-- the archived tape started being retained.
--
-- 'retrievedTo', 'tapeArchive_retrievedTo' - The Amazon Resource Name (ARN) of the tape gateway that the virtual tape
-- is being retrieved to.
--
-- The virtual tape is retrieved from the virtual tape shelf (VTS).
--
-- 'tapeARN', 'tapeArchive_tapeARN' - The Amazon Resource Name (ARN) of an archived virtual tape.
--
-- 'tapeBarcode', 'tapeArchive_tapeBarcode' - The barcode that identifies the archived virtual tape.
--
-- 'tapeCreatedDate', 'tapeArchive_tapeCreatedDate' - The date the virtual tape was created.
--
-- 'tapeSizeInBytes', 'tapeArchive_tapeSizeInBytes' - The size, in bytes, of the archived virtual tape.
--
-- 'tapeStatus', 'tapeArchive_tapeStatus' - The current state of the archived virtual tape.
--
-- 'tapeUsedInBytes', 'tapeArchive_tapeUsedInBytes' - The size, in bytes, of data stored on the virtual tape.
--
-- This value is not available for tapes created prior to May 13, 2015.
--
-- 'worm', 'tapeArchive_worm' - Set to @true@ if the archived tape is stored as write-once-read-many
-- (WORM).
newTapeArchive ::
  TapeArchive
newTapeArchive :: TapeArchive
newTapeArchive =
  TapeArchive'
    { $sel:completionTime:TapeArchive' :: Maybe POSIX
completionTime = forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKey:TapeArchive' :: Maybe Text
kmsKey = forall a. Maybe a
Prelude.Nothing,
      $sel:poolEntryDate:TapeArchive' :: Maybe POSIX
poolEntryDate = forall a. Maybe a
Prelude.Nothing,
      $sel:poolId:TapeArchive' :: Maybe Text
poolId = forall a. Maybe a
Prelude.Nothing,
      $sel:retentionStartDate:TapeArchive' :: Maybe POSIX
retentionStartDate = forall a. Maybe a
Prelude.Nothing,
      $sel:retrievedTo:TapeArchive' :: Maybe Text
retrievedTo = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeARN:TapeArchive' :: Maybe Text
tapeARN = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeBarcode:TapeArchive' :: Maybe Text
tapeBarcode = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeCreatedDate:TapeArchive' :: Maybe POSIX
tapeCreatedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeSizeInBytes:TapeArchive' :: Maybe Integer
tapeSizeInBytes = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeStatus:TapeArchive' :: Maybe Text
tapeStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:tapeUsedInBytes:TapeArchive' :: Maybe Integer
tapeUsedInBytes = forall a. Maybe a
Prelude.Nothing,
      $sel:worm:TapeArchive' :: Maybe Bool
worm = forall a. Maybe a
Prelude.Nothing
    }

-- | The time that the archiving of the virtual tape was completed.
--
-- The default timestamp format is in the ISO8601 extended
-- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
tapeArchive_completionTime :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.UTCTime)
tapeArchive_completionTime :: Lens' TapeArchive (Maybe UTCTime)
tapeArchive_completionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe POSIX
completionTime :: Maybe POSIX
$sel:completionTime:TapeArchive' :: TapeArchive -> Maybe POSIX
completionTime} -> Maybe POSIX
completionTime) (\s :: TapeArchive
s@TapeArchive' {} Maybe POSIX
a -> TapeArchive
s {$sel:completionTime:TapeArchive' :: Maybe POSIX
completionTime = Maybe POSIX
a} :: TapeArchive) 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

-- | Undocumented member.
tapeArchive_kmsKey :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_kmsKey :: Lens' TapeArchive (Maybe Text)
tapeArchive_kmsKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:TapeArchive' :: TapeArchive -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:kmsKey:TapeArchive' :: Maybe Text
kmsKey = Maybe Text
a} :: TapeArchive)

-- | The time that the tape entered the custom tape pool.
--
-- The default timestamp format is in the ISO8601 extended
-- YYYY-MM-DD\'T\'HH:MM:SS\'Z\' format.
tapeArchive_poolEntryDate :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.UTCTime)
tapeArchive_poolEntryDate :: Lens' TapeArchive (Maybe UTCTime)
tapeArchive_poolEntryDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe POSIX
poolEntryDate :: Maybe POSIX
$sel:poolEntryDate:TapeArchive' :: TapeArchive -> Maybe POSIX
poolEntryDate} -> Maybe POSIX
poolEntryDate) (\s :: TapeArchive
s@TapeArchive' {} Maybe POSIX
a -> TapeArchive
s {$sel:poolEntryDate:TapeArchive' :: Maybe POSIX
poolEntryDate = Maybe POSIX
a} :: TapeArchive) 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

-- | The ID of the pool that was used to archive the tape. The tapes in this
-- pool are archived in the S3 storage class that is associated with the
-- pool.
tapeArchive_poolId :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_poolId :: Lens' TapeArchive (Maybe Text)
tapeArchive_poolId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
poolId :: Maybe Text
$sel:poolId:TapeArchive' :: TapeArchive -> Maybe Text
poolId} -> Maybe Text
poolId) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:poolId:TapeArchive' :: Maybe Text
poolId = Maybe Text
a} :: TapeArchive)

-- | If the archived tape is subject to tape retention lock, the date that
-- the archived tape started being retained.
tapeArchive_retentionStartDate :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.UTCTime)
tapeArchive_retentionStartDate :: Lens' TapeArchive (Maybe UTCTime)
tapeArchive_retentionStartDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe POSIX
retentionStartDate :: Maybe POSIX
$sel:retentionStartDate:TapeArchive' :: TapeArchive -> Maybe POSIX
retentionStartDate} -> Maybe POSIX
retentionStartDate) (\s :: TapeArchive
s@TapeArchive' {} Maybe POSIX
a -> TapeArchive
s {$sel:retentionStartDate:TapeArchive' :: Maybe POSIX
retentionStartDate = Maybe POSIX
a} :: TapeArchive) 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

-- | The Amazon Resource Name (ARN) of the tape gateway that the virtual tape
-- is being retrieved to.
--
-- The virtual tape is retrieved from the virtual tape shelf (VTS).
tapeArchive_retrievedTo :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_retrievedTo :: Lens' TapeArchive (Maybe Text)
tapeArchive_retrievedTo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
retrievedTo :: Maybe Text
$sel:retrievedTo:TapeArchive' :: TapeArchive -> Maybe Text
retrievedTo} -> Maybe Text
retrievedTo) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:retrievedTo:TapeArchive' :: Maybe Text
retrievedTo = Maybe Text
a} :: TapeArchive)

-- | The Amazon Resource Name (ARN) of an archived virtual tape.
tapeArchive_tapeARN :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_tapeARN :: Lens' TapeArchive (Maybe Text)
tapeArchive_tapeARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
tapeARN :: Maybe Text
$sel:tapeARN:TapeArchive' :: TapeArchive -> Maybe Text
tapeARN} -> Maybe Text
tapeARN) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:tapeARN:TapeArchive' :: Maybe Text
tapeARN = Maybe Text
a} :: TapeArchive)

-- | The barcode that identifies the archived virtual tape.
tapeArchive_tapeBarcode :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_tapeBarcode :: Lens' TapeArchive (Maybe Text)
tapeArchive_tapeBarcode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
tapeBarcode :: Maybe Text
$sel:tapeBarcode:TapeArchive' :: TapeArchive -> Maybe Text
tapeBarcode} -> Maybe Text
tapeBarcode) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:tapeBarcode:TapeArchive' :: Maybe Text
tapeBarcode = Maybe Text
a} :: TapeArchive)

-- | The date the virtual tape was created.
tapeArchive_tapeCreatedDate :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.UTCTime)
tapeArchive_tapeCreatedDate :: Lens' TapeArchive (Maybe UTCTime)
tapeArchive_tapeCreatedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe POSIX
tapeCreatedDate :: Maybe POSIX
$sel:tapeCreatedDate:TapeArchive' :: TapeArchive -> Maybe POSIX
tapeCreatedDate} -> Maybe POSIX
tapeCreatedDate) (\s :: TapeArchive
s@TapeArchive' {} Maybe POSIX
a -> TapeArchive
s {$sel:tapeCreatedDate:TapeArchive' :: Maybe POSIX
tapeCreatedDate = Maybe POSIX
a} :: TapeArchive) 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

-- | The size, in bytes, of the archived virtual tape.
tapeArchive_tapeSizeInBytes :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Integer)
tapeArchive_tapeSizeInBytes :: Lens' TapeArchive (Maybe Integer)
tapeArchive_tapeSizeInBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Integer
tapeSizeInBytes :: Maybe Integer
$sel:tapeSizeInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
tapeSizeInBytes} -> Maybe Integer
tapeSizeInBytes) (\s :: TapeArchive
s@TapeArchive' {} Maybe Integer
a -> TapeArchive
s {$sel:tapeSizeInBytes:TapeArchive' :: Maybe Integer
tapeSizeInBytes = Maybe Integer
a} :: TapeArchive)

-- | The current state of the archived virtual tape.
tapeArchive_tapeStatus :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Text)
tapeArchive_tapeStatus :: Lens' TapeArchive (Maybe Text)
tapeArchive_tapeStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Text
tapeStatus :: Maybe Text
$sel:tapeStatus:TapeArchive' :: TapeArchive -> Maybe Text
tapeStatus} -> Maybe Text
tapeStatus) (\s :: TapeArchive
s@TapeArchive' {} Maybe Text
a -> TapeArchive
s {$sel:tapeStatus:TapeArchive' :: Maybe Text
tapeStatus = Maybe Text
a} :: TapeArchive)

-- | The size, in bytes, of data stored on the virtual tape.
--
-- This value is not available for tapes created prior to May 13, 2015.
tapeArchive_tapeUsedInBytes :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Integer)
tapeArchive_tapeUsedInBytes :: Lens' TapeArchive (Maybe Integer)
tapeArchive_tapeUsedInBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Integer
tapeUsedInBytes :: Maybe Integer
$sel:tapeUsedInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
tapeUsedInBytes} -> Maybe Integer
tapeUsedInBytes) (\s :: TapeArchive
s@TapeArchive' {} Maybe Integer
a -> TapeArchive
s {$sel:tapeUsedInBytes:TapeArchive' :: Maybe Integer
tapeUsedInBytes = Maybe Integer
a} :: TapeArchive)

-- | Set to @true@ if the archived tape is stored as write-once-read-many
-- (WORM).
tapeArchive_worm :: Lens.Lens' TapeArchive (Prelude.Maybe Prelude.Bool)
tapeArchive_worm :: Lens' TapeArchive (Maybe Bool)
tapeArchive_worm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TapeArchive' {Maybe Bool
worm :: Maybe Bool
$sel:worm:TapeArchive' :: TapeArchive -> Maybe Bool
worm} -> Maybe Bool
worm) (\s :: TapeArchive
s@TapeArchive' {} Maybe Bool
a -> TapeArchive
s {$sel:worm:TapeArchive' :: Maybe Bool
worm = Maybe Bool
a} :: TapeArchive)

instance Data.FromJSON TapeArchive where
  parseJSON :: Value -> Parser TapeArchive
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"TapeArchive"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Bool
-> TapeArchive
TapeArchive'
            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
"CompletionTime")
            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
"KMSKey")
            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
"PoolEntryDate")
            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
"PoolId")
            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
"RetentionStartDate")
            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
"RetrievedTo")
            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
"TapeARN")
            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
"TapeBarcode")
            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
"TapeCreatedDate")
            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
"TapeSizeInBytes")
            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
"TapeStatus")
            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
"TapeUsedInBytes")
            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
"Worm")
      )

instance Prelude.Hashable TapeArchive where
  hashWithSalt :: Int -> TapeArchive -> Int
hashWithSalt Int
_salt TapeArchive' {Maybe Bool
Maybe Integer
Maybe Text
Maybe POSIX
worm :: Maybe Bool
tapeUsedInBytes :: Maybe Integer
tapeStatus :: Maybe Text
tapeSizeInBytes :: Maybe Integer
tapeCreatedDate :: Maybe POSIX
tapeBarcode :: Maybe Text
tapeARN :: Maybe Text
retrievedTo :: Maybe Text
retentionStartDate :: Maybe POSIX
poolId :: Maybe Text
poolEntryDate :: Maybe POSIX
kmsKey :: Maybe Text
completionTime :: Maybe POSIX
$sel:worm:TapeArchive' :: TapeArchive -> Maybe Bool
$sel:tapeUsedInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
$sel:tapeStatus:TapeArchive' :: TapeArchive -> Maybe Text
$sel:tapeSizeInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
$sel:tapeCreatedDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:tapeBarcode:TapeArchive' :: TapeArchive -> Maybe Text
$sel:tapeARN:TapeArchive' :: TapeArchive -> Maybe Text
$sel:retrievedTo:TapeArchive' :: TapeArchive -> Maybe Text
$sel:retentionStartDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:poolId:TapeArchive' :: TapeArchive -> Maybe Text
$sel:poolEntryDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:kmsKey:TapeArchive' :: TapeArchive -> Maybe Text
$sel:completionTime:TapeArchive' :: TapeArchive -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
completionTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKey
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
poolEntryDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
poolId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
retentionStartDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
retrievedTo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tapeARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tapeBarcode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
tapeCreatedDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
tapeSizeInBytes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tapeStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
tapeUsedInBytes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
worm

instance Prelude.NFData TapeArchive where
  rnf :: TapeArchive -> ()
rnf TapeArchive' {Maybe Bool
Maybe Integer
Maybe Text
Maybe POSIX
worm :: Maybe Bool
tapeUsedInBytes :: Maybe Integer
tapeStatus :: Maybe Text
tapeSizeInBytes :: Maybe Integer
tapeCreatedDate :: Maybe POSIX
tapeBarcode :: Maybe Text
tapeARN :: Maybe Text
retrievedTo :: Maybe Text
retentionStartDate :: Maybe POSIX
poolId :: Maybe Text
poolEntryDate :: Maybe POSIX
kmsKey :: Maybe Text
completionTime :: Maybe POSIX
$sel:worm:TapeArchive' :: TapeArchive -> Maybe Bool
$sel:tapeUsedInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
$sel:tapeStatus:TapeArchive' :: TapeArchive -> Maybe Text
$sel:tapeSizeInBytes:TapeArchive' :: TapeArchive -> Maybe Integer
$sel:tapeCreatedDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:tapeBarcode:TapeArchive' :: TapeArchive -> Maybe Text
$sel:tapeARN:TapeArchive' :: TapeArchive -> Maybe Text
$sel:retrievedTo:TapeArchive' :: TapeArchive -> Maybe Text
$sel:retentionStartDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:poolId:TapeArchive' :: TapeArchive -> Maybe Text
$sel:poolEntryDate:TapeArchive' :: TapeArchive -> Maybe POSIX
$sel:kmsKey:TapeArchive' :: TapeArchive -> Maybe Text
$sel:completionTime:TapeArchive' :: TapeArchive -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
completionTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
poolEntryDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
poolId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
retentionStartDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
retrievedTo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tapeARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tapeBarcode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
tapeCreatedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
tapeSizeInBytes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tapeStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
tapeUsedInBytes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
worm