{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Route53RecoveryReadiness.GetCell
-- 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)
--
-- Returns information about a Cell.
module Amazonka.Route53RecoveryReadiness.GetCell
  ( -- * Creating a Request
    GetCell (..),
    newGetCell,

    -- * Request Lenses
    getCell_cellName,

    -- * Destructuring the Response
    GetCellResponse (..),
    newGetCellResponse,

    -- * Response Lenses
    getCellResponse_cells,
    getCellResponse_parentReadinessScopes,
    getCellResponse_cellName,
    getCellResponse_cellArn,
    getCellResponse_tags,
    getCellResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53RecoveryReadiness.Types

-- | /See:/ 'newGetCell' smart constructor.
data GetCell = GetCell'
  { -- | The Cell to get
    GetCell -> Text
cellName :: Prelude.Text
  }
  deriving (GetCell -> GetCell -> Bool
(GetCell -> GetCell -> Bool)
-> (GetCell -> GetCell -> Bool) -> Eq GetCell
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCell -> GetCell -> Bool
$c/= :: GetCell -> GetCell -> Bool
== :: GetCell -> GetCell -> Bool
$c== :: GetCell -> GetCell -> Bool
Prelude.Eq, ReadPrec [GetCell]
ReadPrec GetCell
Int -> ReadS GetCell
ReadS [GetCell]
(Int -> ReadS GetCell)
-> ReadS [GetCell]
-> ReadPrec GetCell
-> ReadPrec [GetCell]
-> Read GetCell
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCell]
$creadListPrec :: ReadPrec [GetCell]
readPrec :: ReadPrec GetCell
$creadPrec :: ReadPrec GetCell
readList :: ReadS [GetCell]
$creadList :: ReadS [GetCell]
readsPrec :: Int -> ReadS GetCell
$creadsPrec :: Int -> ReadS GetCell
Prelude.Read, Int -> GetCell -> ShowS
[GetCell] -> ShowS
GetCell -> String
(Int -> GetCell -> ShowS)
-> (GetCell -> String) -> ([GetCell] -> ShowS) -> Show GetCell
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCell] -> ShowS
$cshowList :: [GetCell] -> ShowS
show :: GetCell -> String
$cshow :: GetCell -> String
showsPrec :: Int -> GetCell -> ShowS
$cshowsPrec :: Int -> GetCell -> ShowS
Prelude.Show, (forall x. GetCell -> Rep GetCell x)
-> (forall x. Rep GetCell x -> GetCell) -> Generic GetCell
forall x. Rep GetCell x -> GetCell
forall x. GetCell -> Rep GetCell x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCell x -> GetCell
$cfrom :: forall x. GetCell -> Rep GetCell x
Prelude.Generic)

-- |
-- Create a value of 'GetCell' 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:
--
-- 'cellName', 'getCell_cellName' - The Cell to get
newGetCell ::
  -- | 'cellName'
  Prelude.Text ->
  GetCell
newGetCell :: Text -> GetCell
newGetCell Text
pCellName_ =
  GetCell' :: Text -> GetCell
GetCell' {$sel:cellName:GetCell' :: Text
cellName = Text
pCellName_}

-- | The Cell to get
getCell_cellName :: Lens.Lens' GetCell Prelude.Text
getCell_cellName :: (Text -> f Text) -> GetCell -> f GetCell
getCell_cellName = (GetCell -> Text)
-> (GetCell -> Text -> GetCell) -> Lens GetCell GetCell Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCell' {Text
cellName :: Text
$sel:cellName:GetCell' :: GetCell -> Text
cellName} -> Text
cellName) (\s :: GetCell
s@GetCell' {} Text
a -> GetCell
s {$sel:cellName:GetCell' :: Text
cellName = Text
a} :: GetCell)

instance Core.AWSRequest GetCell where
  type AWSResponse GetCell = GetCellResponse
  request :: GetCell -> Request GetCell
request = Service -> GetCell -> Request GetCell
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetCell
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetCell)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetCell))
-> Logger
-> Service
-> Proxy GetCell
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetCell)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCellResponse
GetCellResponse'
            (Maybe [Text]
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetCellResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCellResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cells" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCellResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCellResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"parentReadinessScopes"
                            Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCellResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Maybe (HashMap Text Text) -> Int -> GetCellResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cellName")
            Either
  String
  (Maybe Text -> Maybe (HashMap Text Text) -> Int -> GetCellResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> GetCellResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cellArn")
            Either String (Maybe (HashMap Text Text) -> Int -> GetCellResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetCellResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetCellResponse)
-> Either String Int -> Either String GetCellResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetCell

instance Prelude.NFData GetCell

instance Core.ToHeaders GetCell where
  toHeaders :: GetCell -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetCell -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath GetCell where
  toPath :: GetCell -> ByteString
toPath GetCell' {Text
cellName :: Text
$sel:cellName:GetCell' :: GetCell -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/cells/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
cellName]

instance Core.ToQuery GetCell where
  toQuery :: GetCell -> QueryString
toQuery = QueryString -> GetCell -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetCellResponse' smart constructor.
data GetCellResponse = GetCellResponse'
  { -- | A list of Cell arns
    GetCellResponse -> Maybe [Text]
cells :: Prelude.Maybe [Prelude.Text],
    -- | A list of Cell ARNs and\/or RecoveryGroup ARNs
    GetCellResponse -> Maybe [Text]
parentReadinessScopes :: Prelude.Maybe [Prelude.Text],
    -- | The name of the Cell
    GetCellResponse -> Maybe Text
cellName :: Prelude.Maybe Prelude.Text,
    -- | The arn for the Cell
    GetCellResponse -> Maybe Text
cellArn :: Prelude.Maybe Prelude.Text,
    GetCellResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetCellResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetCellResponse -> GetCellResponse -> Bool
(GetCellResponse -> GetCellResponse -> Bool)
-> (GetCellResponse -> GetCellResponse -> Bool)
-> Eq GetCellResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCellResponse -> GetCellResponse -> Bool
$c/= :: GetCellResponse -> GetCellResponse -> Bool
== :: GetCellResponse -> GetCellResponse -> Bool
$c== :: GetCellResponse -> GetCellResponse -> Bool
Prelude.Eq, ReadPrec [GetCellResponse]
ReadPrec GetCellResponse
Int -> ReadS GetCellResponse
ReadS [GetCellResponse]
(Int -> ReadS GetCellResponse)
-> ReadS [GetCellResponse]
-> ReadPrec GetCellResponse
-> ReadPrec [GetCellResponse]
-> Read GetCellResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCellResponse]
$creadListPrec :: ReadPrec [GetCellResponse]
readPrec :: ReadPrec GetCellResponse
$creadPrec :: ReadPrec GetCellResponse
readList :: ReadS [GetCellResponse]
$creadList :: ReadS [GetCellResponse]
readsPrec :: Int -> ReadS GetCellResponse
$creadsPrec :: Int -> ReadS GetCellResponse
Prelude.Read, Int -> GetCellResponse -> ShowS
[GetCellResponse] -> ShowS
GetCellResponse -> String
(Int -> GetCellResponse -> ShowS)
-> (GetCellResponse -> String)
-> ([GetCellResponse] -> ShowS)
-> Show GetCellResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCellResponse] -> ShowS
$cshowList :: [GetCellResponse] -> ShowS
show :: GetCellResponse -> String
$cshow :: GetCellResponse -> String
showsPrec :: Int -> GetCellResponse -> ShowS
$cshowsPrec :: Int -> GetCellResponse -> ShowS
Prelude.Show, (forall x. GetCellResponse -> Rep GetCellResponse x)
-> (forall x. Rep GetCellResponse x -> GetCellResponse)
-> Generic GetCellResponse
forall x. Rep GetCellResponse x -> GetCellResponse
forall x. GetCellResponse -> Rep GetCellResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCellResponse x -> GetCellResponse
$cfrom :: forall x. GetCellResponse -> Rep GetCellResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetCellResponse' 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:
--
-- 'cells', 'getCellResponse_cells' - A list of Cell arns
--
-- 'parentReadinessScopes', 'getCellResponse_parentReadinessScopes' - A list of Cell ARNs and\/or RecoveryGroup ARNs
--
-- 'cellName', 'getCellResponse_cellName' - The name of the Cell
--
-- 'cellArn', 'getCellResponse_cellArn' - The arn for the Cell
--
-- 'tags', 'getCellResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'getCellResponse_httpStatus' - The response's http status code.
newGetCellResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetCellResponse
newGetCellResponse :: Int -> GetCellResponse
newGetCellResponse Int
pHttpStatus_ =
  GetCellResponse' :: Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCellResponse
GetCellResponse'
    { $sel:cells:GetCellResponse' :: Maybe [Text]
cells = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:parentReadinessScopes:GetCellResponse' :: Maybe [Text]
parentReadinessScopes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:cellName:GetCellResponse' :: Maybe Text
cellName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cellArn:GetCellResponse' :: Maybe Text
cellArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetCellResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetCellResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of Cell arns
getCellResponse_cells :: Lens.Lens' GetCellResponse (Prelude.Maybe [Prelude.Text])
getCellResponse_cells :: (Maybe [Text] -> f (Maybe [Text]))
-> GetCellResponse -> f GetCellResponse
getCellResponse_cells = (GetCellResponse -> Maybe [Text])
-> (GetCellResponse -> Maybe [Text] -> GetCellResponse)
-> Lens
     GetCellResponse GetCellResponse (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:GetCellResponse' :: GetCellResponse -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: GetCellResponse
s@GetCellResponse' {} Maybe [Text]
a -> GetCellResponse
s {$sel:cells:GetCellResponse' :: Maybe [Text]
cells = Maybe [Text]
a} :: GetCellResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> GetCellResponse -> f GetCellResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetCellResponse
-> f GetCellResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of Cell ARNs and\/or RecoveryGroup ARNs
getCellResponse_parentReadinessScopes :: Lens.Lens' GetCellResponse (Prelude.Maybe [Prelude.Text])
getCellResponse_parentReadinessScopes :: (Maybe [Text] -> f (Maybe [Text]))
-> GetCellResponse -> f GetCellResponse
getCellResponse_parentReadinessScopes = (GetCellResponse -> Maybe [Text])
-> (GetCellResponse -> Maybe [Text] -> GetCellResponse)
-> Lens
     GetCellResponse GetCellResponse (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Maybe [Text]
parentReadinessScopes :: Maybe [Text]
$sel:parentReadinessScopes:GetCellResponse' :: GetCellResponse -> Maybe [Text]
parentReadinessScopes} -> Maybe [Text]
parentReadinessScopes) (\s :: GetCellResponse
s@GetCellResponse' {} Maybe [Text]
a -> GetCellResponse
s {$sel:parentReadinessScopes:GetCellResponse' :: Maybe [Text]
parentReadinessScopes = Maybe [Text]
a} :: GetCellResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> GetCellResponse -> f GetCellResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetCellResponse
-> f GetCellResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the Cell
getCellResponse_cellName :: Lens.Lens' GetCellResponse (Prelude.Maybe Prelude.Text)
getCellResponse_cellName :: (Maybe Text -> f (Maybe Text))
-> GetCellResponse -> f GetCellResponse
getCellResponse_cellName = (GetCellResponse -> Maybe Text)
-> (GetCellResponse -> Maybe Text -> GetCellResponse)
-> Lens GetCellResponse GetCellResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Maybe Text
cellName :: Maybe Text
$sel:cellName:GetCellResponse' :: GetCellResponse -> Maybe Text
cellName} -> Maybe Text
cellName) (\s :: GetCellResponse
s@GetCellResponse' {} Maybe Text
a -> GetCellResponse
s {$sel:cellName:GetCellResponse' :: Maybe Text
cellName = Maybe Text
a} :: GetCellResponse)

-- | The arn for the Cell
getCellResponse_cellArn :: Lens.Lens' GetCellResponse (Prelude.Maybe Prelude.Text)
getCellResponse_cellArn :: (Maybe Text -> f (Maybe Text))
-> GetCellResponse -> f GetCellResponse
getCellResponse_cellArn = (GetCellResponse -> Maybe Text)
-> (GetCellResponse -> Maybe Text -> GetCellResponse)
-> Lens GetCellResponse GetCellResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Maybe Text
cellArn :: Maybe Text
$sel:cellArn:GetCellResponse' :: GetCellResponse -> Maybe Text
cellArn} -> Maybe Text
cellArn) (\s :: GetCellResponse
s@GetCellResponse' {} Maybe Text
a -> GetCellResponse
s {$sel:cellArn:GetCellResponse' :: Maybe Text
cellArn = Maybe Text
a} :: GetCellResponse)

-- | Undocumented member.
getCellResponse_tags :: Lens.Lens' GetCellResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getCellResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCellResponse -> f GetCellResponse
getCellResponse_tags = (GetCellResponse -> Maybe (HashMap Text Text))
-> (GetCellResponse
    -> Maybe (HashMap Text Text) -> GetCellResponse)
-> Lens
     GetCellResponse
     GetCellResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetCellResponse' :: GetCellResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetCellResponse
s@GetCellResponse' {} Maybe (HashMap Text Text)
a -> GetCellResponse
s {$sel:tags:GetCellResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetCellResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetCellResponse -> f GetCellResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCellResponse
-> f GetCellResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
getCellResponse_httpStatus :: Lens.Lens' GetCellResponse Prelude.Int
getCellResponse_httpStatus :: (Int -> f Int) -> GetCellResponse -> f GetCellResponse
getCellResponse_httpStatus = (GetCellResponse -> Int)
-> (GetCellResponse -> Int -> GetCellResponse)
-> Lens GetCellResponse GetCellResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCellResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetCellResponse' :: GetCellResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetCellResponse
s@GetCellResponse' {} Int
a -> GetCellResponse
s {$sel:httpStatus:GetCellResponse' :: Int
httpStatus = Int
a} :: GetCellResponse)

instance Prelude.NFData GetCellResponse