amazonka-mechanicalturk-1.5.0: Amazon Mechanical Turk SDK.

Copyright(c) 2013-2017 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.MechanicalTurk.ListBonusPayments

Contents

Description

The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.

Synopsis

Creating a Request

listBonusPayments :: ListBonusPayments Source #

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

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

  • lbpNextToken - Pagination token
  • lbpHITId - The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified
  • lbpAssignmentId - The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified
  • lbpMaxResults - Undocumented member.

data ListBonusPayments Source #

See: listBonusPayments smart constructor.

Instances

Eq ListBonusPayments Source # 
Data ListBonusPayments Source # 

Methods

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

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

toConstr :: ListBonusPayments -> Constr #

dataTypeOf :: ListBonusPayments -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListBonusPayments Source # 
Show ListBonusPayments Source # 
Generic ListBonusPayments Source # 
Hashable ListBonusPayments Source # 
ToJSON ListBonusPayments Source # 
NFData ListBonusPayments Source # 

Methods

rnf :: ListBonusPayments -> () #

AWSRequest ListBonusPayments Source # 
ToQuery ListBonusPayments Source # 
ToPath ListBonusPayments Source # 
ToHeaders ListBonusPayments Source # 
type Rep ListBonusPayments Source # 
type Rep ListBonusPayments = D1 (MetaData "ListBonusPayments" "Network.AWS.MechanicalTurk.ListBonusPayments" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" False) (C1 (MetaCons "ListBonusPayments'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lbpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lbpHITId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lbpAssignmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lbpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs ListBonusPayments Source # 

Request Lenses

lbpHITId :: Lens' ListBonusPayments (Maybe Text) Source #

The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified

lbpAssignmentId :: Lens' ListBonusPayments (Maybe Text) Source #

The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified

Destructuring the Response

listBonusPaymentsResponse Source #

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

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

  • lbprsBonusPayments - A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
  • lbprsNextToken - Undocumented member.
  • lbprsNumResults - The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.
  • lbprsResponseStatus - -- | The response status code.

data ListBonusPaymentsResponse Source #

See: listBonusPaymentsResponse smart constructor.

Instances

Eq ListBonusPaymentsResponse Source # 
Data ListBonusPaymentsResponse Source # 

Methods

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

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

toConstr :: ListBonusPaymentsResponse -> Constr #

dataTypeOf :: ListBonusPaymentsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListBonusPaymentsResponse Source # 
Show ListBonusPaymentsResponse Source # 
Generic ListBonusPaymentsResponse Source # 
NFData ListBonusPaymentsResponse Source # 
type Rep ListBonusPaymentsResponse Source # 
type Rep ListBonusPaymentsResponse = D1 (MetaData "ListBonusPaymentsResponse" "Network.AWS.MechanicalTurk.ListBonusPayments" "amazonka-mechanicalturk-1.5.0-FaPkjSp7Fzg9knquA94uxS" False) (C1 (MetaCons "ListBonusPaymentsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lbprsBonusPayments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [BonusPayment]))) (S1 (MetaSel (Just Symbol "_lbprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lbprsNumResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_lbprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lbprsBonusPayments :: Lens' ListBonusPaymentsResponse [BonusPayment] Source #

A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

lbprsNumResults :: Lens' ListBonusPaymentsResponse (Maybe Int) Source #

The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.