amazonka-mechanicalturk-2.0: Amazon Mechanical Turk SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MechanicalTurk.Types.ParameterMapEntry

Description

 
Synopsis

Documentation

data ParameterMapEntry Source #

This data structure is the data type for the AnswerKey parameter of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

See: newParameterMapEntry smart constructor.

Constructors

ParameterMapEntry' 

Fields

  • key :: Maybe Text

    The QuestionID from the HIT that is used to identify which question requires Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

  • values :: Maybe [Text]

    The list of answers to the question specified in the MapEntry Key element. The Worker must match all values in order for the answer to be scored correctly.

Instances

Instances details
FromJSON ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

ToJSON ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

Generic ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

Associated Types

type Rep ParameterMapEntry :: Type -> Type #

Read ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

Show ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

NFData ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

Methods

rnf :: ParameterMapEntry -> () #

Eq ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

Hashable ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

type Rep ParameterMapEntry Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.ParameterMapEntry

type Rep ParameterMapEntry = D1 ('MetaData "ParameterMapEntry" "Amazonka.MechanicalTurk.Types.ParameterMapEntry" "amazonka-mechanicalturk-2.0-7Thix2UjvlJINPIH68shk3" 'False) (C1 ('MetaCons "ParameterMapEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

newParameterMapEntry :: ParameterMapEntry Source #

Create a value of ParameterMapEntry with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:key:ParameterMapEntry', parameterMapEntry_key - The QuestionID from the HIT that is used to identify which question requires Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

$sel:values:ParameterMapEntry', parameterMapEntry_values - The list of answers to the question specified in the MapEntry Key element. The Worker must match all values in order for the answer to be scored correctly.

parameterMapEntry_key :: Lens' ParameterMapEntry (Maybe Text) Source #

The QuestionID from the HIT that is used to identify which question requires Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

parameterMapEntry_values :: Lens' ParameterMapEntry (Maybe [Text]) Source #

The list of answers to the question specified in the MapEntry Key element. The Worker must match all values in order for the answer to be scored correctly.