{-# 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.OpsWorks.Types.RaidArray
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.OpsWorks.Types.RaidArray where

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

-- | Describes an instance\'s RAID array.
--
-- /See:/ 'newRaidArray' smart constructor.
data RaidArray = RaidArray'
  { -- | The instance ID.
    RaidArray -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
    -- | The array\'s size.
    RaidArray -> Maybe Int
size :: Prelude.Maybe Prelude.Int,
    -- | For PIOPS volumes, the IOPS per disk.
    RaidArray -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
    -- | When the RAID array was created.
    RaidArray -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
    -- | The <http://en.wikipedia.org/wiki/Standard_RAID_levels RAID level>.
    RaidArray -> Maybe Int
raidLevel :: Prelude.Maybe Prelude.Int,
    -- | The array\'s Linux device. For example \/dev\/mdadm0.
    RaidArray -> Maybe Text
device :: Prelude.Maybe Prelude.Text,
    -- | The number of disks in the array.
    RaidArray -> Maybe Int
numberOfDisks :: Prelude.Maybe Prelude.Int,
    -- | The array\'s Availability Zone. For more information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/rande.html Regions and Endpoints>.
    RaidArray -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
    -- | The array name.
    RaidArray -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The array ID.
    RaidArray -> Maybe Text
raidArrayId :: Prelude.Maybe Prelude.Text,
    -- | The volume type, standard or PIOPS.
    RaidArray -> Maybe Text
volumeType :: Prelude.Maybe Prelude.Text,
    -- | The stack ID.
    RaidArray -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
    -- | The array\'s mount point.
    RaidArray -> Maybe Text
mountPoint :: Prelude.Maybe Prelude.Text
  }
  deriving (RaidArray -> RaidArray -> Bool
(RaidArray -> RaidArray -> Bool)
-> (RaidArray -> RaidArray -> Bool) -> Eq RaidArray
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RaidArray -> RaidArray -> Bool
$c/= :: RaidArray -> RaidArray -> Bool
== :: RaidArray -> RaidArray -> Bool
$c== :: RaidArray -> RaidArray -> Bool
Prelude.Eq, ReadPrec [RaidArray]
ReadPrec RaidArray
Int -> ReadS RaidArray
ReadS [RaidArray]
(Int -> ReadS RaidArray)
-> ReadS [RaidArray]
-> ReadPrec RaidArray
-> ReadPrec [RaidArray]
-> Read RaidArray
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RaidArray]
$creadListPrec :: ReadPrec [RaidArray]
readPrec :: ReadPrec RaidArray
$creadPrec :: ReadPrec RaidArray
readList :: ReadS [RaidArray]
$creadList :: ReadS [RaidArray]
readsPrec :: Int -> ReadS RaidArray
$creadsPrec :: Int -> ReadS RaidArray
Prelude.Read, Int -> RaidArray -> ShowS
[RaidArray] -> ShowS
RaidArray -> String
(Int -> RaidArray -> ShowS)
-> (RaidArray -> String)
-> ([RaidArray] -> ShowS)
-> Show RaidArray
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RaidArray] -> ShowS
$cshowList :: [RaidArray] -> ShowS
show :: RaidArray -> String
$cshow :: RaidArray -> String
showsPrec :: Int -> RaidArray -> ShowS
$cshowsPrec :: Int -> RaidArray -> ShowS
Prelude.Show, (forall x. RaidArray -> Rep RaidArray x)
-> (forall x. Rep RaidArray x -> RaidArray) -> Generic RaidArray
forall x. Rep RaidArray x -> RaidArray
forall x. RaidArray -> Rep RaidArray x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RaidArray x -> RaidArray
$cfrom :: forall x. RaidArray -> Rep RaidArray x
Prelude.Generic)

-- |
-- Create a value of 'RaidArray' 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:
--
-- 'instanceId', 'raidArray_instanceId' - The instance ID.
--
-- 'size', 'raidArray_size' - The array\'s size.
--
-- 'iops', 'raidArray_iops' - For PIOPS volumes, the IOPS per disk.
--
-- 'createdAt', 'raidArray_createdAt' - When the RAID array was created.
--
-- 'raidLevel', 'raidArray_raidLevel' - The <http://en.wikipedia.org/wiki/Standard_RAID_levels RAID level>.
--
-- 'device', 'raidArray_device' - The array\'s Linux device. For example \/dev\/mdadm0.
--
-- 'numberOfDisks', 'raidArray_numberOfDisks' - The number of disks in the array.
--
-- 'availabilityZone', 'raidArray_availabilityZone' - The array\'s Availability Zone. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/rande.html Regions and Endpoints>.
--
-- 'name', 'raidArray_name' - The array name.
--
-- 'raidArrayId', 'raidArray_raidArrayId' - The array ID.
--
-- 'volumeType', 'raidArray_volumeType' - The volume type, standard or PIOPS.
--
-- 'stackId', 'raidArray_stackId' - The stack ID.
--
-- 'mountPoint', 'raidArray_mountPoint' - The array\'s mount point.
newRaidArray ::
  RaidArray
newRaidArray :: RaidArray
newRaidArray =
  RaidArray' :: Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RaidArray
RaidArray'
    { $sel:instanceId:RaidArray' :: Maybe Text
instanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:size:RaidArray' :: Maybe Int
size = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:iops:RaidArray' :: Maybe Int
iops = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:RaidArray' :: Maybe Text
createdAt = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:raidLevel:RaidArray' :: Maybe Int
raidLevel = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:device:RaidArray' :: Maybe Text
device = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:numberOfDisks:RaidArray' :: Maybe Int
numberOfDisks = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZone:RaidArray' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:RaidArray' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:raidArrayId:RaidArray' :: Maybe Text
raidArrayId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeType:RaidArray' :: Maybe Text
volumeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:stackId:RaidArray' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:mountPoint:RaidArray' :: Maybe Text
mountPoint = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The instance ID.
raidArray_instanceId :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_instanceId :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_instanceId = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:RaidArray' :: RaidArray -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:instanceId:RaidArray' :: Maybe Text
instanceId = Maybe Text
a} :: RaidArray)

-- | The array\'s size.
raidArray_size :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Int)
raidArray_size :: (Maybe Int -> f (Maybe Int)) -> RaidArray -> f RaidArray
raidArray_size = (RaidArray -> Maybe Int)
-> (RaidArray -> Maybe Int -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Int
size :: Maybe Int
$sel:size:RaidArray' :: RaidArray -> Maybe Int
size} -> Maybe Int
size) (\s :: RaidArray
s@RaidArray' {} Maybe Int
a -> RaidArray
s {$sel:size:RaidArray' :: Maybe Int
size = Maybe Int
a} :: RaidArray)

-- | For PIOPS volumes, the IOPS per disk.
raidArray_iops :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Int)
raidArray_iops :: (Maybe Int -> f (Maybe Int)) -> RaidArray -> f RaidArray
raidArray_iops = (RaidArray -> Maybe Int)
-> (RaidArray -> Maybe Int -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Int
iops :: Maybe Int
$sel:iops:RaidArray' :: RaidArray -> Maybe Int
iops} -> Maybe Int
iops) (\s :: RaidArray
s@RaidArray' {} Maybe Int
a -> RaidArray
s {$sel:iops:RaidArray' :: Maybe Int
iops = Maybe Int
a} :: RaidArray)

-- | When the RAID array was created.
raidArray_createdAt :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_createdAt :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_createdAt = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
createdAt :: Maybe Text
$sel:createdAt:RaidArray' :: RaidArray -> Maybe Text
createdAt} -> Maybe Text
createdAt) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:createdAt:RaidArray' :: Maybe Text
createdAt = Maybe Text
a} :: RaidArray)

-- | The <http://en.wikipedia.org/wiki/Standard_RAID_levels RAID level>.
raidArray_raidLevel :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Int)
raidArray_raidLevel :: (Maybe Int -> f (Maybe Int)) -> RaidArray -> f RaidArray
raidArray_raidLevel = (RaidArray -> Maybe Int)
-> (RaidArray -> Maybe Int -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Int
raidLevel :: Maybe Int
$sel:raidLevel:RaidArray' :: RaidArray -> Maybe Int
raidLevel} -> Maybe Int
raidLevel) (\s :: RaidArray
s@RaidArray' {} Maybe Int
a -> RaidArray
s {$sel:raidLevel:RaidArray' :: Maybe Int
raidLevel = Maybe Int
a} :: RaidArray)

-- | The array\'s Linux device. For example \/dev\/mdadm0.
raidArray_device :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_device :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_device = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
device :: Maybe Text
$sel:device:RaidArray' :: RaidArray -> Maybe Text
device} -> Maybe Text
device) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:device:RaidArray' :: Maybe Text
device = Maybe Text
a} :: RaidArray)

-- | The number of disks in the array.
raidArray_numberOfDisks :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Int)
raidArray_numberOfDisks :: (Maybe Int -> f (Maybe Int)) -> RaidArray -> f RaidArray
raidArray_numberOfDisks = (RaidArray -> Maybe Int)
-> (RaidArray -> Maybe Int -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Int
numberOfDisks :: Maybe Int
$sel:numberOfDisks:RaidArray' :: RaidArray -> Maybe Int
numberOfDisks} -> Maybe Int
numberOfDisks) (\s :: RaidArray
s@RaidArray' {} Maybe Int
a -> RaidArray
s {$sel:numberOfDisks:RaidArray' :: Maybe Int
numberOfDisks = Maybe Int
a} :: RaidArray)

-- | The array\'s Availability Zone. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/rande.html Regions and Endpoints>.
raidArray_availabilityZone :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_availabilityZone = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:RaidArray' :: RaidArray -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:availabilityZone:RaidArray' :: Maybe Text
availabilityZone = Maybe Text
a} :: RaidArray)

-- | The array name.
raidArray_name :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_name :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_name = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
name :: Maybe Text
$sel:name:RaidArray' :: RaidArray -> Maybe Text
name} -> Maybe Text
name) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:name:RaidArray' :: Maybe Text
name = Maybe Text
a} :: RaidArray)

-- | The array ID.
raidArray_raidArrayId :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_raidArrayId :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_raidArrayId = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
raidArrayId :: Maybe Text
$sel:raidArrayId:RaidArray' :: RaidArray -> Maybe Text
raidArrayId} -> Maybe Text
raidArrayId) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:raidArrayId:RaidArray' :: Maybe Text
raidArrayId = Maybe Text
a} :: RaidArray)

-- | The volume type, standard or PIOPS.
raidArray_volumeType :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_volumeType :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_volumeType = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
volumeType :: Maybe Text
$sel:volumeType:RaidArray' :: RaidArray -> Maybe Text
volumeType} -> Maybe Text
volumeType) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:volumeType:RaidArray' :: Maybe Text
volumeType = Maybe Text
a} :: RaidArray)

-- | The stack ID.
raidArray_stackId :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_stackId :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_stackId = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
stackId :: Maybe Text
$sel:stackId:RaidArray' :: RaidArray -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:stackId:RaidArray' :: Maybe Text
stackId = Maybe Text
a} :: RaidArray)

-- | The array\'s mount point.
raidArray_mountPoint :: Lens.Lens' RaidArray (Prelude.Maybe Prelude.Text)
raidArray_mountPoint :: (Maybe Text -> f (Maybe Text)) -> RaidArray -> f RaidArray
raidArray_mountPoint = (RaidArray -> Maybe Text)
-> (RaidArray -> Maybe Text -> RaidArray)
-> Lens RaidArray RaidArray (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RaidArray' {Maybe Text
mountPoint :: Maybe Text
$sel:mountPoint:RaidArray' :: RaidArray -> Maybe Text
mountPoint} -> Maybe Text
mountPoint) (\s :: RaidArray
s@RaidArray' {} Maybe Text
a -> RaidArray
s {$sel:mountPoint:RaidArray' :: Maybe Text
mountPoint = Maybe Text
a} :: RaidArray)

instance Core.FromJSON RaidArray where
  parseJSON :: Value -> Parser RaidArray
parseJSON =
    String -> (Object -> Parser RaidArray) -> Value -> Parser RaidArray
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"RaidArray"
      ( \Object
x ->
          Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RaidArray
RaidArray'
            (Maybe Text
 -> Maybe Int
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> RaidArray)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
forall (f :: * -> *) a b. Functor 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
"InstanceId")
            Parser
  (Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Int)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Size")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Iops")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
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
"CreatedAt")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RaidLevel")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
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
"Device")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NumberOfDisks")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> RaidArray)
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
"AvailabilityZone")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> RaidArray)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> RaidArray)
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
"Name")
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> RaidArray)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> RaidArray)
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
"RaidArrayId")
            Parser (Maybe Text -> Maybe Text -> Maybe Text -> RaidArray)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> RaidArray)
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 -> Maybe Text -> RaidArray)
-> Parser (Maybe Text) -> Parser (Maybe Text -> RaidArray)
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
"StackId")
            Parser (Maybe Text -> RaidArray)
-> Parser (Maybe Text) -> Parser RaidArray
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
"MountPoint")
      )

instance Prelude.Hashable RaidArray

instance Prelude.NFData RaidArray