amazonka-codecommit-1.6.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.GetComment

Contents

Description

Returns the content of a comment made on a change, file, or commit in a repository.

Synopsis

Creating a Request

getComment Source #

Arguments

:: Text

gcCommentId

-> GetComment 

Creates a value of GetComment with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gcCommentId - The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .

data GetComment Source #

See: getComment smart constructor.

Instances

Eq GetComment Source # 
Data GetComment Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetComment -> c GetComment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetComment #

toConstr :: GetComment -> Constr #

dataTypeOf :: GetComment -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetComment) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetComment) #

gmapT :: (forall b. Data b => b -> b) -> GetComment -> GetComment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetComment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetComment -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetComment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetComment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetComment -> m GetComment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetComment -> m GetComment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetComment -> m GetComment #

Read GetComment Source # 
Show GetComment Source # 
Generic GetComment Source # 

Associated Types

type Rep GetComment :: * -> * #

Hashable GetComment Source # 
ToJSON GetComment Source # 
NFData GetComment Source # 

Methods

rnf :: GetComment -> () #

AWSRequest GetComment Source # 
ToHeaders GetComment Source # 

Methods

toHeaders :: GetComment -> [Header] #

ToPath GetComment Source # 
ToQuery GetComment Source # 
type Rep GetComment Source # 
type Rep GetComment = D1 * (MetaData "GetComment" "Network.AWS.CodeCommit.GetComment" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" True) (C1 * (MetaCons "GetComment'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gcCommentId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetComment Source # 

Request Lenses

gcCommentId :: Lens' GetComment Text Source #

The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .

Destructuring the Response

getCommentResponse Source #

Creates a value of GetCommentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetCommentResponse Source #

See: getCommentResponse smart constructor.

Instances

Eq GetCommentResponse Source # 
Data GetCommentResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCommentResponse -> c GetCommentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCommentResponse #

toConstr :: GetCommentResponse -> Constr #

dataTypeOf :: GetCommentResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetCommentResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCommentResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetCommentResponse -> GetCommentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCommentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCommentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCommentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCommentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCommentResponse -> m GetCommentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCommentResponse -> m GetCommentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCommentResponse -> m GetCommentResponse #

Read GetCommentResponse Source # 
Show GetCommentResponse Source # 
Generic GetCommentResponse Source # 
NFData GetCommentResponse Source # 

Methods

rnf :: GetCommentResponse -> () #

type Rep GetCommentResponse Source # 
type Rep GetCommentResponse = D1 * (MetaData "GetCommentResponse" "Network.AWS.CodeCommit.GetComment" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "GetCommentResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_getrsComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Comment))) (S1 * (MetaSel (Just Symbol "_getrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

getrsComment :: Lens' GetCommentResponse (Maybe Comment) Source #

The contents of the comment.

getrsResponseStatus :: Lens' GetCommentResponse Int Source #

  • - | The response status code.