{-# 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 #-}
module Amazonka.Route53RecoveryReadiness.GetResourceSet
(
GetResourceSet (..),
newGetResourceSet,
getResourceSet_resourceSetName,
GetResourceSetResponse (..),
newGetResourceSetResponse,
getResourceSetResponse_resourceSetName,
getResourceSetResponse_resourceSetType,
getResourceSetResponse_resources,
getResourceSetResponse_resourceSetArn,
getResourceSetResponse_tags,
getResourceSetResponse_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
data GetResourceSet = GetResourceSet'
{
GetResourceSet -> Text
resourceSetName :: Prelude.Text
}
deriving (GetResourceSet -> GetResourceSet -> Bool
(GetResourceSet -> GetResourceSet -> Bool)
-> (GetResourceSet -> GetResourceSet -> Bool) -> Eq GetResourceSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourceSet -> GetResourceSet -> Bool
$c/= :: GetResourceSet -> GetResourceSet -> Bool
== :: GetResourceSet -> GetResourceSet -> Bool
$c== :: GetResourceSet -> GetResourceSet -> Bool
Prelude.Eq, ReadPrec [GetResourceSet]
ReadPrec GetResourceSet
Int -> ReadS GetResourceSet
ReadS [GetResourceSet]
(Int -> ReadS GetResourceSet)
-> ReadS [GetResourceSet]
-> ReadPrec GetResourceSet
-> ReadPrec [GetResourceSet]
-> Read GetResourceSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourceSet]
$creadListPrec :: ReadPrec [GetResourceSet]
readPrec :: ReadPrec GetResourceSet
$creadPrec :: ReadPrec GetResourceSet
readList :: ReadS [GetResourceSet]
$creadList :: ReadS [GetResourceSet]
readsPrec :: Int -> ReadS GetResourceSet
$creadsPrec :: Int -> ReadS GetResourceSet
Prelude.Read, Int -> GetResourceSet -> ShowS
[GetResourceSet] -> ShowS
GetResourceSet -> String
(Int -> GetResourceSet -> ShowS)
-> (GetResourceSet -> String)
-> ([GetResourceSet] -> ShowS)
-> Show GetResourceSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourceSet] -> ShowS
$cshowList :: [GetResourceSet] -> ShowS
show :: GetResourceSet -> String
$cshow :: GetResourceSet -> String
showsPrec :: Int -> GetResourceSet -> ShowS
$cshowsPrec :: Int -> GetResourceSet -> ShowS
Prelude.Show, (forall x. GetResourceSet -> Rep GetResourceSet x)
-> (forall x. Rep GetResourceSet x -> GetResourceSet)
-> Generic GetResourceSet
forall x. Rep GetResourceSet x -> GetResourceSet
forall x. GetResourceSet -> Rep GetResourceSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResourceSet x -> GetResourceSet
$cfrom :: forall x. GetResourceSet -> Rep GetResourceSet x
Prelude.Generic)
newGetResourceSet ::
Prelude.Text ->
GetResourceSet
newGetResourceSet :: Text -> GetResourceSet
newGetResourceSet Text
pResourceSetName_ =
GetResourceSet' :: Text -> GetResourceSet
GetResourceSet'
{ $sel:resourceSetName:GetResourceSet' :: Text
resourceSetName =
Text
pResourceSetName_
}
getResourceSet_resourceSetName :: Lens.Lens' GetResourceSet Prelude.Text
getResourceSet_resourceSetName :: (Text -> f Text) -> GetResourceSet -> f GetResourceSet
getResourceSet_resourceSetName = (GetResourceSet -> Text)
-> (GetResourceSet -> Text -> GetResourceSet)
-> Lens GetResourceSet GetResourceSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSet' {Text
resourceSetName :: Text
$sel:resourceSetName:GetResourceSet' :: GetResourceSet -> Text
resourceSetName} -> Text
resourceSetName) (\s :: GetResourceSet
s@GetResourceSet' {} Text
a -> GetResourceSet
s {$sel:resourceSetName:GetResourceSet' :: Text
resourceSetName = Text
a} :: GetResourceSet)
instance Core.AWSRequest GetResourceSet where
type
AWSResponse GetResourceSet =
GetResourceSetResponse
request :: GetResourceSet -> Request GetResourceSet
request = Service -> GetResourceSet -> Request GetResourceSet
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetResourceSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetResourceSet)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetResourceSet))
-> Logger
-> Service
-> Proxy GetResourceSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetResourceSet)))
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 [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse
GetResourceSetResponse'
(Maybe Text
-> Maybe Text
-> Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse)
forall (f :: * -> *) a b. Functor 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
"resourceSetName")
Either
String
(Maybe Text
-> Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse)
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
"resourceSetType")
Either
String
(Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse)
-> Either String (Maybe [Resource])
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetResourceSetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Resource]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resources" Either String (Maybe (Maybe [Resource]))
-> Maybe [Resource] -> Either String (Maybe [Resource])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Resource]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetResourceSetResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe (HashMap Text Text) -> Int -> GetResourceSetResponse)
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
"resourceSetArn")
Either
String (Maybe (HashMap Text Text) -> Int -> GetResourceSetResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetResourceSetResponse)
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 -> GetResourceSetResponse)
-> Either String Int -> Either String GetResourceSetResponse
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 GetResourceSet
instance Prelude.NFData GetResourceSet
instance Core.ToHeaders GetResourceSet where
toHeaders :: GetResourceSet -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetResourceSet -> 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 GetResourceSet where
toPath :: GetResourceSet -> ByteString
toPath GetResourceSet' {Text
resourceSetName :: Text
$sel:resourceSetName:GetResourceSet' :: GetResourceSet -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/resourcesets/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
resourceSetName]
instance Core.ToQuery GetResourceSet where
toQuery :: GetResourceSet -> QueryString
toQuery = QueryString -> GetResourceSet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetResourceSetResponse = GetResourceSetResponse'
{
GetResourceSetResponse -> Maybe Text
resourceSetName :: Prelude.Maybe Prelude.Text,
GetResourceSetResponse -> Maybe Text
resourceSetType :: Prelude.Maybe Prelude.Text,
GetResourceSetResponse -> Maybe [Resource]
resources :: Prelude.Maybe [Resource],
GetResourceSetResponse -> Maybe Text
resourceSetArn :: Prelude.Maybe Prelude.Text,
GetResourceSetResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetResourceSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetResourceSetResponse -> GetResourceSetResponse -> Bool
(GetResourceSetResponse -> GetResourceSetResponse -> Bool)
-> (GetResourceSetResponse -> GetResourceSetResponse -> Bool)
-> Eq GetResourceSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourceSetResponse -> GetResourceSetResponse -> Bool
$c/= :: GetResourceSetResponse -> GetResourceSetResponse -> Bool
== :: GetResourceSetResponse -> GetResourceSetResponse -> Bool
$c== :: GetResourceSetResponse -> GetResourceSetResponse -> Bool
Prelude.Eq, ReadPrec [GetResourceSetResponse]
ReadPrec GetResourceSetResponse
Int -> ReadS GetResourceSetResponse
ReadS [GetResourceSetResponse]
(Int -> ReadS GetResourceSetResponse)
-> ReadS [GetResourceSetResponse]
-> ReadPrec GetResourceSetResponse
-> ReadPrec [GetResourceSetResponse]
-> Read GetResourceSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourceSetResponse]
$creadListPrec :: ReadPrec [GetResourceSetResponse]
readPrec :: ReadPrec GetResourceSetResponse
$creadPrec :: ReadPrec GetResourceSetResponse
readList :: ReadS [GetResourceSetResponse]
$creadList :: ReadS [GetResourceSetResponse]
readsPrec :: Int -> ReadS GetResourceSetResponse
$creadsPrec :: Int -> ReadS GetResourceSetResponse
Prelude.Read, Int -> GetResourceSetResponse -> ShowS
[GetResourceSetResponse] -> ShowS
GetResourceSetResponse -> String
(Int -> GetResourceSetResponse -> ShowS)
-> (GetResourceSetResponse -> String)
-> ([GetResourceSetResponse] -> ShowS)
-> Show GetResourceSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourceSetResponse] -> ShowS
$cshowList :: [GetResourceSetResponse] -> ShowS
show :: GetResourceSetResponse -> String
$cshow :: GetResourceSetResponse -> String
showsPrec :: Int -> GetResourceSetResponse -> ShowS
$cshowsPrec :: Int -> GetResourceSetResponse -> ShowS
Prelude.Show, (forall x. GetResourceSetResponse -> Rep GetResourceSetResponse x)
-> (forall x.
Rep GetResourceSetResponse x -> GetResourceSetResponse)
-> Generic GetResourceSetResponse
forall x. Rep GetResourceSetResponse x -> GetResourceSetResponse
forall x. GetResourceSetResponse -> Rep GetResourceSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResourceSetResponse x -> GetResourceSetResponse
$cfrom :: forall x. GetResourceSetResponse -> Rep GetResourceSetResponse x
Prelude.Generic)
newGetResourceSetResponse ::
Prelude.Int ->
GetResourceSetResponse
newGetResourceSetResponse :: Int -> GetResourceSetResponse
newGetResourceSetResponse Int
pHttpStatus_ =
GetResourceSetResponse' :: Maybe Text
-> Maybe Text
-> Maybe [Resource]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceSetResponse
GetResourceSetResponse'
{ $sel:resourceSetName:GetResourceSetResponse' :: Maybe Text
resourceSetName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceSetType:GetResourceSetResponse' :: Maybe Text
resourceSetType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resources:GetResourceSetResponse' :: Maybe [Resource]
resources = Maybe [Resource]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceSetArn:GetResourceSetResponse' :: Maybe Text
resourceSetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetResourceSetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetResourceSetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getResourceSetResponse_resourceSetName :: Lens.Lens' GetResourceSetResponse (Prelude.Maybe Prelude.Text)
getResourceSetResponse_resourceSetName :: (Maybe Text -> f (Maybe Text))
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_resourceSetName = (GetResourceSetResponse -> Maybe Text)
-> (GetResourceSetResponse -> Maybe Text -> GetResourceSetResponse)
-> Lens
GetResourceSetResponse
GetResourceSetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSetResponse' {Maybe Text
resourceSetName :: Maybe Text
$sel:resourceSetName:GetResourceSetResponse' :: GetResourceSetResponse -> Maybe Text
resourceSetName} -> Maybe Text
resourceSetName) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Maybe Text
a -> GetResourceSetResponse
s {$sel:resourceSetName:GetResourceSetResponse' :: Maybe Text
resourceSetName = Maybe Text
a} :: GetResourceSetResponse)
getResourceSetResponse_resourceSetType :: Lens.Lens' GetResourceSetResponse (Prelude.Maybe Prelude.Text)
getResourceSetResponse_resourceSetType :: (Maybe Text -> f (Maybe Text))
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_resourceSetType = (GetResourceSetResponse -> Maybe Text)
-> (GetResourceSetResponse -> Maybe Text -> GetResourceSetResponse)
-> Lens
GetResourceSetResponse
GetResourceSetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSetResponse' {Maybe Text
resourceSetType :: Maybe Text
$sel:resourceSetType:GetResourceSetResponse' :: GetResourceSetResponse -> Maybe Text
resourceSetType} -> Maybe Text
resourceSetType) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Maybe Text
a -> GetResourceSetResponse
s {$sel:resourceSetType:GetResourceSetResponse' :: Maybe Text
resourceSetType = Maybe Text
a} :: GetResourceSetResponse)
getResourceSetResponse_resources :: Lens.Lens' GetResourceSetResponse (Prelude.Maybe [Resource])
getResourceSetResponse_resources :: (Maybe [Resource] -> f (Maybe [Resource]))
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_resources = (GetResourceSetResponse -> Maybe [Resource])
-> (GetResourceSetResponse
-> Maybe [Resource] -> GetResourceSetResponse)
-> Lens
GetResourceSetResponse
GetResourceSetResponse
(Maybe [Resource])
(Maybe [Resource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSetResponse' {Maybe [Resource]
resources :: Maybe [Resource]
$sel:resources:GetResourceSetResponse' :: GetResourceSetResponse -> Maybe [Resource]
resources} -> Maybe [Resource]
resources) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Maybe [Resource]
a -> GetResourceSetResponse
s {$sel:resources:GetResourceSetResponse' :: Maybe [Resource]
resources = Maybe [Resource]
a} :: GetResourceSetResponse) ((Maybe [Resource] -> f (Maybe [Resource]))
-> GetResourceSetResponse -> f GetResourceSetResponse)
-> ((Maybe [Resource] -> f (Maybe [Resource]))
-> Maybe [Resource] -> f (Maybe [Resource]))
-> (Maybe [Resource] -> f (Maybe [Resource]))
-> GetResourceSetResponse
-> f GetResourceSetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Resource] [Resource] [Resource] [Resource]
-> Iso
(Maybe [Resource])
(Maybe [Resource])
(Maybe [Resource])
(Maybe [Resource])
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 [Resource] [Resource] [Resource] [Resource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getResourceSetResponse_resourceSetArn :: Lens.Lens' GetResourceSetResponse (Prelude.Maybe Prelude.Text)
getResourceSetResponse_resourceSetArn :: (Maybe Text -> f (Maybe Text))
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_resourceSetArn = (GetResourceSetResponse -> Maybe Text)
-> (GetResourceSetResponse -> Maybe Text -> GetResourceSetResponse)
-> Lens
GetResourceSetResponse
GetResourceSetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSetResponse' {Maybe Text
resourceSetArn :: Maybe Text
$sel:resourceSetArn:GetResourceSetResponse' :: GetResourceSetResponse -> Maybe Text
resourceSetArn} -> Maybe Text
resourceSetArn) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Maybe Text
a -> GetResourceSetResponse
s {$sel:resourceSetArn:GetResourceSetResponse' :: Maybe Text
resourceSetArn = Maybe Text
a} :: GetResourceSetResponse)
getResourceSetResponse_tags :: Lens.Lens' GetResourceSetResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getResourceSetResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_tags = (GetResourceSetResponse -> Maybe (HashMap Text Text))
-> (GetResourceSetResponse
-> Maybe (HashMap Text Text) -> GetResourceSetResponse)
-> Lens
GetResourceSetResponse
GetResourceSetResponse
(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 (\GetResourceSetResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetResourceSetResponse' :: GetResourceSetResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Maybe (HashMap Text Text)
a -> GetResourceSetResponse
s {$sel:tags:GetResourceSetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetResourceSetResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetResourceSetResponse -> f GetResourceSetResponse)
-> ((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)))
-> GetResourceSetResponse
-> f GetResourceSetResponse
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
getResourceSetResponse_httpStatus :: Lens.Lens' GetResourceSetResponse Prelude.Int
getResourceSetResponse_httpStatus :: (Int -> f Int)
-> GetResourceSetResponse -> f GetResourceSetResponse
getResourceSetResponse_httpStatus = (GetResourceSetResponse -> Int)
-> (GetResourceSetResponse -> Int -> GetResourceSetResponse)
-> Lens GetResourceSetResponse GetResourceSetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetResourceSetResponse' :: GetResourceSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetResourceSetResponse
s@GetResourceSetResponse' {} Int
a -> GetResourceSetResponse
s {$sel:httpStatus:GetResourceSetResponse' :: Int
httpStatus = Int
a} :: GetResourceSetResponse)
instance Prelude.NFData GetResourceSetResponse