{-# 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.DynamoDB.UpdateContributorInsights
(
UpdateContributorInsights (..),
newUpdateContributorInsights,
updateContributorInsights_indexName,
updateContributorInsights_tableName,
updateContributorInsights_contributorInsightsAction,
UpdateContributorInsightsResponse (..),
newUpdateContributorInsightsResponse,
updateContributorInsightsResponse_contributorInsightsStatus,
updateContributorInsightsResponse_tableName,
updateContributorInsightsResponse_indexName,
updateContributorInsightsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.Types
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 UpdateContributorInsights = UpdateContributorInsights'
{
UpdateContributorInsights -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text,
UpdateContributorInsights -> Text
tableName :: Prelude.Text,
UpdateContributorInsights -> ContributorInsightsAction
contributorInsightsAction :: ContributorInsightsAction
}
deriving (UpdateContributorInsights -> UpdateContributorInsights -> Bool
(UpdateContributorInsights -> UpdateContributorInsights -> Bool)
-> (UpdateContributorInsights -> UpdateContributorInsights -> Bool)
-> Eq UpdateContributorInsights
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateContributorInsights -> UpdateContributorInsights -> Bool
$c/= :: UpdateContributorInsights -> UpdateContributorInsights -> Bool
== :: UpdateContributorInsights -> UpdateContributorInsights -> Bool
$c== :: UpdateContributorInsights -> UpdateContributorInsights -> Bool
Prelude.Eq, ReadPrec [UpdateContributorInsights]
ReadPrec UpdateContributorInsights
Int -> ReadS UpdateContributorInsights
ReadS [UpdateContributorInsights]
(Int -> ReadS UpdateContributorInsights)
-> ReadS [UpdateContributorInsights]
-> ReadPrec UpdateContributorInsights
-> ReadPrec [UpdateContributorInsights]
-> Read UpdateContributorInsights
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateContributorInsights]
$creadListPrec :: ReadPrec [UpdateContributorInsights]
readPrec :: ReadPrec UpdateContributorInsights
$creadPrec :: ReadPrec UpdateContributorInsights
readList :: ReadS [UpdateContributorInsights]
$creadList :: ReadS [UpdateContributorInsights]
readsPrec :: Int -> ReadS UpdateContributorInsights
$creadsPrec :: Int -> ReadS UpdateContributorInsights
Prelude.Read, Int -> UpdateContributorInsights -> ShowS
[UpdateContributorInsights] -> ShowS
UpdateContributorInsights -> String
(Int -> UpdateContributorInsights -> ShowS)
-> (UpdateContributorInsights -> String)
-> ([UpdateContributorInsights] -> ShowS)
-> Show UpdateContributorInsights
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateContributorInsights] -> ShowS
$cshowList :: [UpdateContributorInsights] -> ShowS
show :: UpdateContributorInsights -> String
$cshow :: UpdateContributorInsights -> String
showsPrec :: Int -> UpdateContributorInsights -> ShowS
$cshowsPrec :: Int -> UpdateContributorInsights -> ShowS
Prelude.Show, (forall x.
UpdateContributorInsights -> Rep UpdateContributorInsights x)
-> (forall x.
Rep UpdateContributorInsights x -> UpdateContributorInsights)
-> Generic UpdateContributorInsights
forall x.
Rep UpdateContributorInsights x -> UpdateContributorInsights
forall x.
UpdateContributorInsights -> Rep UpdateContributorInsights x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateContributorInsights x -> UpdateContributorInsights
$cfrom :: forall x.
UpdateContributorInsights -> Rep UpdateContributorInsights x
Prelude.Generic)
newUpdateContributorInsights ::
Prelude.Text ->
ContributorInsightsAction ->
UpdateContributorInsights
newUpdateContributorInsights :: Text -> ContributorInsightsAction -> UpdateContributorInsights
newUpdateContributorInsights
Text
pTableName_
ContributorInsightsAction
pContributorInsightsAction_ =
UpdateContributorInsights' :: Maybe Text
-> Text -> ContributorInsightsAction -> UpdateContributorInsights
UpdateContributorInsights'
{ $sel:indexName:UpdateContributorInsights' :: Maybe Text
indexName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableName:UpdateContributorInsights' :: Text
tableName = Text
pTableName_,
$sel:contributorInsightsAction:UpdateContributorInsights' :: ContributorInsightsAction
contributorInsightsAction =
ContributorInsightsAction
pContributorInsightsAction_
}
updateContributorInsights_indexName :: Lens.Lens' UpdateContributorInsights (Prelude.Maybe Prelude.Text)
updateContributorInsights_indexName :: (Maybe Text -> f (Maybe Text))
-> UpdateContributorInsights -> f UpdateContributorInsights
updateContributorInsights_indexName = (UpdateContributorInsights -> Maybe Text)
-> (UpdateContributorInsights
-> Maybe Text -> UpdateContributorInsights)
-> Lens
UpdateContributorInsights
UpdateContributorInsights
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsights' {Maybe Text
indexName :: Maybe Text
$sel:indexName:UpdateContributorInsights' :: UpdateContributorInsights -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: UpdateContributorInsights
s@UpdateContributorInsights' {} Maybe Text
a -> UpdateContributorInsights
s {$sel:indexName:UpdateContributorInsights' :: Maybe Text
indexName = Maybe Text
a} :: UpdateContributorInsights)
updateContributorInsights_tableName :: Lens.Lens' UpdateContributorInsights Prelude.Text
updateContributorInsights_tableName :: (Text -> f Text)
-> UpdateContributorInsights -> f UpdateContributorInsights
updateContributorInsights_tableName = (UpdateContributorInsights -> Text)
-> (UpdateContributorInsights -> Text -> UpdateContributorInsights)
-> Lens
UpdateContributorInsights UpdateContributorInsights Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsights' {Text
tableName :: Text
$sel:tableName:UpdateContributorInsights' :: UpdateContributorInsights -> Text
tableName} -> Text
tableName) (\s :: UpdateContributorInsights
s@UpdateContributorInsights' {} Text
a -> UpdateContributorInsights
s {$sel:tableName:UpdateContributorInsights' :: Text
tableName = Text
a} :: UpdateContributorInsights)
updateContributorInsights_contributorInsightsAction :: Lens.Lens' UpdateContributorInsights ContributorInsightsAction
updateContributorInsights_contributorInsightsAction :: (ContributorInsightsAction -> f ContributorInsightsAction)
-> UpdateContributorInsights -> f UpdateContributorInsights
updateContributorInsights_contributorInsightsAction = (UpdateContributorInsights -> ContributorInsightsAction)
-> (UpdateContributorInsights
-> ContributorInsightsAction -> UpdateContributorInsights)
-> Lens
UpdateContributorInsights
UpdateContributorInsights
ContributorInsightsAction
ContributorInsightsAction
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsights' {ContributorInsightsAction
contributorInsightsAction :: ContributorInsightsAction
$sel:contributorInsightsAction:UpdateContributorInsights' :: UpdateContributorInsights -> ContributorInsightsAction
contributorInsightsAction} -> ContributorInsightsAction
contributorInsightsAction) (\s :: UpdateContributorInsights
s@UpdateContributorInsights' {} ContributorInsightsAction
a -> UpdateContributorInsights
s {$sel:contributorInsightsAction:UpdateContributorInsights' :: ContributorInsightsAction
contributorInsightsAction = ContributorInsightsAction
a} :: UpdateContributorInsights)
instance Core.AWSRequest UpdateContributorInsights where
type
AWSResponse UpdateContributorInsights =
UpdateContributorInsightsResponse
request :: UpdateContributorInsights -> Request UpdateContributorInsights
request = Service
-> UpdateContributorInsights -> Request UpdateContributorInsights
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateContributorInsights
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateContributorInsights)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateContributorInsights))
-> Logger
-> Service
-> Proxy UpdateContributorInsights
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateContributorInsights)))
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 ContributorInsightsStatus
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateContributorInsightsResponse
UpdateContributorInsightsResponse'
(Maybe ContributorInsightsStatus
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateContributorInsightsResponse)
-> Either String (Maybe ContributorInsightsStatus)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> UpdateContributorInsightsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ContributorInsightsStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ContributorInsightsStatus")
Either
String
(Maybe Text
-> Maybe Text -> Int -> UpdateContributorInsightsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> UpdateContributorInsightsResponse)
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
"TableName")
Either
String (Maybe Text -> Int -> UpdateContributorInsightsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateContributorInsightsResponse)
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
"IndexName")
Either String (Int -> UpdateContributorInsightsResponse)
-> Either String Int
-> Either String UpdateContributorInsightsResponse
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 UpdateContributorInsights
instance Prelude.NFData UpdateContributorInsights
instance Core.ToHeaders UpdateContributorInsights where
toHeaders :: UpdateContributorInsights -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateContributorInsights -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"DynamoDB_20120810.UpdateContributorInsights" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateContributorInsights where
toJSON :: UpdateContributorInsights -> Value
toJSON UpdateContributorInsights' {Maybe Text
Text
ContributorInsightsAction
contributorInsightsAction :: ContributorInsightsAction
tableName :: Text
indexName :: Maybe Text
$sel:contributorInsightsAction:UpdateContributorInsights' :: UpdateContributorInsights -> ContributorInsightsAction
$sel:tableName:UpdateContributorInsights' :: UpdateContributorInsights -> Text
$sel:indexName:UpdateContributorInsights' :: UpdateContributorInsights -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"IndexName" 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
indexName,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TableName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
tableName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ContributorInsightsAction"
Text -> ContributorInsightsAction -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ContributorInsightsAction
contributorInsightsAction
)
]
)
instance Core.ToPath UpdateContributorInsights where
toPath :: UpdateContributorInsights -> ByteString
toPath = ByteString -> UpdateContributorInsights -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateContributorInsights where
toQuery :: UpdateContributorInsights -> QueryString
toQuery = QueryString -> UpdateContributorInsights -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateContributorInsightsResponse = UpdateContributorInsightsResponse'
{
UpdateContributorInsightsResponse
-> Maybe ContributorInsightsStatus
contributorInsightsStatus :: Prelude.Maybe ContributorInsightsStatus,
UpdateContributorInsightsResponse -> Maybe Text
tableName :: Prelude.Maybe Prelude.Text,
UpdateContributorInsightsResponse -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text,
UpdateContributorInsightsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool
(UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool)
-> (UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool)
-> Eq UpdateContributorInsightsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool
$c/= :: UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool
== :: UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool
$c== :: UpdateContributorInsightsResponse
-> UpdateContributorInsightsResponse -> Bool
Prelude.Eq, ReadPrec [UpdateContributorInsightsResponse]
ReadPrec UpdateContributorInsightsResponse
Int -> ReadS UpdateContributorInsightsResponse
ReadS [UpdateContributorInsightsResponse]
(Int -> ReadS UpdateContributorInsightsResponse)
-> ReadS [UpdateContributorInsightsResponse]
-> ReadPrec UpdateContributorInsightsResponse
-> ReadPrec [UpdateContributorInsightsResponse]
-> Read UpdateContributorInsightsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateContributorInsightsResponse]
$creadListPrec :: ReadPrec [UpdateContributorInsightsResponse]
readPrec :: ReadPrec UpdateContributorInsightsResponse
$creadPrec :: ReadPrec UpdateContributorInsightsResponse
readList :: ReadS [UpdateContributorInsightsResponse]
$creadList :: ReadS [UpdateContributorInsightsResponse]
readsPrec :: Int -> ReadS UpdateContributorInsightsResponse
$creadsPrec :: Int -> ReadS UpdateContributorInsightsResponse
Prelude.Read, Int -> UpdateContributorInsightsResponse -> ShowS
[UpdateContributorInsightsResponse] -> ShowS
UpdateContributorInsightsResponse -> String
(Int -> UpdateContributorInsightsResponse -> ShowS)
-> (UpdateContributorInsightsResponse -> String)
-> ([UpdateContributorInsightsResponse] -> ShowS)
-> Show UpdateContributorInsightsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateContributorInsightsResponse] -> ShowS
$cshowList :: [UpdateContributorInsightsResponse] -> ShowS
show :: UpdateContributorInsightsResponse -> String
$cshow :: UpdateContributorInsightsResponse -> String
showsPrec :: Int -> UpdateContributorInsightsResponse -> ShowS
$cshowsPrec :: Int -> UpdateContributorInsightsResponse -> ShowS
Prelude.Show, (forall x.
UpdateContributorInsightsResponse
-> Rep UpdateContributorInsightsResponse x)
-> (forall x.
Rep UpdateContributorInsightsResponse x
-> UpdateContributorInsightsResponse)
-> Generic UpdateContributorInsightsResponse
forall x.
Rep UpdateContributorInsightsResponse x
-> UpdateContributorInsightsResponse
forall x.
UpdateContributorInsightsResponse
-> Rep UpdateContributorInsightsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateContributorInsightsResponse x
-> UpdateContributorInsightsResponse
$cfrom :: forall x.
UpdateContributorInsightsResponse
-> Rep UpdateContributorInsightsResponse x
Prelude.Generic)
newUpdateContributorInsightsResponse ::
Prelude.Int ->
UpdateContributorInsightsResponse
newUpdateContributorInsightsResponse :: Int -> UpdateContributorInsightsResponse
newUpdateContributorInsightsResponse Int
pHttpStatus_ =
UpdateContributorInsightsResponse' :: Maybe ContributorInsightsStatus
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateContributorInsightsResponse
UpdateContributorInsightsResponse'
{ $sel:contributorInsightsStatus:UpdateContributorInsightsResponse' :: Maybe ContributorInsightsStatus
contributorInsightsStatus =
Maybe ContributorInsightsStatus
forall a. Maybe a
Prelude.Nothing,
$sel:tableName:UpdateContributorInsightsResponse' :: Maybe Text
tableName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:indexName:UpdateContributorInsightsResponse' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateContributorInsightsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateContributorInsightsResponse_contributorInsightsStatus :: Lens.Lens' UpdateContributorInsightsResponse (Prelude.Maybe ContributorInsightsStatus)
updateContributorInsightsResponse_contributorInsightsStatus :: (Maybe ContributorInsightsStatus
-> f (Maybe ContributorInsightsStatus))
-> UpdateContributorInsightsResponse
-> f UpdateContributorInsightsResponse
updateContributorInsightsResponse_contributorInsightsStatus = (UpdateContributorInsightsResponse
-> Maybe ContributorInsightsStatus)
-> (UpdateContributorInsightsResponse
-> Maybe ContributorInsightsStatus
-> UpdateContributorInsightsResponse)
-> Lens
UpdateContributorInsightsResponse
UpdateContributorInsightsResponse
(Maybe ContributorInsightsStatus)
(Maybe ContributorInsightsStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsightsResponse' {Maybe ContributorInsightsStatus
contributorInsightsStatus :: Maybe ContributorInsightsStatus
$sel:contributorInsightsStatus:UpdateContributorInsightsResponse' :: UpdateContributorInsightsResponse
-> Maybe ContributorInsightsStatus
contributorInsightsStatus} -> Maybe ContributorInsightsStatus
contributorInsightsStatus) (\s :: UpdateContributorInsightsResponse
s@UpdateContributorInsightsResponse' {} Maybe ContributorInsightsStatus
a -> UpdateContributorInsightsResponse
s {$sel:contributorInsightsStatus:UpdateContributorInsightsResponse' :: Maybe ContributorInsightsStatus
contributorInsightsStatus = Maybe ContributorInsightsStatus
a} :: UpdateContributorInsightsResponse)
updateContributorInsightsResponse_tableName :: Lens.Lens' UpdateContributorInsightsResponse (Prelude.Maybe Prelude.Text)
updateContributorInsightsResponse_tableName :: (Maybe Text -> f (Maybe Text))
-> UpdateContributorInsightsResponse
-> f UpdateContributorInsightsResponse
updateContributorInsightsResponse_tableName = (UpdateContributorInsightsResponse -> Maybe Text)
-> (UpdateContributorInsightsResponse
-> Maybe Text -> UpdateContributorInsightsResponse)
-> Lens
UpdateContributorInsightsResponse
UpdateContributorInsightsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsightsResponse' {Maybe Text
tableName :: Maybe Text
$sel:tableName:UpdateContributorInsightsResponse' :: UpdateContributorInsightsResponse -> Maybe Text
tableName} -> Maybe Text
tableName) (\s :: UpdateContributorInsightsResponse
s@UpdateContributorInsightsResponse' {} Maybe Text
a -> UpdateContributorInsightsResponse
s {$sel:tableName:UpdateContributorInsightsResponse' :: Maybe Text
tableName = Maybe Text
a} :: UpdateContributorInsightsResponse)
updateContributorInsightsResponse_indexName :: Lens.Lens' UpdateContributorInsightsResponse (Prelude.Maybe Prelude.Text)
updateContributorInsightsResponse_indexName :: (Maybe Text -> f (Maybe Text))
-> UpdateContributorInsightsResponse
-> f UpdateContributorInsightsResponse
updateContributorInsightsResponse_indexName = (UpdateContributorInsightsResponse -> Maybe Text)
-> (UpdateContributorInsightsResponse
-> Maybe Text -> UpdateContributorInsightsResponse)
-> Lens
UpdateContributorInsightsResponse
UpdateContributorInsightsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsightsResponse' {Maybe Text
indexName :: Maybe Text
$sel:indexName:UpdateContributorInsightsResponse' :: UpdateContributorInsightsResponse -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: UpdateContributorInsightsResponse
s@UpdateContributorInsightsResponse' {} Maybe Text
a -> UpdateContributorInsightsResponse
s {$sel:indexName:UpdateContributorInsightsResponse' :: Maybe Text
indexName = Maybe Text
a} :: UpdateContributorInsightsResponse)
updateContributorInsightsResponse_httpStatus :: Lens.Lens' UpdateContributorInsightsResponse Prelude.Int
updateContributorInsightsResponse_httpStatus :: (Int -> f Int)
-> UpdateContributorInsightsResponse
-> f UpdateContributorInsightsResponse
updateContributorInsightsResponse_httpStatus = (UpdateContributorInsightsResponse -> Int)
-> (UpdateContributorInsightsResponse
-> Int -> UpdateContributorInsightsResponse)
-> Lens
UpdateContributorInsightsResponse
UpdateContributorInsightsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateContributorInsightsResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateContributorInsightsResponse' :: UpdateContributorInsightsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateContributorInsightsResponse
s@UpdateContributorInsightsResponse' {} Int
a -> UpdateContributorInsightsResponse
s {$sel:httpStatus:UpdateContributorInsightsResponse' :: Int
httpStatus = Int
a} :: UpdateContributorInsightsResponse)
instance
Prelude.NFData
UpdateContributorInsightsResponse