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.

CreateQualificationTypeInput

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

type CreateQualificationTypeInput struct { AnswerKey *string `type:"string"` AutoGranted *bool `type:"boolean"` AutoGrantedValue *int64 `type:"integer"` Description *string `type:"string" required:"true"` Keywords *string `type:"string"` Name *string `type:"string" required:"true"` QualificationTypeStatus *string `type:"string" required:"true" enum:"QualificationTypeStatus"` RetryDelayInSeconds *int64 `type:"long"` Test *string `type:"string"` TestDurationInSeconds *int64 `type:"long"` }

AnswerKey

Type: *string

The answers to the Qualification test specified in the Test parameter, in the form of an AnswerKey data structure.

Constraints: Must not be longer than 65535 bytes.

Constraints: None. If not specified, you must process Qualification requests manually.

AutoGranted

Type: *bool

Specifies whether requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test.

Constraints: If the Test parameter is specified, this parameter cannot be true.

AutoGrantedValue

Type: *int64

The Qualification value to use for automatically granted Qualifications. This parameter is used only if the AutoGranted parameter is true.

Description

Type: *string

A long description for the Qualification type. On the Amazon Mechanical Turk website, the long description is displayed when a Worker examines a Qualification type.

Description is a required field

Keywords

Type: *string

One or more words or phrases that describe the Qualification type, separated by commas. The keywords of a type make the type easier to find during a search.

Name

Type: *string

The name you give to the Qualification type. The type name is used to represent the Qualification to Workers, and to find the type using a Qualification type search. It must be unique across all of your Qualification types.

Name is a required field

QualificationTypeStatus

Type: *string

The initial status of the Qualification type.

Constraints: Valid values are: Active | Inactive

QualificationTypeStatus is a required field

RetryDelayInSeconds

Type: *int64

The number of seconds that a Worker must wait after requesting a Qualification of the Qualification type before the worker can retry the Qualification request.

Constraints: None. If not specified, retries are disabled and Workers can request a Qualification of this type only once, even if the Worker has not been granted the Qualification. It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must delete existing retry-enabled Qualification type and then create a new Qualification type with retries disabled.

Test

Type: *string

The questions for the Qualification test a Worker must answer correctly to obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds must also be specified.

Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This parameter cannot be specified if AutoGranted is true.

Constraints: None. If not specified, the Worker may request the Qualification without answering any questions.

TestDurationInSeconds

Type: *int64

The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification.

Method

GoString

func (s CreateQualificationTypeInput) GoString() string

GoString returns the string representation

SetAnswerKey

func (s *CreateQualificationTypeInput) SetAnswerKey(v string) *CreateQualificationTypeInput

SetAnswerKey sets the AnswerKey field's value.

SetAutoGranted

func (s *CreateQualificationTypeInput) SetAutoGranted(v bool) *CreateQualificationTypeInput

SetAutoGranted sets the AutoGranted field's value.

SetAutoGrantedValue

func (s *CreateQualificationTypeInput) SetAutoGrantedValue(v int64) *CreateQualificationTypeInput

SetAutoGrantedValue sets the AutoGrantedValue field's value.

SetDescription

func (s *CreateQualificationTypeInput) SetDescription(v string) *CreateQualificationTypeInput

SetDescription sets the Description field's value.

SetKeywords

func (s *CreateQualificationTypeInput) SetKeywords(v string) *CreateQualificationTypeInput

SetKeywords sets the Keywords field's value.

SetName

func (s *CreateQualificationTypeInput) SetName(v string) *CreateQualificationTypeInput

SetName sets the Name field's value.

SetQualificationTypeStatus

func (s *CreateQualificationTypeInput) SetQualificationTypeStatus(v string) *CreateQualificationTypeInput

SetQualificationTypeStatus sets the QualificationTypeStatus field's value.

SetRetryDelayInSeconds

func (s *CreateQualificationTypeInput) SetRetryDelayInSeconds(v int64) *CreateQualificationTypeInput

SetRetryDelayInSeconds sets the RetryDelayInSeconds field's value.

SetTest

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

SetTest sets the Test field's value.

SetTestDurationInSeconds

func (s *CreateQualificationTypeInput) SetTestDurationInSeconds(v int64) *CreateQualificationTypeInput

SetTestDurationInSeconds sets the TestDurationInSeconds field's value.

String

func (s CreateQualificationTypeInput) String() string

String returns the string representation

Validate

func (s *CreateQualificationTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: