{-# 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.CodeCommit.PostCommentForComparedCommit
(
PostCommentForComparedCommit (..),
newPostCommentForComparedCommit,
postCommentForComparedCommit_location,
postCommentForComparedCommit_beforeCommitId,
postCommentForComparedCommit_clientRequestToken,
postCommentForComparedCommit_repositoryName,
postCommentForComparedCommit_afterCommitId,
postCommentForComparedCommit_content,
PostCommentForComparedCommitResponse (..),
newPostCommentForComparedCommitResponse,
postCommentForComparedCommitResponse_beforeBlobId,
postCommentForComparedCommitResponse_location,
postCommentForComparedCommitResponse_afterCommitId,
postCommentForComparedCommitResponse_afterBlobId,
postCommentForComparedCommitResponse_beforeCommitId,
postCommentForComparedCommitResponse_repositoryName,
postCommentForComparedCommitResponse_comment,
postCommentForComparedCommitResponse_httpStatus,
)
where
import Amazonka.CodeCommit.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 =
{
:: Prelude.Maybe Location,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Text,
:: Prelude.Text,
:: Prelude.Text
}
deriving (PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool
(PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool)
-> (PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool)
-> Eq PostCommentForComparedCommit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool
$c/= :: PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool
== :: PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool
$c== :: PostCommentForComparedCommit
-> PostCommentForComparedCommit -> Bool
Prelude.Eq, ReadPrec [PostCommentForComparedCommit]
ReadPrec PostCommentForComparedCommit
Int -> ReadS PostCommentForComparedCommit
ReadS [PostCommentForComparedCommit]
(Int -> ReadS PostCommentForComparedCommit)
-> ReadS [PostCommentForComparedCommit]
-> ReadPrec PostCommentForComparedCommit
-> ReadPrec [PostCommentForComparedCommit]
-> Read PostCommentForComparedCommit
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PostCommentForComparedCommit]
$creadListPrec :: ReadPrec [PostCommentForComparedCommit]
readPrec :: ReadPrec PostCommentForComparedCommit
$creadPrec :: ReadPrec PostCommentForComparedCommit
readList :: ReadS [PostCommentForComparedCommit]
$creadList :: ReadS [PostCommentForComparedCommit]
readsPrec :: Int -> ReadS PostCommentForComparedCommit
$creadsPrec :: Int -> ReadS PostCommentForComparedCommit
Prelude.Read, Int -> PostCommentForComparedCommit -> ShowS
[PostCommentForComparedCommit] -> ShowS
PostCommentForComparedCommit -> String
(Int -> PostCommentForComparedCommit -> ShowS)
-> (PostCommentForComparedCommit -> String)
-> ([PostCommentForComparedCommit] -> ShowS)
-> Show PostCommentForComparedCommit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PostCommentForComparedCommit] -> ShowS
$cshowList :: [PostCommentForComparedCommit] -> ShowS
show :: PostCommentForComparedCommit -> String
$cshow :: PostCommentForComparedCommit -> String
showsPrec :: Int -> PostCommentForComparedCommit -> ShowS
$cshowsPrec :: Int -> PostCommentForComparedCommit -> ShowS
Prelude.Show, (forall x.
PostCommentForComparedCommit -> Rep PostCommentForComparedCommit x)
-> (forall x.
Rep PostCommentForComparedCommit x -> PostCommentForComparedCommit)
-> Generic PostCommentForComparedCommit
forall x.
Rep PostCommentForComparedCommit x -> PostCommentForComparedCommit
forall x.
PostCommentForComparedCommit -> Rep PostCommentForComparedCommit x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PostCommentForComparedCommit x -> PostCommentForComparedCommit
$cfrom :: forall x.
PostCommentForComparedCommit -> Rep PostCommentForComparedCommit x
Prelude.Generic)
newPostCommentForComparedCommit ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PostCommentForComparedCommit
Text
pRepositoryName_
Text
pAfterCommitId_
Text
pContent_ =
PostCommentForComparedCommit' :: Maybe Location
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> PostCommentForComparedCommit
PostCommentForComparedCommit'
{ $sel:location:PostCommentForComparedCommit' :: Maybe Location
location =
Maybe Location
forall a. Maybe a
Prelude.Nothing,
$sel:beforeCommitId:PostCommentForComparedCommit' :: Maybe Text
beforeCommitId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:PostCommentForComparedCommit' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:PostCommentForComparedCommit' :: Text
repositoryName = Text
pRepositoryName_,
$sel:afterCommitId:PostCommentForComparedCommit' :: Text
afterCommitId = Text
pAfterCommitId_,
$sel:content:PostCommentForComparedCommit' :: Text
content = Text
pContent_
}
postCommentForComparedCommit_location :: Lens.Lens' PostCommentForComparedCommit (Prelude.Maybe Location)
= (PostCommentForComparedCommit -> Maybe Location)
-> (PostCommentForComparedCommit
-> Maybe Location -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit
PostCommentForComparedCommit
(Maybe Location)
(Maybe Location)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Maybe Location
location :: Maybe Location
$sel:location:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Location
location} -> Maybe Location
location) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Maybe Location
a -> PostCommentForComparedCommit
s {$sel:location:PostCommentForComparedCommit' :: Maybe Location
location = Maybe Location
a} :: PostCommentForComparedCommit)
postCommentForComparedCommit_beforeCommitId :: Lens.Lens' PostCommentForComparedCommit (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommit -> Maybe Text)
-> (PostCommentForComparedCommit
-> Maybe Text -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit
PostCommentForComparedCommit
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Maybe Text
beforeCommitId :: Maybe Text
$sel:beforeCommitId:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Text
beforeCommitId} -> Maybe Text
beforeCommitId) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Maybe Text
a -> PostCommentForComparedCommit
s {$sel:beforeCommitId:PostCommentForComparedCommit' :: Maybe Text
beforeCommitId = Maybe Text
a} :: PostCommentForComparedCommit)
postCommentForComparedCommit_clientRequestToken :: Lens.Lens' PostCommentForComparedCommit (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommit -> Maybe Text)
-> (PostCommentForComparedCommit
-> Maybe Text -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit
PostCommentForComparedCommit
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Maybe Text
a -> PostCommentForComparedCommit
s {$sel:clientRequestToken:PostCommentForComparedCommit' :: Maybe Text
clientRequestToken = Maybe Text
a} :: PostCommentForComparedCommit)
postCommentForComparedCommit_repositoryName :: Lens.Lens' PostCommentForComparedCommit Prelude.Text
= (PostCommentForComparedCommit -> Text)
-> (PostCommentForComparedCommit
-> Text -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit PostCommentForComparedCommit Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Text
repositoryName :: Text
$sel:repositoryName:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
repositoryName} -> Text
repositoryName) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Text
a -> PostCommentForComparedCommit
s {$sel:repositoryName:PostCommentForComparedCommit' :: Text
repositoryName = Text
a} :: PostCommentForComparedCommit)
postCommentForComparedCommit_afterCommitId :: Lens.Lens' PostCommentForComparedCommit Prelude.Text
= (PostCommentForComparedCommit -> Text)
-> (PostCommentForComparedCommit
-> Text -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit PostCommentForComparedCommit Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Text
afterCommitId :: Text
$sel:afterCommitId:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
afterCommitId} -> Text
afterCommitId) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Text
a -> PostCommentForComparedCommit
s {$sel:afterCommitId:PostCommentForComparedCommit' :: Text
afterCommitId = Text
a} :: PostCommentForComparedCommit)
postCommentForComparedCommit_content :: Lens.Lens' PostCommentForComparedCommit Prelude.Text
= (PostCommentForComparedCommit -> Text)
-> (PostCommentForComparedCommit
-> Text -> PostCommentForComparedCommit)
-> Lens
PostCommentForComparedCommit PostCommentForComparedCommit Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommit' {Text
content :: Text
$sel:content:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
content} -> Text
content) (\s :: PostCommentForComparedCommit
s@PostCommentForComparedCommit' {} Text
a -> PostCommentForComparedCommit
s {$sel:content:PostCommentForComparedCommit' :: Text
content = Text
a} :: PostCommentForComparedCommit)
instance Core.AWSRequest PostCommentForComparedCommit where
type
AWSResponse PostCommentForComparedCommit =
PostCommentForComparedCommitResponse
request :: PostCommentForComparedCommit
-> Request PostCommentForComparedCommit
request = Service
-> PostCommentForComparedCommit
-> Request PostCommentForComparedCommit
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PostCommentForComparedCommit
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PostCommentForComparedCommit)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PostCommentForComparedCommit))
-> Logger
-> Service
-> Proxy PostCommentForComparedCommit
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PostCommentForComparedCommit)))
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 Location
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse'
(Maybe Text
-> Maybe Location
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Location
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
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
"beforeBlobId")
Either
String
(Maybe Location
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
-> Either String (Maybe Location)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Location)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"location")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
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
"afterCommitId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
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
"afterBlobId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Comment -> Int -> PostCommentForComparedCommitResponse)
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
"beforeCommitId")
Either
String
(Maybe Text
-> Maybe Comment -> Int -> PostCommentForComparedCommitResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Comment -> Int -> PostCommentForComparedCommitResponse)
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
"repositoryName")
Either
String
(Maybe Comment -> Int -> PostCommentForComparedCommitResponse)
-> Either String (Maybe Comment)
-> Either String (Int -> PostCommentForComparedCommitResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Comment)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"comment")
Either String (Int -> PostCommentForComparedCommitResponse)
-> Either String Int
-> Either String PostCommentForComparedCommitResponse
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
PostCommentForComparedCommit
instance Prelude.NFData PostCommentForComparedCommit
instance Core.ToHeaders PostCommentForComparedCommit where
toHeaders :: PostCommentForComparedCommit -> ResponseHeaders
toHeaders =
ResponseHeaders -> PostCommentForComparedCommit -> 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
"CodeCommit_20150413.PostCommentForComparedCommit" ::
Prelude.ByteString
),
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 PostCommentForComparedCommit where
toJSON :: PostCommentForComparedCommit -> Value
toJSON PostCommentForComparedCommit' {Maybe Text
Maybe Location
Text
content :: Text
afterCommitId :: Text
repositoryName :: Text
clientRequestToken :: Maybe Text
beforeCommitId :: Maybe Text
location :: Maybe Location
$sel:content:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
$sel:afterCommitId:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
$sel:repositoryName:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Text
$sel:clientRequestToken:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Text
$sel:beforeCommitId:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Text
$sel:location:PostCommentForComparedCommit' :: PostCommentForComparedCommit -> Maybe Location
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"location" Text -> Location -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Location -> Pair) -> Maybe Location -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Location
location,
(Text
"beforeCommitId" 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
beforeCommitId,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"afterCommitId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
afterCommitId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"content" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
content)
]
)
instance Core.ToPath PostCommentForComparedCommit where
toPath :: PostCommentForComparedCommit -> ByteString
toPath = ByteString -> PostCommentForComparedCommit -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PostCommentForComparedCommit where
toQuery :: PostCommentForComparedCommit -> QueryString
toQuery = QueryString -> PostCommentForComparedCommit -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data =
{
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Location,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Comment,
:: Prelude.Int
}
deriving (PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool
(PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool)
-> (PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool)
-> Eq PostCommentForComparedCommitResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool
$c/= :: PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool
== :: PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool
$c== :: PostCommentForComparedCommitResponse
-> PostCommentForComparedCommitResponse -> Bool
Prelude.Eq, ReadPrec [PostCommentForComparedCommitResponse]
ReadPrec PostCommentForComparedCommitResponse
Int -> ReadS PostCommentForComparedCommitResponse
ReadS [PostCommentForComparedCommitResponse]
(Int -> ReadS PostCommentForComparedCommitResponse)
-> ReadS [PostCommentForComparedCommitResponse]
-> ReadPrec PostCommentForComparedCommitResponse
-> ReadPrec [PostCommentForComparedCommitResponse]
-> Read PostCommentForComparedCommitResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PostCommentForComparedCommitResponse]
$creadListPrec :: ReadPrec [PostCommentForComparedCommitResponse]
readPrec :: ReadPrec PostCommentForComparedCommitResponse
$creadPrec :: ReadPrec PostCommentForComparedCommitResponse
readList :: ReadS [PostCommentForComparedCommitResponse]
$creadList :: ReadS [PostCommentForComparedCommitResponse]
readsPrec :: Int -> ReadS PostCommentForComparedCommitResponse
$creadsPrec :: Int -> ReadS PostCommentForComparedCommitResponse
Prelude.Read, Int -> PostCommentForComparedCommitResponse -> ShowS
[PostCommentForComparedCommitResponse] -> ShowS
PostCommentForComparedCommitResponse -> String
(Int -> PostCommentForComparedCommitResponse -> ShowS)
-> (PostCommentForComparedCommitResponse -> String)
-> ([PostCommentForComparedCommitResponse] -> ShowS)
-> Show PostCommentForComparedCommitResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PostCommentForComparedCommitResponse] -> ShowS
$cshowList :: [PostCommentForComparedCommitResponse] -> ShowS
show :: PostCommentForComparedCommitResponse -> String
$cshow :: PostCommentForComparedCommitResponse -> String
showsPrec :: Int -> PostCommentForComparedCommitResponse -> ShowS
$cshowsPrec :: Int -> PostCommentForComparedCommitResponse -> ShowS
Prelude.Show, (forall x.
PostCommentForComparedCommitResponse
-> Rep PostCommentForComparedCommitResponse x)
-> (forall x.
Rep PostCommentForComparedCommitResponse x
-> PostCommentForComparedCommitResponse)
-> Generic PostCommentForComparedCommitResponse
forall x.
Rep PostCommentForComparedCommitResponse x
-> PostCommentForComparedCommitResponse
forall x.
PostCommentForComparedCommitResponse
-> Rep PostCommentForComparedCommitResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PostCommentForComparedCommitResponse x
-> PostCommentForComparedCommitResponse
$cfrom :: forall x.
PostCommentForComparedCommitResponse
-> Rep PostCommentForComparedCommitResponse x
Prelude.Generic)
newPostCommentForComparedCommitResponse ::
Prelude.Int ->
PostCommentForComparedCommitResponse
Int
pHttpStatus_ =
PostCommentForComparedCommitResponse' :: Maybe Text
-> Maybe Location
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Comment
-> Int
-> PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse'
{ $sel:beforeBlobId:PostCommentForComparedCommitResponse' :: Maybe Text
beforeBlobId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:location:PostCommentForComparedCommitResponse' :: Maybe Location
location = Maybe Location
forall a. Maybe a
Prelude.Nothing,
$sel:afterCommitId:PostCommentForComparedCommitResponse' :: Maybe Text
afterCommitId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:afterBlobId:PostCommentForComparedCommitResponse' :: Maybe Text
afterBlobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:beforeCommitId:PostCommentForComparedCommitResponse' :: Maybe Text
beforeCommitId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:PostCommentForComparedCommitResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:comment:PostCommentForComparedCommitResponse' :: Maybe Comment
comment = Maybe Comment
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PostCommentForComparedCommitResponse' :: Int
httpStatus = Int
pHttpStatus_
}
postCommentForComparedCommitResponse_beforeBlobId :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommitResponse -> Maybe Text)
-> (PostCommentForComparedCommitResponse
-> Maybe Text -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Text
beforeBlobId :: Maybe Text
$sel:beforeBlobId:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Text
beforeBlobId} -> Maybe Text
beforeBlobId) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Text
a -> PostCommentForComparedCommitResponse
s {$sel:beforeBlobId:PostCommentForComparedCommitResponse' :: Maybe Text
beforeBlobId = Maybe Text
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_location :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Location)
= (PostCommentForComparedCommitResponse -> Maybe Location)
-> (PostCommentForComparedCommitResponse
-> Maybe Location -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Location)
(Maybe Location)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Location
location :: Maybe Location
$sel:location:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Location
location} -> Maybe Location
location) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Location
a -> PostCommentForComparedCommitResponse
s {$sel:location:PostCommentForComparedCommitResponse' :: Maybe Location
location = Maybe Location
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_afterCommitId :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommitResponse -> Maybe Text)
-> (PostCommentForComparedCommitResponse
-> Maybe Text -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Text
afterCommitId :: Maybe Text
$sel:afterCommitId:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Text
afterCommitId} -> Maybe Text
afterCommitId) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Text
a -> PostCommentForComparedCommitResponse
s {$sel:afterCommitId:PostCommentForComparedCommitResponse' :: Maybe Text
afterCommitId = Maybe Text
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_afterBlobId :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommitResponse -> Maybe Text)
-> (PostCommentForComparedCommitResponse
-> Maybe Text -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Text
afterBlobId :: Maybe Text
$sel:afterBlobId:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Text
afterBlobId} -> Maybe Text
afterBlobId) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Text
a -> PostCommentForComparedCommitResponse
s {$sel:afterBlobId:PostCommentForComparedCommitResponse' :: Maybe Text
afterBlobId = Maybe Text
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_beforeCommitId :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommitResponse -> Maybe Text)
-> (PostCommentForComparedCommitResponse
-> Maybe Text -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Text
beforeCommitId :: Maybe Text
$sel:beforeCommitId:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Text
beforeCommitId} -> Maybe Text
beforeCommitId) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Text
a -> PostCommentForComparedCommitResponse
s {$sel:beforeCommitId:PostCommentForComparedCommitResponse' :: Maybe Text
beforeCommitId = Maybe Text
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_repositoryName :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Prelude.Text)
= (PostCommentForComparedCommitResponse -> Maybe Text)
-> (PostCommentForComparedCommitResponse
-> Maybe Text -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Text
a -> PostCommentForComparedCommitResponse
s {$sel:repositoryName:PostCommentForComparedCommitResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_comment :: Lens.Lens' PostCommentForComparedCommitResponse (Prelude.Maybe Comment)
= (PostCommentForComparedCommitResponse -> Maybe Comment)
-> (PostCommentForComparedCommitResponse
-> Maybe Comment -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
(Maybe Comment)
(Maybe Comment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Maybe Comment
comment :: Maybe Comment
$sel:comment:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Maybe Comment
comment} -> Maybe Comment
comment) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Maybe Comment
a -> PostCommentForComparedCommitResponse
s {$sel:comment:PostCommentForComparedCommitResponse' :: Maybe Comment
comment = Maybe Comment
a} :: PostCommentForComparedCommitResponse)
postCommentForComparedCommitResponse_httpStatus :: Lens.Lens' PostCommentForComparedCommitResponse Prelude.Int
= (PostCommentForComparedCommitResponse -> Int)
-> (PostCommentForComparedCommitResponse
-> Int -> PostCommentForComparedCommitResponse)
-> Lens
PostCommentForComparedCommitResponse
PostCommentForComparedCommitResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PostCommentForComparedCommitResponse' {Int
httpStatus :: Int
$sel:httpStatus:PostCommentForComparedCommitResponse' :: PostCommentForComparedCommitResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PostCommentForComparedCommitResponse
s@PostCommentForComparedCommitResponse' {} Int
a -> PostCommentForComparedCommitResponse
s {$sel:httpStatus:PostCommentForComparedCommitResponse' :: Int
httpStatus = Int
a} :: PostCommentForComparedCommitResponse)
instance
Prelude.NFData
PostCommentForComparedCommitResponse