AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Qualification

import "github.com/aws/aws-sdk-go/service/mturk"

type Qualification struct { GrantTime *time.Time `type:"timestamp"` IntegerValue *int64 `type:"integer"` LocaleValue *Locale `type:"structure"` QualificationTypeId *string `min:"1" type:"string"` Status *string `type:"string" enum:"QualificationStatus"` WorkerId *string `min:"1" type:"string"` }

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

GrantTime

Type: *time.Time

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.

IntegerValue

Type: *int64

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

LocaleValue

The Locale data structure represents a geographical region or location.

QualificationTypeId

Type: *string

The ID of the Qualification type for the Qualification.

Status

Type: *string

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

WorkerId

Type: *string

The ID of the Worker who possesses the Qualification.

Method

GoString

func (s Qualification) GoString() string

GoString returns the string representation

SetGrantTime

func (s *Qualification) SetGrantTime(v time.Time) *Qualification

SetGrantTime sets the GrantTime field's value.

SetIntegerValue

func (s *Qualification) SetIntegerValue(v int64) *Qualification

SetIntegerValue sets the IntegerValue field's value.

SetLocaleValue

func (s *Qualification) SetLocaleValue(v *Locale) *Qualification

SetLocaleValue sets the LocaleValue field's value.

SetQualificationTypeId

func (s *Qualification) SetQualificationTypeId(v string) *Qualification

SetQualificationTypeId sets the QualificationTypeId field's value.

SetStatus

func (s *Qualification) SetStatus(v string) *Qualification

SetStatus sets the Status field's value.

SetWorkerId

func (s *Qualification) SetWorkerId(v string) *Qualification

SetWorkerId sets the WorkerId field's value.

String

func (s Qualification) String() string

String returns the string representation

QualificationRequest

import "github.com/aws/aws-sdk-go/service/mturk"

type QualificationRequest struct { Answer *string `type:"string"` QualificationRequestId *string `type:"string"` QualificationTypeId *string `min:"1" type:"string"` SubmitTime *time.Time `type:"timestamp"` Test *string `type:"string"` WorkerId *string `min:"1" type:"string"` }

The QualificationRequest data structure represents a request a Worker has made for a Qualification.

Answer

Type: *string

The Worker's answers for the Qualification type's test contained in a QuestionFormAnswers document, if the type has a test and the Worker has submitted answers. If the Worker does not provide any answers, Answer may be empty.

QualificationRequestId

Type: *string

The ID of the Qualification request, a unique identifier generated when the request was submitted.

QualificationTypeId

Type: *string

The ID of the Qualification type the Worker is requesting, as returned by the CreateQualificationType operation.

SubmitTime

Type: *time.Time

The date and time the Qualification request had a status of Submitted. This is either the time the Worker submitted answers for a Qualification test, or the time the Worker requested the Qualification if the Qualification type does not have a test.

Test

Type: *string

The contents of the Qualification test that was presented to the Worker, if the type has a test and the Worker has submitted answers. This value is identical to the QuestionForm associated with the Qualification type at the time the Worker requests the Qualification.

WorkerId

Type: *string

The ID of the Worker requesting the Qualification.

Method

GoString

func (s QualificationRequest) GoString() string

GoString returns the string representation

SetAnswer

func (s *QualificationRequest) SetAnswer(v string) *QualificationRequest

SetAnswer sets the Answer field's value.

SetQualificationRequestId

func (s *QualificationRequest) SetQualificationRequestId(v string) *QualificationRequest

SetQualificationRequestId sets the QualificationRequestId field's value.

SetQualificationTypeId

func (s *QualificationRequest) SetQualificationTypeId(v string) *QualificationRequest

SetQualificationTypeId sets the QualificationTypeId field's value.

SetSubmitTime

func (s *QualificationRequest) SetSubmitTime(v time.Time) *QualificationRequest

SetSubmitTime sets the SubmitTime field's value.

SetTest

func (s *QualificationRequest) SetTest(v string) *QualificationRequest

SetTest sets the Test field's value.

SetWorkerId

func (s *QualificationRequest) SetWorkerId(v string) *QualificationRequest

SetWorkerId sets the WorkerId field's value.

String

func (s QualificationRequest) String() string

String returns the string representation