{-# 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 #-}
module Amazonka.StorageGateway.Types.StorediSCSIVolume where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.StorageGateway.Types.VolumeiSCSIAttributes
data StorediSCSIVolume = StorediSCSIVolume'
{
StorediSCSIVolume -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes :: Prelude.Maybe VolumeiSCSIAttributes,
StorediSCSIVolume -> Maybe Text
volumeStatus :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
sourceSnapshotId :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Bool
preservedExistingData :: Prelude.Maybe Prelude.Bool,
StorediSCSIVolume -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
volumeAttachmentStatus :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
volumeARN :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Double
volumeProgress :: Prelude.Maybe Prelude.Double,
StorediSCSIVolume -> Maybe Integer
volumeSizeInBytes :: Prelude.Maybe Prelude.Integer,
StorediSCSIVolume -> Maybe Integer
volumeUsedInBytes :: Prelude.Maybe Prelude.Integer,
StorediSCSIVolume -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX,
StorediSCSIVolume -> Maybe Text
volumeId :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
volumeDiskId :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
volumeType :: Prelude.Maybe Prelude.Text,
StorediSCSIVolume -> Maybe Text
targetName :: Prelude.Maybe Prelude.Text
}
deriving (StorediSCSIVolume -> StorediSCSIVolume -> Bool
(StorediSCSIVolume -> StorediSCSIVolume -> Bool)
-> (StorediSCSIVolume -> StorediSCSIVolume -> Bool)
-> Eq StorediSCSIVolume
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
$c/= :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
== :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
$c== :: StorediSCSIVolume -> StorediSCSIVolume -> Bool
Prelude.Eq, ReadPrec [StorediSCSIVolume]
ReadPrec StorediSCSIVolume
Int -> ReadS StorediSCSIVolume
ReadS [StorediSCSIVolume]
(Int -> ReadS StorediSCSIVolume)
-> ReadS [StorediSCSIVolume]
-> ReadPrec StorediSCSIVolume
-> ReadPrec [StorediSCSIVolume]
-> Read StorediSCSIVolume
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StorediSCSIVolume]
$creadListPrec :: ReadPrec [StorediSCSIVolume]
readPrec :: ReadPrec StorediSCSIVolume
$creadPrec :: ReadPrec StorediSCSIVolume
readList :: ReadS [StorediSCSIVolume]
$creadList :: ReadS [StorediSCSIVolume]
readsPrec :: Int -> ReadS StorediSCSIVolume
$creadsPrec :: Int -> ReadS StorediSCSIVolume
Prelude.Read, Int -> StorediSCSIVolume -> ShowS
[StorediSCSIVolume] -> ShowS
StorediSCSIVolume -> String
(Int -> StorediSCSIVolume -> ShowS)
-> (StorediSCSIVolume -> String)
-> ([StorediSCSIVolume] -> ShowS)
-> Show StorediSCSIVolume
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StorediSCSIVolume] -> ShowS
$cshowList :: [StorediSCSIVolume] -> ShowS
show :: StorediSCSIVolume -> String
$cshow :: StorediSCSIVolume -> String
showsPrec :: Int -> StorediSCSIVolume -> ShowS
$cshowsPrec :: Int -> StorediSCSIVolume -> ShowS
Prelude.Show, (forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x)
-> (forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume)
-> Generic StorediSCSIVolume
forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume
forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StorediSCSIVolume x -> StorediSCSIVolume
$cfrom :: forall x. StorediSCSIVolume -> Rep StorediSCSIVolume x
Prelude.Generic)
newStorediSCSIVolume ::
StorediSCSIVolume
newStorediSCSIVolume :: StorediSCSIVolume
newStorediSCSIVolume =
StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume
StorediSCSIVolume'
{ $sel:volumeiSCSIAttributes:StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes =
Maybe VolumeiSCSIAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:volumeStatus:StorediSCSIVolume' :: Maybe Text
volumeStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceSnapshotId:StorediSCSIVolume' :: Maybe Text
sourceSnapshotId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preservedExistingData:StorediSCSIVolume' :: Maybe Bool
preservedExistingData = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:StorediSCSIVolume' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeAttachmentStatus:StorediSCSIVolume' :: Maybe Text
volumeAttachmentStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeARN:StorediSCSIVolume' :: Maybe Text
volumeARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeProgress:StorediSCSIVolume' :: Maybe Double
volumeProgress = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:volumeSizeInBytes:StorediSCSIVolume' :: Maybe Integer
volumeSizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:volumeUsedInBytes:StorediSCSIVolume' :: Maybe Integer
volumeUsedInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:StorediSCSIVolume' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:volumeId:StorediSCSIVolume' :: Maybe Text
volumeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeDiskId:StorediSCSIVolume' :: Maybe Text
volumeDiskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeType:StorediSCSIVolume' :: Maybe Text
volumeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:targetName:StorediSCSIVolume' :: Maybe Text
targetName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
storediSCSIVolume_volumeiSCSIAttributes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe VolumeiSCSIAttributes)
storediSCSIVolume_volumeiSCSIAttributes :: (Maybe VolumeiSCSIAttributes -> f (Maybe VolumeiSCSIAttributes))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeiSCSIAttributes = (StorediSCSIVolume -> Maybe VolumeiSCSIAttributes)
-> (StorediSCSIVolume
-> Maybe VolumeiSCSIAttributes -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume
StorediSCSIVolume
(Maybe VolumeiSCSIAttributes)
(Maybe VolumeiSCSIAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes :: Maybe VolumeiSCSIAttributes
$sel:volumeiSCSIAttributes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes} -> Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe VolumeiSCSIAttributes
a -> StorediSCSIVolume
s {$sel:volumeiSCSIAttributes:StorediSCSIVolume' :: Maybe VolumeiSCSIAttributes
volumeiSCSIAttributes = Maybe VolumeiSCSIAttributes
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeStatus :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeStatus :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeStatus = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeStatus :: Maybe Text
$sel:volumeStatus:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeStatus} -> Maybe Text
volumeStatus) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeStatus:StorediSCSIVolume' :: Maybe Text
volumeStatus = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_sourceSnapshotId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_sourceSnapshotId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_sourceSnapshotId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
sourceSnapshotId :: Maybe Text
$sel:sourceSnapshotId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
sourceSnapshotId} -> Maybe Text
sourceSnapshotId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:sourceSnapshotId:StorediSCSIVolume' :: Maybe Text
sourceSnapshotId = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_preservedExistingData :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Bool)
storediSCSIVolume_preservedExistingData :: (Maybe Bool -> f (Maybe Bool))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_preservedExistingData = (StorediSCSIVolume -> Maybe Bool)
-> (StorediSCSIVolume -> Maybe Bool -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Bool
preservedExistingData :: Maybe Bool
$sel:preservedExistingData:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Bool
preservedExistingData} -> Maybe Bool
preservedExistingData) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Bool
a -> StorediSCSIVolume
s {$sel:preservedExistingData:StorediSCSIVolume' :: Maybe Bool
preservedExistingData = Maybe Bool
a} :: StorediSCSIVolume)
storediSCSIVolume_kmsKey :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_kmsKey :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_kmsKey = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:kmsKey:StorediSCSIVolume' :: Maybe Text
kmsKey = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeAttachmentStatus :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeAttachmentStatus :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeAttachmentStatus = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeAttachmentStatus :: Maybe Text
$sel:volumeAttachmentStatus:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeAttachmentStatus} -> Maybe Text
volumeAttachmentStatus) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeAttachmentStatus:StorediSCSIVolume' :: Maybe Text
volumeAttachmentStatus = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeARN :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeARN :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeARN = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeARN :: Maybe Text
$sel:volumeARN:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeARN} -> Maybe Text
volumeARN) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeARN:StorediSCSIVolume' :: Maybe Text
volumeARN = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeProgress :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Double)
storediSCSIVolume_volumeProgress :: (Maybe Double -> f (Maybe Double))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeProgress = (StorediSCSIVolume -> Maybe Double)
-> (StorediSCSIVolume -> Maybe Double -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Double
volumeProgress :: Maybe Double
$sel:volumeProgress:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Double
volumeProgress} -> Maybe Double
volumeProgress) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Double
a -> StorediSCSIVolume
s {$sel:volumeProgress:StorediSCSIVolume' :: Maybe Double
volumeProgress = Maybe Double
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeSizeInBytes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Integer)
storediSCSIVolume_volumeSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeSizeInBytes = (StorediSCSIVolume -> Maybe Integer)
-> (StorediSCSIVolume -> Maybe Integer -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Integer
volumeSizeInBytes :: Maybe Integer
$sel:volumeSizeInBytes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Integer
volumeSizeInBytes} -> Maybe Integer
volumeSizeInBytes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Integer
a -> StorediSCSIVolume
s {$sel:volumeSizeInBytes:StorediSCSIVolume' :: Maybe Integer
volumeSizeInBytes = Maybe Integer
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeUsedInBytes :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Integer)
storediSCSIVolume_volumeUsedInBytes :: (Maybe Integer -> f (Maybe Integer))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeUsedInBytes = (StorediSCSIVolume -> Maybe Integer)
-> (StorediSCSIVolume -> Maybe Integer -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Integer
volumeUsedInBytes :: Maybe Integer
$sel:volumeUsedInBytes:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Integer
volumeUsedInBytes} -> Maybe Integer
volumeUsedInBytes) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Integer
a -> StorediSCSIVolume
s {$sel:volumeUsedInBytes:StorediSCSIVolume' :: Maybe Integer
volumeUsedInBytes = Maybe Integer
a} :: StorediSCSIVolume)
storediSCSIVolume_createdDate :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.UTCTime)
storediSCSIVolume_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_createdDate = (StorediSCSIVolume -> Maybe POSIX)
-> (StorediSCSIVolume -> Maybe POSIX -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe POSIX
a -> StorediSCSIVolume
s {$sel:createdDate:StorediSCSIVolume' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: StorediSCSIVolume) ((Maybe POSIX -> f (Maybe POSIX))
-> StorediSCSIVolume -> f StorediSCSIVolume)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StorediSCSIVolume
-> f StorediSCSIVolume
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
storediSCSIVolume_volumeId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeId :: Maybe Text
$sel:volumeId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeId} -> Maybe Text
volumeId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeId:StorediSCSIVolume' :: Maybe Text
volumeId = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeDiskId :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeDiskId :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeDiskId = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeDiskId :: Maybe Text
$sel:volumeDiskId:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeDiskId} -> Maybe Text
volumeDiskId) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeDiskId:StorediSCSIVolume' :: Maybe Text
volumeDiskId = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_volumeType :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_volumeType :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_volumeType = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
volumeType :: Maybe Text
$sel:volumeType:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
volumeType} -> Maybe Text
volumeType) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:volumeType:StorediSCSIVolume' :: Maybe Text
volumeType = Maybe Text
a} :: StorediSCSIVolume)
storediSCSIVolume_targetName :: Lens.Lens' StorediSCSIVolume (Prelude.Maybe Prelude.Text)
storediSCSIVolume_targetName :: (Maybe Text -> f (Maybe Text))
-> StorediSCSIVolume -> f StorediSCSIVolume
storediSCSIVolume_targetName = (StorediSCSIVolume -> Maybe Text)
-> (StorediSCSIVolume -> Maybe Text -> StorediSCSIVolume)
-> Lens
StorediSCSIVolume StorediSCSIVolume (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StorediSCSIVolume' {Maybe Text
targetName :: Maybe Text
$sel:targetName:StorediSCSIVolume' :: StorediSCSIVolume -> Maybe Text
targetName} -> Maybe Text
targetName) (\s :: StorediSCSIVolume
s@StorediSCSIVolume' {} Maybe Text
a -> StorediSCSIVolume
s {$sel:targetName:StorediSCSIVolume' :: Maybe Text
targetName = Maybe Text
a} :: StorediSCSIVolume)
instance Core.FromJSON StorediSCSIVolume where
parseJSON :: Value -> Parser StorediSCSIVolume
parseJSON =
String
-> (Object -> Parser StorediSCSIVolume)
-> Value
-> Parser StorediSCSIVolume
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"StorediSCSIVolume"
( \Object
x ->
Maybe VolumeiSCSIAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume
StorediSCSIVolume'
(Maybe VolumeiSCSIAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe VolumeiSCSIAttributes)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe VolumeiSCSIAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeiSCSIAttributes")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeStatus")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceSnapshotId")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PreservedExistingData")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KMSKey")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeAttachmentStatus")
Parser
(Maybe Text
-> Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeARN")
Parser
(Maybe Double
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Double)
-> Parser
(Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeProgress")
Parser
(Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Integer)
-> Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeSizeInBytes")
Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe Integer)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeUsedInBytes")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StorediSCSIVolume)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedDate")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeId")
Parser
(Maybe Text -> Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeDiskId")
Parser (Maybe Text -> Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text) -> Parser (Maybe Text -> StorediSCSIVolume)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeType")
Parser (Maybe Text -> StorediSCSIVolume)
-> Parser (Maybe Text) -> Parser StorediSCSIVolume
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetName")
)
instance Prelude.Hashable StorediSCSIVolume
instance Prelude.NFData StorediSCSIVolume