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.GetCommentsForPullRequest

Contents

Description

Returns comments made on a pull request.

This operation returns paginated results.

Synopsis

Creating a Request

getCommentsForPullRequest Source #

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

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

  • gcfprAfterCommitId - The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.
  • gcfprNextToken - An enumeration token that when provided in a request, returns the next batch of the results.
  • gcfprBeforeCommitId - The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
  • gcfprRepositoryName - The name of the repository that contains the pull request.
  • gcfprMaxResults - A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
  • gcfprPullRequestId - The system-generated ID of the pull request. To get this ID, use ListPullRequests .

data GetCommentsForPullRequest Source #

See: getCommentsForPullRequest smart constructor.

Instances

Eq GetCommentsForPullRequest Source # 
Data GetCommentsForPullRequest Source # 

Methods

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

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

toConstr :: GetCommentsForPullRequest -> Constr #

dataTypeOf :: GetCommentsForPullRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommentsForPullRequest Source # 
Show GetCommentsForPullRequest Source # 
Generic GetCommentsForPullRequest Source # 
Hashable GetCommentsForPullRequest Source # 
ToJSON GetCommentsForPullRequest Source # 
NFData GetCommentsForPullRequest Source # 
AWSPager GetCommentsForPullRequest Source # 
AWSRequest GetCommentsForPullRequest Source # 
ToHeaders GetCommentsForPullRequest Source # 
ToPath GetCommentsForPullRequest Source # 
ToQuery GetCommentsForPullRequest Source # 
type Rep GetCommentsForPullRequest Source # 
type Rep GetCommentsForPullRequest = D1 * (MetaData "GetCommentsForPullRequest" "Network.AWS.CodeCommit.GetCommentsForPullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "GetCommentsForPullRequest'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gcfprBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_gcfprPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetCommentsForPullRequest Source # 

Request Lenses

gcfprAfterCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.

gcfprNextToken :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

An enumeration token that when provided in a request, returns the next batch of the results.

gcfprBeforeCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

gcfprRepositoryName :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The name of the repository that contains the pull request.

gcfprMaxResults :: Lens' GetCommentsForPullRequest (Maybe Int) Source #

A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.

gcfprPullRequestId :: Lens' GetCommentsForPullRequest Text Source #

The system-generated ID of the pull request. To get this ID, use ListPullRequests .

Destructuring the Response

getCommentsForPullRequestResponse Source #

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

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

data GetCommentsForPullRequestResponse Source #

See: getCommentsForPullRequestResponse smart constructor.

Instances

Eq GetCommentsForPullRequestResponse Source # 
Data GetCommentsForPullRequestResponse Source # 

Methods

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

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

toConstr :: GetCommentsForPullRequestResponse -> Constr #

dataTypeOf :: GetCommentsForPullRequestResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommentsForPullRequestResponse Source # 
Show GetCommentsForPullRequestResponse Source # 
Generic GetCommentsForPullRequestResponse Source # 
NFData GetCommentsForPullRequestResponse Source # 
type Rep GetCommentsForPullRequestResponse Source # 
type Rep GetCommentsForPullRequestResponse = D1 * (MetaData "GetCommentsForPullRequestResponse" "Network.AWS.CodeCommit.GetCommentsForPullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "GetCommentsForPullRequestResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprrsCommentsForPullRequestData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [CommentsForPullRequest]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcfprrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gcfprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gcfprrsNextToken :: Lens' GetCommentsForPullRequestResponse (Maybe Text) Source #

An enumeration token that can be used in a request to return the next batch of the results.