{-# 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.FSx.Types.Volume
-- 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.FSx.Types.Volume where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import {-# SOURCE #-} Amazonka.FSx.Types.AdministrativeAction
import Amazonka.FSx.Types.LifecycleTransitionReason
import Amazonka.FSx.Types.OntapVolumeConfiguration
import Amazonka.FSx.Types.OpenZFSVolumeConfiguration
import Amazonka.FSx.Types.Tag
import Amazonka.FSx.Types.VolumeLifecycle
import Amazonka.FSx.Types.VolumeType
import qualified Amazonka.Prelude as Prelude

-- | Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS
-- volume.
--
-- /See:/ 'newVolume' smart constructor.
data Volume = Volume'
  { -- | A list of administrative actions for the volume that are in process or
    -- waiting to be processed. Administrative actions describe changes to the
    -- volume that you have initiated using the @UpdateVolume@ action.
    Volume -> Maybe [AdministrativeAction]
administrativeActions :: Prelude.Maybe [AdministrativeAction],
    Volume -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    Volume -> Maybe Text
fileSystemId :: Prelude.Maybe Prelude.Text,
    -- | The lifecycle status of the volume.
    --
    -- -   @AVAILABLE@ - The volume is fully available for use.
    --
    -- -   @CREATED@ - The volume has been created.
    --
    -- -   @CREATING@ - Amazon FSx is creating the new volume.
    --
    -- -   @DELETING@ - Amazon FSx is deleting an existing volume.
    --
    -- -   @FAILED@ - Amazon FSx was unable to create the volume.
    --
    -- -   @MISCONFIGURED@ - The volume is in a failed but recoverable state.
    --
    -- -   @PENDING@ - Amazon FSx hasn\'t started creating the volume.
    Volume -> Maybe VolumeLifecycle
lifecycle :: Prelude.Maybe VolumeLifecycle,
    -- | The reason why the volume lifecycle status changed.
    Volume -> Maybe LifecycleTransitionReason
lifecycleTransitionReason :: Prelude.Maybe LifecycleTransitionReason,
    -- | The name of the volume.
    Volume -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    Volume -> Maybe OntapVolumeConfiguration
ontapConfiguration :: Prelude.Maybe OntapVolumeConfiguration,
    -- | The configuration of an Amazon FSx for OpenZFS volume.
    Volume -> Maybe OpenZFSVolumeConfiguration
openZFSConfiguration :: Prelude.Maybe OpenZFSVolumeConfiguration,
    Volume -> Maybe Text
resourceARN :: Prelude.Maybe Prelude.Text,
    Volume -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
    -- | The system-generated, unique ID of the volume.
    Volume -> Maybe Text
volumeId :: Prelude.Maybe Prelude.Text,
    -- | The type of the volume.
    Volume -> Maybe VolumeType
volumeType :: Prelude.Maybe VolumeType
  }
  deriving (Volume -> Volume -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Volume -> Volume -> Bool
$c/= :: Volume -> Volume -> Bool
== :: Volume -> Volume -> Bool
$c== :: Volume -> Volume -> Bool
Prelude.Eq, ReadPrec [Volume]
ReadPrec Volume
Int -> ReadS Volume
ReadS [Volume]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Volume]
$creadListPrec :: ReadPrec [Volume]
readPrec :: ReadPrec Volume
$creadPrec :: ReadPrec Volume
readList :: ReadS [Volume]
$creadList :: ReadS [Volume]
readsPrec :: Int -> ReadS Volume
$creadsPrec :: Int -> ReadS Volume
Prelude.Read, Int -> Volume -> ShowS
[Volume] -> ShowS
Volume -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Volume] -> ShowS
$cshowList :: [Volume] -> ShowS
show :: Volume -> String
$cshow :: Volume -> String
showsPrec :: Int -> Volume -> ShowS
$cshowsPrec :: Int -> Volume -> ShowS
Prelude.Show, forall x. Rep Volume x -> Volume
forall x. Volume -> Rep Volume x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Volume x -> Volume
$cfrom :: forall x. Volume -> Rep Volume x
Prelude.Generic)

-- |
-- Create a value of 'Volume' 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:
--
-- 'administrativeActions', 'volume_administrativeActions' - A list of administrative actions for the volume that are in process or
-- waiting to be processed. Administrative actions describe changes to the
-- volume that you have initiated using the @UpdateVolume@ action.
--
-- 'creationTime', 'volume_creationTime' - Undocumented member.
--
-- 'fileSystemId', 'volume_fileSystemId' - Undocumented member.
--
-- 'lifecycle', 'volume_lifecycle' - The lifecycle status of the volume.
--
-- -   @AVAILABLE@ - The volume is fully available for use.
--
-- -   @CREATED@ - The volume has been created.
--
-- -   @CREATING@ - Amazon FSx is creating the new volume.
--
-- -   @DELETING@ - Amazon FSx is deleting an existing volume.
--
-- -   @FAILED@ - Amazon FSx was unable to create the volume.
--
-- -   @MISCONFIGURED@ - The volume is in a failed but recoverable state.
--
-- -   @PENDING@ - Amazon FSx hasn\'t started creating the volume.
--
-- 'lifecycleTransitionReason', 'volume_lifecycleTransitionReason' - The reason why the volume lifecycle status changed.
--
-- 'name', 'volume_name' - The name of the volume.
--
-- 'ontapConfiguration', 'volume_ontapConfiguration' - Undocumented member.
--
-- 'openZFSConfiguration', 'volume_openZFSConfiguration' - The configuration of an Amazon FSx for OpenZFS volume.
--
-- 'resourceARN', 'volume_resourceARN' - Undocumented member.
--
-- 'tags', 'volume_tags' - Undocumented member.
--
-- 'volumeId', 'volume_volumeId' - The system-generated, unique ID of the volume.
--
-- 'volumeType', 'volume_volumeType' - The type of the volume.
newVolume ::
  Volume
newVolume :: Volume
newVolume =
  Volume'
    { $sel:administrativeActions:Volume' :: Maybe [AdministrativeAction]
administrativeActions = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:Volume' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:fileSystemId:Volume' :: Maybe Text
fileSystemId = forall a. Maybe a
Prelude.Nothing,
      $sel:lifecycle:Volume' :: Maybe VolumeLifecycle
lifecycle = forall a. Maybe a
Prelude.Nothing,
      $sel:lifecycleTransitionReason:Volume' :: Maybe LifecycleTransitionReason
lifecycleTransitionReason = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Volume' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:ontapConfiguration:Volume' :: Maybe OntapVolumeConfiguration
ontapConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:openZFSConfiguration:Volume' :: Maybe OpenZFSVolumeConfiguration
openZFSConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceARN:Volume' :: Maybe Text
resourceARN = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Volume' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:volumeId:Volume' :: Maybe Text
volumeId = forall a. Maybe a
Prelude.Nothing,
      $sel:volumeType:Volume' :: Maybe VolumeType
volumeType = forall a. Maybe a
Prelude.Nothing
    }

-- | A list of administrative actions for the volume that are in process or
-- waiting to be processed. Administrative actions describe changes to the
-- volume that you have initiated using the @UpdateVolume@ action.
volume_administrativeActions :: Lens.Lens' Volume (Prelude.Maybe [AdministrativeAction])
volume_administrativeActions :: Lens' Volume (Maybe [AdministrativeAction])
volume_administrativeActions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe [AdministrativeAction]
administrativeActions :: Maybe [AdministrativeAction]
$sel:administrativeActions:Volume' :: Volume -> Maybe [AdministrativeAction]
administrativeActions} -> Maybe [AdministrativeAction]
administrativeActions) (\s :: Volume
s@Volume' {} Maybe [AdministrativeAction]
a -> Volume
s {$sel:administrativeActions:Volume' :: Maybe [AdministrativeAction]
administrativeActions = Maybe [AdministrativeAction]
a} :: Volume) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
volume_creationTime :: Lens.Lens' Volume (Prelude.Maybe Prelude.UTCTime)
volume_creationTime :: Lens' Volume (Maybe UTCTime)
volume_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Volume' :: Volume -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Volume
s@Volume' {} Maybe POSIX
a -> Volume
s {$sel:creationTime:Volume' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Volume) 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.
volume_fileSystemId :: Lens.Lens' Volume (Prelude.Maybe Prelude.Text)
volume_fileSystemId :: Lens' Volume (Maybe Text)
volume_fileSystemId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe Text
fileSystemId :: Maybe Text
$sel:fileSystemId:Volume' :: Volume -> Maybe Text
fileSystemId} -> Maybe Text
fileSystemId) (\s :: Volume
s@Volume' {} Maybe Text
a -> Volume
s {$sel:fileSystemId:Volume' :: Maybe Text
fileSystemId = Maybe Text
a} :: Volume)

-- | The lifecycle status of the volume.
--
-- -   @AVAILABLE@ - The volume is fully available for use.
--
-- -   @CREATED@ - The volume has been created.
--
-- -   @CREATING@ - Amazon FSx is creating the new volume.
--
-- -   @DELETING@ - Amazon FSx is deleting an existing volume.
--
-- -   @FAILED@ - Amazon FSx was unable to create the volume.
--
-- -   @MISCONFIGURED@ - The volume is in a failed but recoverable state.
--
-- -   @PENDING@ - Amazon FSx hasn\'t started creating the volume.
volume_lifecycle :: Lens.Lens' Volume (Prelude.Maybe VolumeLifecycle)
volume_lifecycle :: Lens' Volume (Maybe VolumeLifecycle)
volume_lifecycle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe VolumeLifecycle
lifecycle :: Maybe VolumeLifecycle
$sel:lifecycle:Volume' :: Volume -> Maybe VolumeLifecycle
lifecycle} -> Maybe VolumeLifecycle
lifecycle) (\s :: Volume
s@Volume' {} Maybe VolumeLifecycle
a -> Volume
s {$sel:lifecycle:Volume' :: Maybe VolumeLifecycle
lifecycle = Maybe VolumeLifecycle
a} :: Volume)

-- | The reason why the volume lifecycle status changed.
volume_lifecycleTransitionReason :: Lens.Lens' Volume (Prelude.Maybe LifecycleTransitionReason)
volume_lifecycleTransitionReason :: Lens' Volume (Maybe LifecycleTransitionReason)
volume_lifecycleTransitionReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe LifecycleTransitionReason
lifecycleTransitionReason :: Maybe LifecycleTransitionReason
$sel:lifecycleTransitionReason:Volume' :: Volume -> Maybe LifecycleTransitionReason
lifecycleTransitionReason} -> Maybe LifecycleTransitionReason
lifecycleTransitionReason) (\s :: Volume
s@Volume' {} Maybe LifecycleTransitionReason
a -> Volume
s {$sel:lifecycleTransitionReason:Volume' :: Maybe LifecycleTransitionReason
lifecycleTransitionReason = Maybe LifecycleTransitionReason
a} :: Volume)

-- | The name of the volume.
volume_name :: Lens.Lens' Volume (Prelude.Maybe Prelude.Text)
volume_name :: Lens' Volume (Maybe Text)
volume_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe Text
name :: Maybe Text
$sel:name:Volume' :: Volume -> Maybe Text
name} -> Maybe Text
name) (\s :: Volume
s@Volume' {} Maybe Text
a -> Volume
s {$sel:name:Volume' :: Maybe Text
name = Maybe Text
a} :: Volume)

-- | Undocumented member.
volume_ontapConfiguration :: Lens.Lens' Volume (Prelude.Maybe OntapVolumeConfiguration)
volume_ontapConfiguration :: Lens' Volume (Maybe OntapVolumeConfiguration)
volume_ontapConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe OntapVolumeConfiguration
ontapConfiguration :: Maybe OntapVolumeConfiguration
$sel:ontapConfiguration:Volume' :: Volume -> Maybe OntapVolumeConfiguration
ontapConfiguration} -> Maybe OntapVolumeConfiguration
ontapConfiguration) (\s :: Volume
s@Volume' {} Maybe OntapVolumeConfiguration
a -> Volume
s {$sel:ontapConfiguration:Volume' :: Maybe OntapVolumeConfiguration
ontapConfiguration = Maybe OntapVolumeConfiguration
a} :: Volume)

-- | The configuration of an Amazon FSx for OpenZFS volume.
volume_openZFSConfiguration :: Lens.Lens' Volume (Prelude.Maybe OpenZFSVolumeConfiguration)
volume_openZFSConfiguration :: Lens' Volume (Maybe OpenZFSVolumeConfiguration)
volume_openZFSConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe OpenZFSVolumeConfiguration
openZFSConfiguration :: Maybe OpenZFSVolumeConfiguration
$sel:openZFSConfiguration:Volume' :: Volume -> Maybe OpenZFSVolumeConfiguration
openZFSConfiguration} -> Maybe OpenZFSVolumeConfiguration
openZFSConfiguration) (\s :: Volume
s@Volume' {} Maybe OpenZFSVolumeConfiguration
a -> Volume
s {$sel:openZFSConfiguration:Volume' :: Maybe OpenZFSVolumeConfiguration
openZFSConfiguration = Maybe OpenZFSVolumeConfiguration
a} :: Volume)

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

-- | Undocumented member.
volume_tags :: Lens.Lens' Volume (Prelude.Maybe (Prelude.NonEmpty Tag))
volume_tags :: Lens' Volume (Maybe (NonEmpty Tag))
volume_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:Volume' :: Volume -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: Volume
s@Volume' {} Maybe (NonEmpty Tag)
a -> Volume
s {$sel:tags:Volume' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: Volume) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The system-generated, unique ID of the volume.
volume_volumeId :: Lens.Lens' Volume (Prelude.Maybe Prelude.Text)
volume_volumeId :: Lens' Volume (Maybe Text)
volume_volumeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe Text
volumeId :: Maybe Text
$sel:volumeId:Volume' :: Volume -> Maybe Text
volumeId} -> Maybe Text
volumeId) (\s :: Volume
s@Volume' {} Maybe Text
a -> Volume
s {$sel:volumeId:Volume' :: Maybe Text
volumeId = Maybe Text
a} :: Volume)

-- | The type of the volume.
volume_volumeType :: Lens.Lens' Volume (Prelude.Maybe VolumeType)
volume_volumeType :: Lens' Volume (Maybe VolumeType)
volume_volumeType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Volume' {Maybe VolumeType
volumeType :: Maybe VolumeType
$sel:volumeType:Volume' :: Volume -> Maybe VolumeType
volumeType} -> Maybe VolumeType
volumeType) (\s :: Volume
s@Volume' {} Maybe VolumeType
a -> Volume
s {$sel:volumeType:Volume' :: Maybe VolumeType
volumeType = Maybe VolumeType
a} :: Volume)

instance Data.FromJSON Volume where
  parseJSON :: Value -> Parser Volume
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Volume"
      ( \Object
x ->
          Maybe [AdministrativeAction]
-> Maybe POSIX
-> Maybe Text
-> Maybe VolumeLifecycle
-> Maybe LifecycleTransitionReason
-> Maybe Text
-> Maybe OntapVolumeConfiguration
-> Maybe OpenZFSVolumeConfiguration
-> Maybe Text
-> Maybe (NonEmpty Tag)
-> Maybe Text
-> Maybe VolumeType
-> Volume
Volume'
            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
"AdministrativeActions"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"CreationTime")
            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
"FileSystemId")
            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
"Lifecycle")
            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
"LifecycleTransitionReason")
            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
"OntapConfiguration")
            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
"OpenZFSConfiguration")
            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
"ResourceARN")
            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
"Tags")
            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
"VolumeId")
            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
"VolumeType")
      )

instance Prelude.Hashable Volume where
  hashWithSalt :: Int -> Volume -> Int
hashWithSalt Int
_salt Volume' {Maybe [AdministrativeAction]
Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe LifecycleTransitionReason
Maybe OpenZFSVolumeConfiguration
Maybe OntapVolumeConfiguration
Maybe VolumeLifecycle
Maybe VolumeType
volumeType :: Maybe VolumeType
volumeId :: Maybe Text
tags :: Maybe (NonEmpty Tag)
resourceARN :: Maybe Text
openZFSConfiguration :: Maybe OpenZFSVolumeConfiguration
ontapConfiguration :: Maybe OntapVolumeConfiguration
name :: Maybe Text
lifecycleTransitionReason :: Maybe LifecycleTransitionReason
lifecycle :: Maybe VolumeLifecycle
fileSystemId :: Maybe Text
creationTime :: Maybe POSIX
administrativeActions :: Maybe [AdministrativeAction]
$sel:volumeType:Volume' :: Volume -> Maybe VolumeType
$sel:volumeId:Volume' :: Volume -> Maybe Text
$sel:tags:Volume' :: Volume -> Maybe (NonEmpty Tag)
$sel:resourceARN:Volume' :: Volume -> Maybe Text
$sel:openZFSConfiguration:Volume' :: Volume -> Maybe OpenZFSVolumeConfiguration
$sel:ontapConfiguration:Volume' :: Volume -> Maybe OntapVolumeConfiguration
$sel:name:Volume' :: Volume -> Maybe Text
$sel:lifecycleTransitionReason:Volume' :: Volume -> Maybe LifecycleTransitionReason
$sel:lifecycle:Volume' :: Volume -> Maybe VolumeLifecycle
$sel:fileSystemId:Volume' :: Volume -> Maybe Text
$sel:creationTime:Volume' :: Volume -> Maybe POSIX
$sel:administrativeActions:Volume' :: Volume -> Maybe [AdministrativeAction]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AdministrativeAction]
administrativeActions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileSystemId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VolumeLifecycle
lifecycle
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LifecycleTransitionReason
lifecycleTransitionReason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OntapVolumeConfiguration
ontapConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OpenZFSVolumeConfiguration
openZFSConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
volumeId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VolumeType
volumeType

instance Prelude.NFData Volume where
  rnf :: Volume -> ()
rnf Volume' {Maybe [AdministrativeAction]
Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe LifecycleTransitionReason
Maybe OpenZFSVolumeConfiguration
Maybe OntapVolumeConfiguration
Maybe VolumeLifecycle
Maybe VolumeType
volumeType :: Maybe VolumeType
volumeId :: Maybe Text
tags :: Maybe (NonEmpty Tag)
resourceARN :: Maybe Text
openZFSConfiguration :: Maybe OpenZFSVolumeConfiguration
ontapConfiguration :: Maybe OntapVolumeConfiguration
name :: Maybe Text
lifecycleTransitionReason :: Maybe LifecycleTransitionReason
lifecycle :: Maybe VolumeLifecycle
fileSystemId :: Maybe Text
creationTime :: Maybe POSIX
administrativeActions :: Maybe [AdministrativeAction]
$sel:volumeType:Volume' :: Volume -> Maybe VolumeType
$sel:volumeId:Volume' :: Volume -> Maybe Text
$sel:tags:Volume' :: Volume -> Maybe (NonEmpty Tag)
$sel:resourceARN:Volume' :: Volume -> Maybe Text
$sel:openZFSConfiguration:Volume' :: Volume -> Maybe OpenZFSVolumeConfiguration
$sel:ontapConfiguration:Volume' :: Volume -> Maybe OntapVolumeConfiguration
$sel:name:Volume' :: Volume -> Maybe Text
$sel:lifecycleTransitionReason:Volume' :: Volume -> Maybe LifecycleTransitionReason
$sel:lifecycle:Volume' :: Volume -> Maybe VolumeLifecycle
$sel:fileSystemId:Volume' :: Volume -> Maybe Text
$sel:creationTime:Volume' :: Volume -> Maybe POSIX
$sel:administrativeActions:Volume' :: Volume -> Maybe [AdministrativeAction]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [AdministrativeAction]
administrativeActions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileSystemId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VolumeLifecycle
lifecycle
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LifecycleTransitionReason
lifecycleTransitionReason
      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 OntapVolumeConfiguration
ontapConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OpenZFSVolumeConfiguration
openZFSConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
volumeId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VolumeType
volumeType