/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The Qualification data structure represents a Qualification assigned to a
* user, including the Qualification type and the value (score).See
* Also:
AWS
* API Reference
The ID of the Qualification type for the Qualification.
*/ inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; } /** *The ID of the Qualification type for the Qualification.
*/ inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; } /** *The ID of the Qualification type for the Qualification.
*/ inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; } /** *The ID of the Qualification type for the Qualification.
*/ inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); } /** *The ID of the Qualification type for the Qualification.
*/ inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); } /** *The ID of the Qualification type for the Qualification.
*/ inline Qualification& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;} /** *The ID of the Qualification type for the Qualification.
*/ inline Qualification& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;} /** *The ID of the Qualification type for the Qualification.
*/ inline Qualification& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;} /** *The ID of the Worker who possesses the Qualification.
*/ inline const Aws::String& GetWorkerId() const{ return m_workerId; } /** *The ID of the Worker who possesses the Qualification.
*/ inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; } /** *The ID of the Worker who possesses the Qualification.
*/ inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; } /** *The ID of the Worker who possesses the Qualification.
*/ inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); } /** *The ID of the Worker who possesses the Qualification.
*/ inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); } /** *The ID of the Worker who possesses the Qualification.
*/ inline Qualification& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;} /** *The ID of the Worker who possesses the Qualification.
*/ inline Qualification& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;} /** *The ID of the Worker who possesses the Qualification.
*/ inline Qualification& WithWorkerId(const char* value) { SetWorkerId(value); return *this;} /** *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.
*/ inline const Aws::Utils::DateTime& GetGrantTime() const{ return m_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.
*/ inline bool GrantTimeHasBeenSet() const { return m_grantTimeHasBeenSet; } /** *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.
*/ inline void SetGrantTime(const Aws::Utils::DateTime& value) { m_grantTimeHasBeenSet = true; m_grantTime = value; } /** *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.
*/ inline void SetGrantTime(Aws::Utils::DateTime&& value) { m_grantTimeHasBeenSet = true; m_grantTime = std::move(value); } /** *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.
*/ inline Qualification& WithGrantTime(const Aws::Utils::DateTime& value) { SetGrantTime(value); return *this;} /** *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.
*/ inline Qualification& WithGrantTime(Aws::Utils::DateTime&& value) { SetGrantTime(std::move(value)); return *this;} /** *The value (score) of the Qualification, if the Qualification has an integer * value.
*/ inline int GetIntegerValue() const{ return m_integerValue; } /** *The value (score) of the Qualification, if the Qualification has an integer * value.
*/ inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; } /** *The value (score) of the Qualification, if the Qualification has an integer * value.
*/ inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; } /** *The value (score) of the Qualification, if the Qualification has an integer * value.
*/ inline Qualification& WithIntegerValue(int value) { SetIntegerValue(value); return *this;} inline const Locale& GetLocaleValue() const{ return m_localeValue; } inline bool LocaleValueHasBeenSet() const { return m_localeValueHasBeenSet; } inline void SetLocaleValue(const Locale& value) { m_localeValueHasBeenSet = true; m_localeValue = value; } inline void SetLocaleValue(Locale&& value) { m_localeValueHasBeenSet = true; m_localeValue = std::move(value); } inline Qualification& WithLocaleValue(const Locale& value) { SetLocaleValue(value); return *this;} inline Qualification& WithLocaleValue(Locale&& value) { SetLocaleValue(std::move(value)); return *this;} /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline const QualificationStatus& GetStatus() const{ return m_status; } /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline void SetStatus(const QualificationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline void SetStatus(QualificationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline Qualification& WithStatus(const QualificationStatus& value) { SetStatus(value); return *this;} /** *The status of the Qualification. Valid values are Granted | Revoked.
*/ inline Qualification& WithStatus(QualificationStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_qualificationTypeId; bool m_qualificationTypeIdHasBeenSet = false; Aws::String m_workerId; bool m_workerIdHasBeenSet = false; Aws::Utils::DateTime m_grantTime; bool m_grantTimeHasBeenSet = false; int m_integerValue; bool m_integerValueHasBeenSet = false; Locale m_localeValue; bool m_localeValueHasBeenSet = false; QualificationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws