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

Amazonka.MechanicalTurk.Types.Qualification

Description

 
Synopsis

Documentation

data Qualification Source #

The Qualification data structure represents a Qualification assigned to a user, including the Qualification type and the value (score).

See: newQualification smart constructor.

Constructors

Qualification' 

Fields

  • status :: Maybe QualificationStatus

    The status of the Qualification. Valid values are Granted | Revoked.

  • integerValue :: Maybe Int

    The value (score) of the Qualification, if the Qualification has an integer value.

  • localeValue :: Maybe Locale
     
  • qualificationTypeId :: Maybe Text

    The ID of the Qualification type for the Qualification.

  • grantTime :: Maybe POSIX

    The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.

  • workerId :: Maybe Text

    The ID of the Worker who possesses the Qualification.

Instances

Instances details
Eq Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

Read Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

Show Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

Generic Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

Associated Types

type Rep Qualification :: Type -> Type #

NFData Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

Methods

rnf :: Qualification -> () #

Hashable Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

FromJSON Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

type Rep Qualification Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Qualification

type Rep Qualification = D1 ('MetaData "Qualification" "Amazonka.MechanicalTurk.Types.Qualification" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "Qualification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QualificationStatus)) :*: (S1 ('MetaSel ('Just "integerValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "localeValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Locale)))) :*: (S1 ('MetaSel ('Just "qualificationTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "grantTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "workerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newQualification :: Qualification Source #

Create a value of Qualification 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:status:Qualification', qualification_status - The status of the Qualification. Valid values are Granted | Revoked.

$sel:integerValue:Qualification', qualification_integerValue - The value (score) of the Qualification, if the Qualification has an integer value.

$sel:localeValue:Qualification', qualification_localeValue - Undocumented member.

$sel:qualificationTypeId:Qualification', qualification_qualificationTypeId - The ID of the Qualification type for the Qualification.

$sel:grantTime:Qualification', qualification_grantTime - The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.

$sel:workerId:Qualification', qualification_workerId - The ID of the Worker who possesses the Qualification.

qualification_status :: Lens' Qualification (Maybe QualificationStatus) Source #

The status of the Qualification. Valid values are Granted | Revoked.

qualification_integerValue :: Lens' Qualification (Maybe Int) Source #

The value (score) of the Qualification, if the Qualification has an integer value.

qualification_qualificationTypeId :: Lens' Qualification (Maybe Text) Source #

The ID of the Qualification type for the Qualification.

qualification_grantTime :: Lens' Qualification (Maybe UTCTime) Source #

The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.

qualification_workerId :: Lens' Qualification (Maybe Text) Source #

The ID of the Worker who possesses the Qualification.