{-# 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.OpsWorks.Types.RaidArray where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RaidArray = RaidArray'
{
RaidArray -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Int
size :: Prelude.Maybe Prelude.Int,
RaidArray -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
RaidArray -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Int
raidLevel :: Prelude.Maybe Prelude.Int,
RaidArray -> Maybe Text
device :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Int
numberOfDisks :: Prelude.Maybe Prelude.Int,
RaidArray -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Text
raidArrayId :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Text
volumeType :: Prelude.Maybe Prelude.Text,
RaidArray -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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