amazonka-mechanicalturk-1.6.0: Amazon Mechanical Turk 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.MechanicalTurk.GetAssignment

Contents

Description

The GetAssignment operation retrieves the details of the specified Assignment.

Synopsis

Creating a Request

getAssignment Source #

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

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

data GetAssignment Source #

See: getAssignment smart constructor.

Instances

Eq GetAssignment Source # 
Data GetAssignment Source # 

Methods

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

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

toConstr :: GetAssignment -> Constr #

dataTypeOf :: GetAssignment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetAssignment Source # 
Show GetAssignment Source # 
Generic GetAssignment Source # 

Associated Types

type Rep GetAssignment :: * -> * #

Hashable GetAssignment Source # 
ToJSON GetAssignment Source # 
NFData GetAssignment Source # 

Methods

rnf :: GetAssignment -> () #

AWSRequest GetAssignment Source # 
ToHeaders GetAssignment Source # 
ToPath GetAssignment Source # 
ToQuery GetAssignment Source # 
type Rep GetAssignment Source # 
type Rep GetAssignment = D1 * (MetaData "GetAssignment" "Network.AWS.MechanicalTurk.GetAssignment" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" True) (C1 * (MetaCons "GetAssignment'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gaAssignmentId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetAssignment Source # 

Request Lenses

gaAssignmentId :: Lens' GetAssignment Text Source #

The ID of the Assignment to be retrieved.

Destructuring the Response

getAssignmentResponse Source #

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

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

  • garsHIT - The HIT associated with this assignment. The response includes one HIT element.
  • garsAssignment - The assignment. The response includes one Assignment element.
  • garsResponseStatus - -- | The response status code.

data GetAssignmentResponse Source #

See: getAssignmentResponse smart constructor.

Instances

Eq GetAssignmentResponse Source # 
Data GetAssignmentResponse Source # 

Methods

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

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

toConstr :: GetAssignmentResponse -> Constr #

dataTypeOf :: GetAssignmentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetAssignmentResponse Source # 
Show GetAssignmentResponse Source # 
Generic GetAssignmentResponse Source # 
NFData GetAssignmentResponse Source # 

Methods

rnf :: GetAssignmentResponse -> () #

type Rep GetAssignmentResponse Source # 
type Rep GetAssignmentResponse = D1 * (MetaData "GetAssignmentResponse" "Network.AWS.MechanicalTurk.GetAssignment" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" False) (C1 * (MetaCons "GetAssignmentResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_garsHIT") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe HIT))) ((:*:) * (S1 * (MetaSel (Just Symbol "_garsAssignment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Assignment))) (S1 * (MetaSel (Just Symbol "_garsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

garsHIT :: Lens' GetAssignmentResponse (Maybe HIT) Source #

The HIT associated with this assignment. The response includes one HIT element.

garsAssignment :: Lens' GetAssignmentResponse (Maybe Assignment) Source #

The assignment. The response includes one Assignment element.

garsResponseStatus :: Lens' GetAssignmentResponse Int Source #

  • - | The response status code.