{-# 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.CodeGuruReviewer.AssociateRepository
(
AssociateRepository (..),
newAssociateRepository,
associateRepository_kmsKeyDetails,
associateRepository_clientRequestToken,
associateRepository_tags,
associateRepository_repository,
AssociateRepositoryResponse (..),
newAssociateRepositoryResponse,
associateRepositoryResponse_repositoryAssociation,
associateRepositoryResponse_tags,
associateRepositoryResponse_httpStatus,
)
where
import Amazonka.CodeGuruReviewer.Types
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
data AssociateRepository = AssociateRepository'
{
AssociateRepository -> Maybe KMSKeyDetails
kmsKeyDetails :: Prelude.Maybe KMSKeyDetails,
AssociateRepository -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
AssociateRepository -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
AssociateRepository -> Repository
repository :: Repository
}
deriving (AssociateRepository -> AssociateRepository -> Bool
(AssociateRepository -> AssociateRepository -> Bool)
-> (AssociateRepository -> AssociateRepository -> Bool)
-> Eq AssociateRepository
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssociateRepository -> AssociateRepository -> Bool
$c/= :: AssociateRepository -> AssociateRepository -> Bool
== :: AssociateRepository -> AssociateRepository -> Bool
$c== :: AssociateRepository -> AssociateRepository -> Bool
Prelude.Eq, ReadPrec [AssociateRepository]
ReadPrec AssociateRepository
Int -> ReadS AssociateRepository
ReadS [AssociateRepository]
(Int -> ReadS AssociateRepository)
-> ReadS [AssociateRepository]
-> ReadPrec AssociateRepository
-> ReadPrec [AssociateRepository]
-> Read AssociateRepository
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssociateRepository]
$creadListPrec :: ReadPrec [AssociateRepository]
readPrec :: ReadPrec AssociateRepository
$creadPrec :: ReadPrec AssociateRepository
readList :: ReadS [AssociateRepository]
$creadList :: ReadS [AssociateRepository]
readsPrec :: Int -> ReadS AssociateRepository
$creadsPrec :: Int -> ReadS AssociateRepository
Prelude.Read, Int -> AssociateRepository -> ShowS
[AssociateRepository] -> ShowS
AssociateRepository -> String
(Int -> AssociateRepository -> ShowS)
-> (AssociateRepository -> String)
-> ([AssociateRepository] -> ShowS)
-> Show AssociateRepository
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssociateRepository] -> ShowS
$cshowList :: [AssociateRepository] -> ShowS
show :: AssociateRepository -> String
$cshow :: AssociateRepository -> String
showsPrec :: Int -> AssociateRepository -> ShowS
$cshowsPrec :: Int -> AssociateRepository -> ShowS
Prelude.Show, (forall x. AssociateRepository -> Rep AssociateRepository x)
-> (forall x. Rep AssociateRepository x -> AssociateRepository)
-> Generic AssociateRepository
forall x. Rep AssociateRepository x -> AssociateRepository
forall x. AssociateRepository -> Rep AssociateRepository x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AssociateRepository x -> AssociateRepository
$cfrom :: forall x. AssociateRepository -> Rep AssociateRepository x
Prelude.Generic)
newAssociateRepository ::
Repository ->
AssociateRepository
newAssociateRepository :: Repository -> AssociateRepository
newAssociateRepository Repository
pRepository_ =
AssociateRepository' :: Maybe KMSKeyDetails
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Repository
-> AssociateRepository
AssociateRepository'
{ $sel:kmsKeyDetails:AssociateRepository' :: Maybe KMSKeyDetails
kmsKeyDetails =
Maybe KMSKeyDetails
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:AssociateRepository' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:AssociateRepository' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:repository:AssociateRepository' :: Repository
repository = Repository
pRepository_
}
associateRepository_kmsKeyDetails :: Lens.Lens' AssociateRepository (Prelude.Maybe KMSKeyDetails)
associateRepository_kmsKeyDetails :: (Maybe KMSKeyDetails -> f (Maybe KMSKeyDetails))
-> AssociateRepository -> f AssociateRepository
associateRepository_kmsKeyDetails = (AssociateRepository -> Maybe KMSKeyDetails)
-> (AssociateRepository
-> Maybe KMSKeyDetails -> AssociateRepository)
-> Lens
AssociateRepository
AssociateRepository
(Maybe KMSKeyDetails)
(Maybe KMSKeyDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssociateRepository' {Maybe KMSKeyDetails
kmsKeyDetails :: Maybe KMSKeyDetails
$sel:kmsKeyDetails:AssociateRepository' :: AssociateRepository -> Maybe KMSKeyDetails
kmsKeyDetails} -> Maybe KMSKeyDetails
kmsKeyDetails) (\s :: AssociateRepository
s@AssociateRepository' {} Maybe KMSKeyDetails
a -> AssociateRepository
s {$sel:kmsKeyDetails:AssociateRepository' :: Maybe KMSKeyDetails
kmsKeyDetails = Maybe KMSKeyDetails
a} :: AssociateRepository)
associateRepository_clientRequestToken :: Lens.Lens' AssociateRepository (Prelude.Maybe Prelude.Text)
associateRepository_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> AssociateRepository -> f AssociateRepository
associateRepository_clientRequestToken = (AssociateRepository -> Maybe Text)
-> (AssociateRepository -> Maybe Text -> AssociateRepository)
-> Lens
AssociateRepository AssociateRepository (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssociateRepository' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:AssociateRepository' :: AssociateRepository -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: AssociateRepository
s@AssociateRepository' {} Maybe Text
a -> AssociateRepository
s {$sel:clientRequestToken:AssociateRepository' :: Maybe Text
clientRequestToken = Maybe Text
a} :: AssociateRepository)
associateRepository_tags :: Lens.Lens' AssociateRepository (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
associateRepository_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AssociateRepository -> f AssociateRepository
associateRepository_tags = (AssociateRepository -> Maybe (HashMap Text Text))
-> (AssociateRepository
-> Maybe (HashMap Text Text) -> AssociateRepository)
-> Lens
AssociateRepository
AssociateRepository
(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 (\AssociateRepository' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:AssociateRepository' :: AssociateRepository -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: AssociateRepository
s@AssociateRepository' {} Maybe (HashMap Text Text)
a -> AssociateRepository
s {$sel:tags:AssociateRepository' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: AssociateRepository) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AssociateRepository -> f AssociateRepository)
-> ((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)))
-> AssociateRepository
-> f AssociateRepository
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
associateRepository_repository :: Lens.Lens' AssociateRepository Repository
associateRepository_repository :: (Repository -> f Repository)
-> AssociateRepository -> f AssociateRepository
associateRepository_repository = (AssociateRepository -> Repository)
-> (AssociateRepository -> Repository -> AssociateRepository)
-> Lens
AssociateRepository AssociateRepository Repository Repository
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssociateRepository' {Repository
repository :: Repository
$sel:repository:AssociateRepository' :: AssociateRepository -> Repository
repository} -> Repository
repository) (\s :: AssociateRepository
s@AssociateRepository' {} Repository
a -> AssociateRepository
s {$sel:repository:AssociateRepository' :: Repository
repository = Repository
a} :: AssociateRepository)
instance Core.AWSRequest AssociateRepository where
type
AWSResponse AssociateRepository =
AssociateRepositoryResponse
request :: AssociateRepository -> Request AssociateRepository
request = Service -> AssociateRepository -> Request AssociateRepository
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AssociateRepository
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AssociateRepository)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AssociateRepository))
-> Logger
-> Service
-> Proxy AssociateRepository
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AssociateRepository)))
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 RepositoryAssociation
-> Maybe (HashMap Text Text) -> Int -> AssociateRepositoryResponse
AssociateRepositoryResponse'
(Maybe RepositoryAssociation
-> Maybe (HashMap Text Text) -> Int -> AssociateRepositoryResponse)
-> Either String (Maybe RepositoryAssociation)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> AssociateRepositoryResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RepositoryAssociation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RepositoryAssociation")
Either
String
(Maybe (HashMap Text Text) -> Int -> AssociateRepositoryResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> AssociateRepositoryResponse)
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 -> AssociateRepositoryResponse)
-> Either String Int -> Either String AssociateRepositoryResponse
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 AssociateRepository
instance Prelude.NFData AssociateRepository
instance Core.ToHeaders AssociateRepository where
toHeaders :: AssociateRepository -> ResponseHeaders
toHeaders =
ResponseHeaders -> AssociateRepository -> 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.ToJSON AssociateRepository where
toJSON :: AssociateRepository -> Value
toJSON AssociateRepository' {Maybe Text
Maybe (HashMap Text Text)
Maybe KMSKeyDetails
Repository
repository :: Repository
tags :: Maybe (HashMap Text Text)
clientRequestToken :: Maybe Text
kmsKeyDetails :: Maybe KMSKeyDetails
$sel:repository:AssociateRepository' :: AssociateRepository -> Repository
$sel:tags:AssociateRepository' :: AssociateRepository -> Maybe (HashMap Text Text)
$sel:clientRequestToken:AssociateRepository' :: AssociateRepository -> Maybe Text
$sel:kmsKeyDetails:AssociateRepository' :: AssociateRepository -> Maybe KMSKeyDetails
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"KMSKeyDetails" Text -> KMSKeyDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (KMSKeyDetails -> Pair) -> Maybe KMSKeyDetails -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KMSKeyDetails
kmsKeyDetails,
(Text
"ClientRequestToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientRequestToken,
(Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Repository" Text -> Repository -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Repository
repository)
]
)
instance Core.ToPath AssociateRepository where
toPath :: AssociateRepository -> ByteString
toPath = ByteString -> AssociateRepository -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/associations"
instance Core.ToQuery AssociateRepository where
toQuery :: AssociateRepository -> QueryString
toQuery = QueryString -> AssociateRepository -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AssociateRepositoryResponse = AssociateRepositoryResponse'
{
AssociateRepositoryResponse -> Maybe RepositoryAssociation
repositoryAssociation :: Prelude.Maybe RepositoryAssociation,
AssociateRepositoryResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
AssociateRepositoryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AssociateRepositoryResponse -> AssociateRepositoryResponse -> Bool
(AssociateRepositoryResponse
-> AssociateRepositoryResponse -> Bool)
-> (AssociateRepositoryResponse
-> AssociateRepositoryResponse -> Bool)
-> Eq AssociateRepositoryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssociateRepositoryResponse -> AssociateRepositoryResponse -> Bool
$c/= :: AssociateRepositoryResponse -> AssociateRepositoryResponse -> Bool
== :: AssociateRepositoryResponse -> AssociateRepositoryResponse -> Bool
$c== :: AssociateRepositoryResponse -> AssociateRepositoryResponse -> Bool
Prelude.Eq, ReadPrec [AssociateRepositoryResponse]
ReadPrec AssociateRepositoryResponse
Int -> ReadS AssociateRepositoryResponse
ReadS [AssociateRepositoryResponse]
(Int -> ReadS AssociateRepositoryResponse)
-> ReadS [AssociateRepositoryResponse]
-> ReadPrec AssociateRepositoryResponse
-> ReadPrec [AssociateRepositoryResponse]
-> Read AssociateRepositoryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssociateRepositoryResponse]
$creadListPrec :: ReadPrec [AssociateRepositoryResponse]
readPrec :: ReadPrec AssociateRepositoryResponse
$creadPrec :: ReadPrec AssociateRepositoryResponse
readList :: ReadS [AssociateRepositoryResponse]
$creadList :: ReadS [AssociateRepositoryResponse]
readsPrec :: Int -> ReadS AssociateRepositoryResponse
$creadsPrec :: Int -> ReadS AssociateRepositoryResponse
Prelude.Read, Int -> AssociateRepositoryResponse -> ShowS
[AssociateRepositoryResponse] -> ShowS
AssociateRepositoryResponse -> String
(Int -> AssociateRepositoryResponse -> ShowS)
-> (AssociateRepositoryResponse -> String)
-> ([AssociateRepositoryResponse] -> ShowS)
-> Show AssociateRepositoryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssociateRepositoryResponse] -> ShowS
$cshowList :: [AssociateRepositoryResponse] -> ShowS
show :: AssociateRepositoryResponse -> String
$cshow :: AssociateRepositoryResponse -> String
showsPrec :: Int -> AssociateRepositoryResponse -> ShowS
$cshowsPrec :: Int -> AssociateRepositoryResponse -> ShowS
Prelude.Show, (forall x.
AssociateRepositoryResponse -> Rep AssociateRepositoryResponse x)
-> (forall x.
Rep AssociateRepositoryResponse x -> AssociateRepositoryResponse)
-> Generic AssociateRepositoryResponse
forall x.
Rep AssociateRepositoryResponse x -> AssociateRepositoryResponse
forall x.
AssociateRepositoryResponse -> Rep AssociateRepositoryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AssociateRepositoryResponse x -> AssociateRepositoryResponse
$cfrom :: forall x.
AssociateRepositoryResponse -> Rep AssociateRepositoryResponse x
Prelude.Generic)
newAssociateRepositoryResponse ::
Prelude.Int ->
AssociateRepositoryResponse
newAssociateRepositoryResponse :: Int -> AssociateRepositoryResponse
newAssociateRepositoryResponse Int
pHttpStatus_ =
AssociateRepositoryResponse' :: Maybe RepositoryAssociation
-> Maybe (HashMap Text Text) -> Int -> AssociateRepositoryResponse
AssociateRepositoryResponse'
{ $sel:repositoryAssociation:AssociateRepositoryResponse' :: Maybe RepositoryAssociation
repositoryAssociation =
Maybe RepositoryAssociation
forall a. Maybe a
Prelude.Nothing,
$sel:tags:AssociateRepositoryResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AssociateRepositoryResponse' :: Int
httpStatus = Int
pHttpStatus_
}
associateRepositoryResponse_repositoryAssociation :: Lens.Lens' AssociateRepositoryResponse (Prelude.Maybe RepositoryAssociation)
associateRepositoryResponse_repositoryAssociation :: (Maybe RepositoryAssociation -> f (Maybe RepositoryAssociation))
-> AssociateRepositoryResponse -> f AssociateRepositoryResponse
associateRepositoryResponse_repositoryAssociation = (AssociateRepositoryResponse -> Maybe RepositoryAssociation)
-> (AssociateRepositoryResponse
-> Maybe RepositoryAssociation -> AssociateRepositoryResponse)
-> Lens
AssociateRepositoryResponse
AssociateRepositoryResponse
(Maybe RepositoryAssociation)
(Maybe RepositoryAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssociateRepositoryResponse' {Maybe RepositoryAssociation
repositoryAssociation :: Maybe RepositoryAssociation
$sel:repositoryAssociation:AssociateRepositoryResponse' :: AssociateRepositoryResponse -> Maybe RepositoryAssociation
repositoryAssociation} -> Maybe RepositoryAssociation
repositoryAssociation) (\s :: AssociateRepositoryResponse
s@AssociateRepositoryResponse' {} Maybe RepositoryAssociation
a -> AssociateRepositoryResponse
s {$sel:repositoryAssociation:AssociateRepositoryResponse' :: Maybe RepositoryAssociation
repositoryAssociation = Maybe RepositoryAssociation
a} :: AssociateRepositoryResponse)
associateRepositoryResponse_tags :: Lens.Lens' AssociateRepositoryResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
associateRepositoryResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AssociateRepositoryResponse -> f AssociateRepositoryResponse
associateRepositoryResponse_tags = (AssociateRepositoryResponse -> Maybe (HashMap Text Text))
-> (AssociateRepositoryResponse
-> Maybe (HashMap Text Text) -> AssociateRepositoryResponse)
-> Lens
AssociateRepositoryResponse
AssociateRepositoryResponse
(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 (\AssociateRepositoryResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:AssociateRepositoryResponse' :: AssociateRepositoryResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: AssociateRepositoryResponse
s@AssociateRepositoryResponse' {} Maybe (HashMap Text Text)
a -> AssociateRepositoryResponse
s {$sel:tags:AssociateRepositoryResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: AssociateRepositoryResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AssociateRepositoryResponse -> f AssociateRepositoryResponse)
-> ((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)))
-> AssociateRepositoryResponse
-> f AssociateRepositoryResponse
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
associateRepositoryResponse_httpStatus :: Lens.Lens' AssociateRepositoryResponse Prelude.Int
associateRepositoryResponse_httpStatus :: (Int -> f Int)
-> AssociateRepositoryResponse -> f AssociateRepositoryResponse
associateRepositoryResponse_httpStatus = (AssociateRepositoryResponse -> Int)
-> (AssociateRepositoryResponse
-> Int -> AssociateRepositoryResponse)
-> Lens
AssociateRepositoryResponse AssociateRepositoryResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssociateRepositoryResponse' {Int
httpStatus :: Int
$sel:httpStatus:AssociateRepositoryResponse' :: AssociateRepositoryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AssociateRepositoryResponse
s@AssociateRepositoryResponse' {} Int
a -> AssociateRepositoryResponse
s {$sel:httpStatus:AssociateRepositoryResponse' :: Int
httpStatus = Int
a} :: AssociateRepositoryResponse)
instance Prelude.NFData AssociateRepositoryResponse