{-# 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.ElastiCache.Types.NodeGroupMemberUpdateStatus
-- 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.ElastiCache.Types.NodeGroupMemberUpdateStatus where

import qualified Amazonka.Core as Core
import Amazonka.ElastiCache.Types.NodeUpdateInitiatedBy
import Amazonka.ElastiCache.Types.NodeUpdateStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The status of the service update on the node group member
--
-- /See:/ 'newNodeGroupMemberUpdateStatus' smart constructor.
data NodeGroupMemberUpdateStatus = NodeGroupMemberUpdateStatus'
  { -- | The end date of the update for a node
    NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateEndDate :: Prelude.Maybe Core.ISO8601,
    -- | Reflects whether the update was initiated by the customer or
    -- automatically applied
    NodeGroupMemberUpdateStatus -> Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy :: Prelude.Maybe NodeUpdateInitiatedBy,
    -- | The date when the NodeUpdateStatus was last modified
    NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateStatusModifiedDate :: Prelude.Maybe Core.ISO8601,
    -- | The cache cluster ID
    NodeGroupMemberUpdateStatus -> Maybe Text
cacheClusterId :: Prelude.Maybe Prelude.Text,
    -- | The node ID of the cache cluster
    NodeGroupMemberUpdateStatus -> Maybe Text
cacheNodeId :: Prelude.Maybe Prelude.Text,
    -- | The date when the update is triggered
    NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateInitiatedDate :: Prelude.Maybe Core.ISO8601,
    -- | The start date of the update for a node
    NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateStartDate :: Prelude.Maybe Core.ISO8601,
    -- | The update status of the node
    NodeGroupMemberUpdateStatus -> Maybe NodeUpdateStatus
nodeUpdateStatus :: Prelude.Maybe NodeUpdateStatus,
    -- | The deletion date of the node
    NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeDeletionDate :: Prelude.Maybe Core.ISO8601
  }
  deriving (NodeGroupMemberUpdateStatus -> NodeGroupMemberUpdateStatus -> Bool
(NodeGroupMemberUpdateStatus
 -> NodeGroupMemberUpdateStatus -> Bool)
-> (NodeGroupMemberUpdateStatus
    -> NodeGroupMemberUpdateStatus -> Bool)
-> Eq NodeGroupMemberUpdateStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NodeGroupMemberUpdateStatus -> NodeGroupMemberUpdateStatus -> Bool
$c/= :: NodeGroupMemberUpdateStatus -> NodeGroupMemberUpdateStatus -> Bool
== :: NodeGroupMemberUpdateStatus -> NodeGroupMemberUpdateStatus -> Bool
$c== :: NodeGroupMemberUpdateStatus -> NodeGroupMemberUpdateStatus -> Bool
Prelude.Eq, ReadPrec [NodeGroupMemberUpdateStatus]
ReadPrec NodeGroupMemberUpdateStatus
Int -> ReadS NodeGroupMemberUpdateStatus
ReadS [NodeGroupMemberUpdateStatus]
(Int -> ReadS NodeGroupMemberUpdateStatus)
-> ReadS [NodeGroupMemberUpdateStatus]
-> ReadPrec NodeGroupMemberUpdateStatus
-> ReadPrec [NodeGroupMemberUpdateStatus]
-> Read NodeGroupMemberUpdateStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NodeGroupMemberUpdateStatus]
$creadListPrec :: ReadPrec [NodeGroupMemberUpdateStatus]
readPrec :: ReadPrec NodeGroupMemberUpdateStatus
$creadPrec :: ReadPrec NodeGroupMemberUpdateStatus
readList :: ReadS [NodeGroupMemberUpdateStatus]
$creadList :: ReadS [NodeGroupMemberUpdateStatus]
readsPrec :: Int -> ReadS NodeGroupMemberUpdateStatus
$creadsPrec :: Int -> ReadS NodeGroupMemberUpdateStatus
Prelude.Read, Int -> NodeGroupMemberUpdateStatus -> ShowS
[NodeGroupMemberUpdateStatus] -> ShowS
NodeGroupMemberUpdateStatus -> String
(Int -> NodeGroupMemberUpdateStatus -> ShowS)
-> (NodeGroupMemberUpdateStatus -> String)
-> ([NodeGroupMemberUpdateStatus] -> ShowS)
-> Show NodeGroupMemberUpdateStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NodeGroupMemberUpdateStatus] -> ShowS
$cshowList :: [NodeGroupMemberUpdateStatus] -> ShowS
show :: NodeGroupMemberUpdateStatus -> String
$cshow :: NodeGroupMemberUpdateStatus -> String
showsPrec :: Int -> NodeGroupMemberUpdateStatus -> ShowS
$cshowsPrec :: Int -> NodeGroupMemberUpdateStatus -> ShowS
Prelude.Show, (forall x.
 NodeGroupMemberUpdateStatus -> Rep NodeGroupMemberUpdateStatus x)
-> (forall x.
    Rep NodeGroupMemberUpdateStatus x -> NodeGroupMemberUpdateStatus)
-> Generic NodeGroupMemberUpdateStatus
forall x.
Rep NodeGroupMemberUpdateStatus x -> NodeGroupMemberUpdateStatus
forall x.
NodeGroupMemberUpdateStatus -> Rep NodeGroupMemberUpdateStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NodeGroupMemberUpdateStatus x -> NodeGroupMemberUpdateStatus
$cfrom :: forall x.
NodeGroupMemberUpdateStatus -> Rep NodeGroupMemberUpdateStatus x
Prelude.Generic)

-- |
-- Create a value of 'NodeGroupMemberUpdateStatus' 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:
--
-- 'nodeUpdateEndDate', 'nodeGroupMemberUpdateStatus_nodeUpdateEndDate' - The end date of the update for a node
--
-- 'nodeUpdateInitiatedBy', 'nodeGroupMemberUpdateStatus_nodeUpdateInitiatedBy' - Reflects whether the update was initiated by the customer or
-- automatically applied
--
-- 'nodeUpdateStatusModifiedDate', 'nodeGroupMemberUpdateStatus_nodeUpdateStatusModifiedDate' - The date when the NodeUpdateStatus was last modified
--
-- 'cacheClusterId', 'nodeGroupMemberUpdateStatus_cacheClusterId' - The cache cluster ID
--
-- 'cacheNodeId', 'nodeGroupMemberUpdateStatus_cacheNodeId' - The node ID of the cache cluster
--
-- 'nodeUpdateInitiatedDate', 'nodeGroupMemberUpdateStatus_nodeUpdateInitiatedDate' - The date when the update is triggered
--
-- 'nodeUpdateStartDate', 'nodeGroupMemberUpdateStatus_nodeUpdateStartDate' - The start date of the update for a node
--
-- 'nodeUpdateStatus', 'nodeGroupMemberUpdateStatus_nodeUpdateStatus' - The update status of the node
--
-- 'nodeDeletionDate', 'nodeGroupMemberUpdateStatus_nodeDeletionDate' - The deletion date of the node
newNodeGroupMemberUpdateStatus ::
  NodeGroupMemberUpdateStatus
newNodeGroupMemberUpdateStatus :: NodeGroupMemberUpdateStatus
newNodeGroupMemberUpdateStatus =
  NodeGroupMemberUpdateStatus' :: Maybe ISO8601
-> Maybe NodeUpdateInitiatedBy
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe NodeUpdateStatus
-> Maybe ISO8601
-> NodeGroupMemberUpdateStatus
NodeGroupMemberUpdateStatus'
    { $sel:nodeUpdateEndDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateEndDate =
        Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeUpdateInitiatedBy:NodeGroupMemberUpdateStatus' :: Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy = Maybe NodeUpdateInitiatedBy
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeUpdateStatusModifiedDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateStatusModifiedDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:cacheClusterId:NodeGroupMemberUpdateStatus' :: Maybe Text
cacheClusterId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cacheNodeId:NodeGroupMemberUpdateStatus' :: Maybe Text
cacheNodeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeUpdateInitiatedDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateInitiatedDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeUpdateStartDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateStartDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeUpdateStatus:NodeGroupMemberUpdateStatus' :: Maybe NodeUpdateStatus
nodeUpdateStatus = Maybe NodeUpdateStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeDeletionDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeDeletionDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing
    }

-- | The end date of the update for a node
nodeGroupMemberUpdateStatus_nodeUpdateEndDate :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.UTCTime)
nodeGroupMemberUpdateStatus_nodeUpdateEndDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateEndDate = (NodeGroupMemberUpdateStatus -> Maybe ISO8601)
-> (NodeGroupMemberUpdateStatus
    -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe ISO8601
nodeUpdateEndDate :: Maybe ISO8601
$sel:nodeUpdateEndDate:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateEndDate} -> Maybe ISO8601
nodeUpdateEndDate) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe ISO8601
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateEndDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateEndDate = Maybe ISO8601
a} :: NodeGroupMemberUpdateStatus) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus
-> f NodeGroupMemberUpdateStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Reflects whether the update was initiated by the customer or
-- automatically applied
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedBy :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe NodeUpdateInitiatedBy)
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedBy :: (Maybe NodeUpdateInitiatedBy -> f (Maybe NodeUpdateInitiatedBy))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedBy = (NodeGroupMemberUpdateStatus -> Maybe NodeUpdateInitiatedBy)
-> (NodeGroupMemberUpdateStatus
    -> Maybe NodeUpdateInitiatedBy -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe NodeUpdateInitiatedBy)
     (Maybe NodeUpdateInitiatedBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy :: Maybe NodeUpdateInitiatedBy
$sel:nodeUpdateInitiatedBy:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy} -> Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe NodeUpdateInitiatedBy
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateInitiatedBy:NodeGroupMemberUpdateStatus' :: Maybe NodeUpdateInitiatedBy
nodeUpdateInitiatedBy = Maybe NodeUpdateInitiatedBy
a} :: NodeGroupMemberUpdateStatus)

-- | The date when the NodeUpdateStatus was last modified
nodeGroupMemberUpdateStatus_nodeUpdateStatusModifiedDate :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.UTCTime)
nodeGroupMemberUpdateStatus_nodeUpdateStatusModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateStatusModifiedDate = (NodeGroupMemberUpdateStatus -> Maybe ISO8601)
-> (NodeGroupMemberUpdateStatus
    -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe ISO8601
nodeUpdateStatusModifiedDate :: Maybe ISO8601
$sel:nodeUpdateStatusModifiedDate:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateStatusModifiedDate} -> Maybe ISO8601
nodeUpdateStatusModifiedDate) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe ISO8601
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateStatusModifiedDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateStatusModifiedDate = Maybe ISO8601
a} :: NodeGroupMemberUpdateStatus) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus
-> f NodeGroupMemberUpdateStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The cache cluster ID
nodeGroupMemberUpdateStatus_cacheClusterId :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.Text)
nodeGroupMemberUpdateStatus_cacheClusterId :: (Maybe Text -> f (Maybe Text))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_cacheClusterId = (NodeGroupMemberUpdateStatus -> Maybe Text)
-> (NodeGroupMemberUpdateStatus
    -> Maybe Text -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe Text
cacheClusterId :: Maybe Text
$sel:cacheClusterId:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe Text
cacheClusterId} -> Maybe Text
cacheClusterId) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe Text
a -> NodeGroupMemberUpdateStatus
s {$sel:cacheClusterId:NodeGroupMemberUpdateStatus' :: Maybe Text
cacheClusterId = Maybe Text
a} :: NodeGroupMemberUpdateStatus)

-- | The node ID of the cache cluster
nodeGroupMemberUpdateStatus_cacheNodeId :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.Text)
nodeGroupMemberUpdateStatus_cacheNodeId :: (Maybe Text -> f (Maybe Text))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_cacheNodeId = (NodeGroupMemberUpdateStatus -> Maybe Text)
-> (NodeGroupMemberUpdateStatus
    -> Maybe Text -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe Text
cacheNodeId :: Maybe Text
$sel:cacheNodeId:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe Text
cacheNodeId} -> Maybe Text
cacheNodeId) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe Text
a -> NodeGroupMemberUpdateStatus
s {$sel:cacheNodeId:NodeGroupMemberUpdateStatus' :: Maybe Text
cacheNodeId = Maybe Text
a} :: NodeGroupMemberUpdateStatus)

-- | The date when the update is triggered
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedDate :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.UTCTime)
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateInitiatedDate = (NodeGroupMemberUpdateStatus -> Maybe ISO8601)
-> (NodeGroupMemberUpdateStatus
    -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe ISO8601
nodeUpdateInitiatedDate :: Maybe ISO8601
$sel:nodeUpdateInitiatedDate:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateInitiatedDate} -> Maybe ISO8601
nodeUpdateInitiatedDate) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe ISO8601
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateInitiatedDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateInitiatedDate = Maybe ISO8601
a} :: NodeGroupMemberUpdateStatus) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus
-> f NodeGroupMemberUpdateStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The start date of the update for a node
nodeGroupMemberUpdateStatus_nodeUpdateStartDate :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.UTCTime)
nodeGroupMemberUpdateStatus_nodeUpdateStartDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateStartDate = (NodeGroupMemberUpdateStatus -> Maybe ISO8601)
-> (NodeGroupMemberUpdateStatus
    -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe ISO8601
nodeUpdateStartDate :: Maybe ISO8601
$sel:nodeUpdateStartDate:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeUpdateStartDate} -> Maybe ISO8601
nodeUpdateStartDate) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe ISO8601
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateStartDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeUpdateStartDate = Maybe ISO8601
a} :: NodeGroupMemberUpdateStatus) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus
-> f NodeGroupMemberUpdateStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The update status of the node
nodeGroupMemberUpdateStatus_nodeUpdateStatus :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe NodeUpdateStatus)
nodeGroupMemberUpdateStatus_nodeUpdateStatus :: (Maybe NodeUpdateStatus -> f (Maybe NodeUpdateStatus))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeUpdateStatus = (NodeGroupMemberUpdateStatus -> Maybe NodeUpdateStatus)
-> (NodeGroupMemberUpdateStatus
    -> Maybe NodeUpdateStatus -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe NodeUpdateStatus)
     (Maybe NodeUpdateStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe NodeUpdateStatus
nodeUpdateStatus :: Maybe NodeUpdateStatus
$sel:nodeUpdateStatus:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe NodeUpdateStatus
nodeUpdateStatus} -> Maybe NodeUpdateStatus
nodeUpdateStatus) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe NodeUpdateStatus
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeUpdateStatus:NodeGroupMemberUpdateStatus' :: Maybe NodeUpdateStatus
nodeUpdateStatus = Maybe NodeUpdateStatus
a} :: NodeGroupMemberUpdateStatus)

-- | The deletion date of the node
nodeGroupMemberUpdateStatus_nodeDeletionDate :: Lens.Lens' NodeGroupMemberUpdateStatus (Prelude.Maybe Prelude.UTCTime)
nodeGroupMemberUpdateStatus_nodeDeletionDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus
nodeGroupMemberUpdateStatus_nodeDeletionDate = (NodeGroupMemberUpdateStatus -> Maybe ISO8601)
-> (NodeGroupMemberUpdateStatus
    -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Lens
     NodeGroupMemberUpdateStatus
     NodeGroupMemberUpdateStatus
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NodeGroupMemberUpdateStatus' {Maybe ISO8601
nodeDeletionDate :: Maybe ISO8601
$sel:nodeDeletionDate:NodeGroupMemberUpdateStatus' :: NodeGroupMemberUpdateStatus -> Maybe ISO8601
nodeDeletionDate} -> Maybe ISO8601
nodeDeletionDate) (\s :: NodeGroupMemberUpdateStatus
s@NodeGroupMemberUpdateStatus' {} Maybe ISO8601
a -> NodeGroupMemberUpdateStatus
s {$sel:nodeDeletionDate:NodeGroupMemberUpdateStatus' :: Maybe ISO8601
nodeDeletionDate = Maybe ISO8601
a} :: NodeGroupMemberUpdateStatus) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> NodeGroupMemberUpdateStatus -> f NodeGroupMemberUpdateStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> NodeGroupMemberUpdateStatus
-> f NodeGroupMemberUpdateStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance Core.FromXML NodeGroupMemberUpdateStatus where
  parseXML :: [Node] -> Either String NodeGroupMemberUpdateStatus
parseXML [Node]
x =
    Maybe ISO8601
-> Maybe NodeUpdateInitiatedBy
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe NodeUpdateStatus
-> Maybe ISO8601
-> NodeGroupMemberUpdateStatus
NodeGroupMemberUpdateStatus'
      (Maybe ISO8601
 -> Maybe NodeUpdateInitiatedBy
 -> Maybe ISO8601
 -> Maybe Text
 -> Maybe Text
 -> Maybe ISO8601
 -> Maybe ISO8601
 -> Maybe NodeUpdateStatus
 -> Maybe ISO8601
 -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe NodeUpdateInitiatedBy
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateEndDate")
      Either
  String
  (Maybe NodeUpdateInitiatedBy
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe NodeUpdateInitiatedBy)
-> Either
     String
     (Maybe ISO8601
      -> Maybe Text
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe NodeUpdateInitiatedBy)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateInitiatedBy")
      Either
  String
  (Maybe ISO8601
   -> Maybe Text
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateStatusModifiedDate")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheClusterId")
      Either
  String
  (Maybe Text
   -> Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheNodeId")
      Either
  String
  (Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe ISO8601
      -> Maybe NodeUpdateStatus
      -> Maybe ISO8601
      -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateInitiatedDate")
      Either
  String
  (Maybe ISO8601
   -> Maybe NodeUpdateStatus
   -> Maybe ISO8601
   -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe NodeUpdateStatus
      -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateStartDate")
      Either
  String
  (Maybe NodeUpdateStatus
   -> Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe NodeUpdateStatus)
-> Either String (Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe NodeUpdateStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeUpdateStatus")
      Either String (Maybe ISO8601 -> NodeGroupMemberUpdateStatus)
-> Either String (Maybe ISO8601)
-> Either String NodeGroupMemberUpdateStatus
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NodeDeletionDate")

instance Prelude.Hashable NodeGroupMemberUpdateStatus

instance Prelude.NFData NodeGroupMemberUpdateStatus