{-# 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.Kafka.Types.ClusterOperationInfo where
import qualified Amazonka.Core as Core
import Amazonka.Kafka.Types.ClusterOperationStep
import Amazonka.Kafka.Types.ErrorInfo
import Amazonka.Kafka.Types.MutableClusterInfo
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ClusterOperationInfo = ClusterOperationInfo'
{
ClusterOperationInfo -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
ClusterOperationInfo -> Maybe Text
clusterArn :: Prelude.Maybe Prelude.Text,
ClusterOperationInfo -> Maybe Text
clientRequestId :: Prelude.Maybe Prelude.Text,
ClusterOperationInfo -> Maybe MutableClusterInfo
targetClusterInfo :: Prelude.Maybe MutableClusterInfo,
ClusterOperationInfo -> Maybe MutableClusterInfo
sourceClusterInfo :: Prelude.Maybe MutableClusterInfo,
ClusterOperationInfo -> Maybe [ClusterOperationStep]
operationSteps :: Prelude.Maybe [ClusterOperationStep],
ClusterOperationInfo -> Maybe Text
operationState :: Prelude.Maybe Prelude.Text,
ClusterOperationInfo -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
ClusterOperationInfo -> Maybe Text
operationType :: Prelude.Maybe Prelude.Text,
ClusterOperationInfo -> Maybe Text
operationArn :: Prelude.Maybe Prelude.Text,
ClusterOperationInfo -> Maybe ErrorInfo
errorInfo :: Prelude.Maybe ErrorInfo
}
deriving (ClusterOperationInfo -> ClusterOperationInfo -> Bool
(ClusterOperationInfo -> ClusterOperationInfo -> Bool)
-> (ClusterOperationInfo -> ClusterOperationInfo -> Bool)
-> Eq ClusterOperationInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClusterOperationInfo -> ClusterOperationInfo -> Bool
$c/= :: ClusterOperationInfo -> ClusterOperationInfo -> Bool
== :: ClusterOperationInfo -> ClusterOperationInfo -> Bool
$c== :: ClusterOperationInfo -> ClusterOperationInfo -> Bool
Prelude.Eq, ReadPrec [ClusterOperationInfo]
ReadPrec ClusterOperationInfo
Int -> ReadS ClusterOperationInfo
ReadS [ClusterOperationInfo]
(Int -> ReadS ClusterOperationInfo)
-> ReadS [ClusterOperationInfo]
-> ReadPrec ClusterOperationInfo
-> ReadPrec [ClusterOperationInfo]
-> Read ClusterOperationInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClusterOperationInfo]
$creadListPrec :: ReadPrec [ClusterOperationInfo]
readPrec :: ReadPrec ClusterOperationInfo
$creadPrec :: ReadPrec ClusterOperationInfo
readList :: ReadS [ClusterOperationInfo]
$creadList :: ReadS [ClusterOperationInfo]
readsPrec :: Int -> ReadS ClusterOperationInfo
$creadsPrec :: Int -> ReadS ClusterOperationInfo
Prelude.Read, Int -> ClusterOperationInfo -> ShowS
[ClusterOperationInfo] -> ShowS
ClusterOperationInfo -> String
(Int -> ClusterOperationInfo -> ShowS)
-> (ClusterOperationInfo -> String)
-> ([ClusterOperationInfo] -> ShowS)
-> Show ClusterOperationInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClusterOperationInfo] -> ShowS
$cshowList :: [ClusterOperationInfo] -> ShowS
show :: ClusterOperationInfo -> String
$cshow :: ClusterOperationInfo -> String
showsPrec :: Int -> ClusterOperationInfo -> ShowS
$cshowsPrec :: Int -> ClusterOperationInfo -> ShowS
Prelude.Show, (forall x. ClusterOperationInfo -> Rep ClusterOperationInfo x)
-> (forall x. Rep ClusterOperationInfo x -> ClusterOperationInfo)
-> Generic ClusterOperationInfo
forall x. Rep ClusterOperationInfo x -> ClusterOperationInfo
forall x. ClusterOperationInfo -> Rep ClusterOperationInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClusterOperationInfo x -> ClusterOperationInfo
$cfrom :: forall x. ClusterOperationInfo -> Rep ClusterOperationInfo x
Prelude.Generic)
newClusterOperationInfo ::
ClusterOperationInfo
newClusterOperationInfo :: ClusterOperationInfo
newClusterOperationInfo =
ClusterOperationInfo' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo
ClusterOperationInfo'
{ $sel:creationTime:ClusterOperationInfo' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:clusterArn:ClusterOperationInfo' :: Maybe Text
clusterArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestId:ClusterOperationInfo' :: Maybe Text
clientRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:targetClusterInfo:ClusterOperationInfo' :: Maybe MutableClusterInfo
targetClusterInfo = Maybe MutableClusterInfo
forall a. Maybe a
Prelude.Nothing,
$sel:sourceClusterInfo:ClusterOperationInfo' :: Maybe MutableClusterInfo
sourceClusterInfo = Maybe MutableClusterInfo
forall a. Maybe a
Prelude.Nothing,
$sel:operationSteps:ClusterOperationInfo' :: Maybe [ClusterOperationStep]
operationSteps = Maybe [ClusterOperationStep]
forall a. Maybe a
Prelude.Nothing,
$sel:operationState:ClusterOperationInfo' :: Maybe Text
operationState = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:ClusterOperationInfo' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:operationType:ClusterOperationInfo' :: Maybe Text
operationType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operationArn:ClusterOperationInfo' :: Maybe Text
operationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:errorInfo:ClusterOperationInfo' :: Maybe ErrorInfo
errorInfo = Maybe ErrorInfo
forall a. Maybe a
Prelude.Nothing
}
clusterOperationInfo_creationTime :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.UTCTime)
clusterOperationInfo_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_creationTime = (ClusterOperationInfo -> Maybe POSIX)
-> (ClusterOperationInfo -> Maybe POSIX -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe POSIX
a -> ClusterOperationInfo
s {$sel:creationTime:ClusterOperationInfo' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ClusterOperationInfo) ((Maybe POSIX -> f (Maybe POSIX))
-> ClusterOperationInfo -> f ClusterOperationInfo)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ClusterOperationInfo
-> f ClusterOperationInfo
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
clusterOperationInfo_clusterArn :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.Text)
clusterOperationInfo_clusterArn :: (Maybe Text -> f (Maybe Text))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_clusterArn = (ClusterOperationInfo -> Maybe Text)
-> (ClusterOperationInfo -> Maybe Text -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo ClusterOperationInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe Text
clusterArn :: Maybe Text
$sel:clusterArn:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe Text
clusterArn} -> Maybe Text
clusterArn) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe Text
a -> ClusterOperationInfo
s {$sel:clusterArn:ClusterOperationInfo' :: Maybe Text
clusterArn = Maybe Text
a} :: ClusterOperationInfo)
clusterOperationInfo_clientRequestId :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.Text)
clusterOperationInfo_clientRequestId :: (Maybe Text -> f (Maybe Text))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_clientRequestId = (ClusterOperationInfo -> Maybe Text)
-> (ClusterOperationInfo -> Maybe Text -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo ClusterOperationInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe Text
clientRequestId :: Maybe Text
$sel:clientRequestId:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe Text
clientRequestId} -> Maybe Text
clientRequestId) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe Text
a -> ClusterOperationInfo
s {$sel:clientRequestId:ClusterOperationInfo' :: Maybe Text
clientRequestId = Maybe Text
a} :: ClusterOperationInfo)
clusterOperationInfo_targetClusterInfo :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe MutableClusterInfo)
clusterOperationInfo_targetClusterInfo :: (Maybe MutableClusterInfo -> f (Maybe MutableClusterInfo))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_targetClusterInfo = (ClusterOperationInfo -> Maybe MutableClusterInfo)
-> (ClusterOperationInfo
-> Maybe MutableClusterInfo -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe MutableClusterInfo)
(Maybe MutableClusterInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe MutableClusterInfo
targetClusterInfo :: Maybe MutableClusterInfo
$sel:targetClusterInfo:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe MutableClusterInfo
targetClusterInfo} -> Maybe MutableClusterInfo
targetClusterInfo) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe MutableClusterInfo
a -> ClusterOperationInfo
s {$sel:targetClusterInfo:ClusterOperationInfo' :: Maybe MutableClusterInfo
targetClusterInfo = Maybe MutableClusterInfo
a} :: ClusterOperationInfo)
clusterOperationInfo_sourceClusterInfo :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe MutableClusterInfo)
clusterOperationInfo_sourceClusterInfo :: (Maybe MutableClusterInfo -> f (Maybe MutableClusterInfo))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_sourceClusterInfo = (ClusterOperationInfo -> Maybe MutableClusterInfo)
-> (ClusterOperationInfo
-> Maybe MutableClusterInfo -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe MutableClusterInfo)
(Maybe MutableClusterInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe MutableClusterInfo
sourceClusterInfo :: Maybe MutableClusterInfo
$sel:sourceClusterInfo:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe MutableClusterInfo
sourceClusterInfo} -> Maybe MutableClusterInfo
sourceClusterInfo) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe MutableClusterInfo
a -> ClusterOperationInfo
s {$sel:sourceClusterInfo:ClusterOperationInfo' :: Maybe MutableClusterInfo
sourceClusterInfo = Maybe MutableClusterInfo
a} :: ClusterOperationInfo)
clusterOperationInfo_operationSteps :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe [ClusterOperationStep])
clusterOperationInfo_operationSteps :: (Maybe [ClusterOperationStep] -> f (Maybe [ClusterOperationStep]))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_operationSteps = (ClusterOperationInfo -> Maybe [ClusterOperationStep])
-> (ClusterOperationInfo
-> Maybe [ClusterOperationStep] -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe [ClusterOperationStep])
(Maybe [ClusterOperationStep])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe [ClusterOperationStep]
operationSteps :: Maybe [ClusterOperationStep]
$sel:operationSteps:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe [ClusterOperationStep]
operationSteps} -> Maybe [ClusterOperationStep]
operationSteps) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe [ClusterOperationStep]
a -> ClusterOperationInfo
s {$sel:operationSteps:ClusterOperationInfo' :: Maybe [ClusterOperationStep]
operationSteps = Maybe [ClusterOperationStep]
a} :: ClusterOperationInfo) ((Maybe [ClusterOperationStep] -> f (Maybe [ClusterOperationStep]))
-> ClusterOperationInfo -> f ClusterOperationInfo)
-> ((Maybe [ClusterOperationStep]
-> f (Maybe [ClusterOperationStep]))
-> Maybe [ClusterOperationStep]
-> f (Maybe [ClusterOperationStep]))
-> (Maybe [ClusterOperationStep]
-> f (Maybe [ClusterOperationStep]))
-> ClusterOperationInfo
-> f ClusterOperationInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ClusterOperationStep]
[ClusterOperationStep]
[ClusterOperationStep]
[ClusterOperationStep]
-> Iso
(Maybe [ClusterOperationStep])
(Maybe [ClusterOperationStep])
(Maybe [ClusterOperationStep])
(Maybe [ClusterOperationStep])
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
[ClusterOperationStep]
[ClusterOperationStep]
[ClusterOperationStep]
[ClusterOperationStep]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
clusterOperationInfo_operationState :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.Text)
clusterOperationInfo_operationState :: (Maybe Text -> f (Maybe Text))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_operationState = (ClusterOperationInfo -> Maybe Text)
-> (ClusterOperationInfo -> Maybe Text -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo ClusterOperationInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe Text
operationState :: Maybe Text
$sel:operationState:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe Text
operationState} -> Maybe Text
operationState) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe Text
a -> ClusterOperationInfo
s {$sel:operationState:ClusterOperationInfo' :: Maybe Text
operationState = Maybe Text
a} :: ClusterOperationInfo)
clusterOperationInfo_endTime :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.UTCTime)
clusterOperationInfo_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_endTime = (ClusterOperationInfo -> Maybe POSIX)
-> (ClusterOperationInfo -> Maybe POSIX -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe POSIX
a -> ClusterOperationInfo
s {$sel:endTime:ClusterOperationInfo' :: Maybe POSIX
endTime = Maybe POSIX
a} :: ClusterOperationInfo) ((Maybe POSIX -> f (Maybe POSIX))
-> ClusterOperationInfo -> f ClusterOperationInfo)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ClusterOperationInfo
-> f ClusterOperationInfo
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
clusterOperationInfo_operationType :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.Text)
clusterOperationInfo_operationType :: (Maybe Text -> f (Maybe Text))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_operationType = (ClusterOperationInfo -> Maybe Text)
-> (ClusterOperationInfo -> Maybe Text -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo ClusterOperationInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe Text
operationType :: Maybe Text
$sel:operationType:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe Text
operationType} -> Maybe Text
operationType) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe Text
a -> ClusterOperationInfo
s {$sel:operationType:ClusterOperationInfo' :: Maybe Text
operationType = Maybe Text
a} :: ClusterOperationInfo)
clusterOperationInfo_operationArn :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe Prelude.Text)
clusterOperationInfo_operationArn :: (Maybe Text -> f (Maybe Text))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_operationArn = (ClusterOperationInfo -> Maybe Text)
-> (ClusterOperationInfo -> Maybe Text -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo ClusterOperationInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe Text
operationArn :: Maybe Text
$sel:operationArn:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe Text
operationArn} -> Maybe Text
operationArn) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe Text
a -> ClusterOperationInfo
s {$sel:operationArn:ClusterOperationInfo' :: Maybe Text
operationArn = Maybe Text
a} :: ClusterOperationInfo)
clusterOperationInfo_errorInfo :: Lens.Lens' ClusterOperationInfo (Prelude.Maybe ErrorInfo)
clusterOperationInfo_errorInfo :: (Maybe ErrorInfo -> f (Maybe ErrorInfo))
-> ClusterOperationInfo -> f ClusterOperationInfo
clusterOperationInfo_errorInfo = (ClusterOperationInfo -> Maybe ErrorInfo)
-> (ClusterOperationInfo
-> Maybe ErrorInfo -> ClusterOperationInfo)
-> Lens
ClusterOperationInfo
ClusterOperationInfo
(Maybe ErrorInfo)
(Maybe ErrorInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterOperationInfo' {Maybe ErrorInfo
errorInfo :: Maybe ErrorInfo
$sel:errorInfo:ClusterOperationInfo' :: ClusterOperationInfo -> Maybe ErrorInfo
errorInfo} -> Maybe ErrorInfo
errorInfo) (\s :: ClusterOperationInfo
s@ClusterOperationInfo' {} Maybe ErrorInfo
a -> ClusterOperationInfo
s {$sel:errorInfo:ClusterOperationInfo' :: Maybe ErrorInfo
errorInfo = Maybe ErrorInfo
a} :: ClusterOperationInfo)
instance Core.FromJSON ClusterOperationInfo where
parseJSON :: Value -> Parser ClusterOperationInfo
parseJSON =
String
-> (Object -> Parser ClusterOperationInfo)
-> Value
-> Parser ClusterOperationInfo
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ClusterOperationInfo"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo
ClusterOperationInfo'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
forall (f :: * -> *) a b. Functor 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
"creationTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
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
"clusterArn")
Parser
(Maybe Text
-> Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe Text)
-> Parser
(Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
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
"clientRequestId")
Parser
(Maybe MutableClusterInfo
-> Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe MutableClusterInfo)
-> Parser
(Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MutableClusterInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"targetClusterInfo")
Parser
(Maybe MutableClusterInfo
-> Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe MutableClusterInfo)
-> Parser
(Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MutableClusterInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sourceClusterInfo")
Parser
(Maybe [ClusterOperationStep]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe [ClusterOperationStep])
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [ClusterOperationStep]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"operationSteps" Parser (Maybe (Maybe [ClusterOperationStep]))
-> Maybe [ClusterOperationStep]
-> Parser (Maybe [ClusterOperationStep])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ClusterOperationStep]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
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
"operationState")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorInfo
-> ClusterOperationInfo)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe ErrorInfo -> ClusterOperationInfo)
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
"endTime")
Parser
(Maybe Text
-> Maybe Text -> Maybe ErrorInfo -> ClusterOperationInfo)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe ErrorInfo -> ClusterOperationInfo)
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
"operationType")
Parser (Maybe Text -> Maybe ErrorInfo -> ClusterOperationInfo)
-> Parser (Maybe Text)
-> Parser (Maybe ErrorInfo -> ClusterOperationInfo)
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
"operationArn")
Parser (Maybe ErrorInfo -> ClusterOperationInfo)
-> Parser (Maybe ErrorInfo) -> Parser ClusterOperationInfo
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ErrorInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"errorInfo")
)
instance Prelude.Hashable ClusterOperationInfo
instance Prelude.NFData ClusterOperationInfo