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.

UpdateQualificationTypeInput

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

type UpdateQualificationTypeInput struct { AnswerKey *string `type:"string"` AutoGranted *bool `type:"boolean"` AutoGrantedValue *int64 `type:"integer"` Description *string `type:"string"` QualificationTypeId *string `min:"1" type:"string" required:"true"` QualificationTypeStatus *string `type:"string" 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.

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

The new description of the Qualification type.

QualificationTypeId

Type: *string

The ID of the Qualification type to update.

QualificationTypeId is a required field

QualificationTypeStatus

Type: *string

The new status of the Qualification type - Active | Inactive

RetryDelayInSeconds

Type: *int64

The amount of time, in seconds, that Workers must wait after requesting a Qualification of the specified Qualification type before they can retry the Qualification request. 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 dispose of the existing retry-enabled Qualification type using DisposeQualificationType and then create a new Qualification type with retries disabled using CreateQualificationType.

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 UpdateQualificationTypeInput) GoString() string

GoString returns the string representation

SetAnswerKey

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

SetAnswerKey sets the AnswerKey field's value.

SetAutoGranted

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

SetAutoGranted sets the AutoGranted field's value.

SetAutoGrantedValue

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

SetAutoGrantedValue sets the AutoGrantedValue field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetQualificationTypeId

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

SetQualificationTypeId sets the QualificationTypeId field's value.

SetQualificationTypeStatus

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

SetQualificationTypeStatus sets the QualificationTypeStatus field's value.

SetRetryDelayInSeconds

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

SetRetryDelayInSeconds sets the RetryDelayInSeconds field's value.

SetTest

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

SetTest sets the Test field's value.

SetTestDurationInSeconds

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

SetTestDurationInSeconds sets the TestDurationInSeconds field's value.

String

func (s UpdateQualificationTypeInput) String() string

String returns the string representation

Validate

func (s *UpdateQualificationTypeInput) Validate() error

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

On this page: