/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include When MTurk encounters an issue with notifying the Workers you specified, it
* returns back this object with failure details. See Also:
AWS
* API Reference
Encoded value for the failure type.
*/ inline const NotifyWorkersFailureCode& GetNotifyWorkersFailureCode() const{ return m_notifyWorkersFailureCode; } /** *Encoded value for the failure type.
*/ inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; } /** *Encoded value for the failure type.
*/ inline void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = value; } /** *Encoded value for the failure type.
*/ inline void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = std::move(value); } /** *Encoded value for the failure type.
*/ inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { SetNotifyWorkersFailureCode(value); return *this;} /** *Encoded value for the failure type.
*/ inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { SetNotifyWorkersFailureCode(std::move(value)); return *this;} /** *A message detailing the reason the Worker could not be notified.
*/ inline const Aws::String& GetNotifyWorkersFailureMessage() const{ return m_notifyWorkersFailureMessage; } /** *A message detailing the reason the Worker could not be notified.
*/ inline bool NotifyWorkersFailureMessageHasBeenSet() const { return m_notifyWorkersFailureMessageHasBeenSet; } /** *A message detailing the reason the Worker could not be notified.
*/ inline void SetNotifyWorkersFailureMessage(const Aws::String& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = value; } /** *A message detailing the reason the Worker could not be notified.
*/ inline void SetNotifyWorkersFailureMessage(Aws::String&& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = std::move(value); } /** *A message detailing the reason the Worker could not be notified.
*/ inline void SetNotifyWorkersFailureMessage(const char* value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage.assign(value); } /** *A message detailing the reason the Worker could not be notified.
*/ inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const Aws::String& value) { SetNotifyWorkersFailureMessage(value); return *this;} /** *A message detailing the reason the Worker could not be notified.
*/ inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(Aws::String&& value) { SetNotifyWorkersFailureMessage(std::move(value)); return *this;} /** *A message detailing the reason the Worker could not be notified.
*/ inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const char* value) { SetNotifyWorkersFailureMessage(value); return *this;} /** *The ID of the Worker.
*/ inline const Aws::String& GetWorkerId() const{ return m_workerId; } /** *The ID of the Worker.
*/ inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; } /** *The ID of the Worker.
*/ inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; } /** *The ID of the Worker.
*/ inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); } /** *The ID of the Worker.
*/ inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); } /** *The ID of the Worker.
*/ inline NotifyWorkersFailureStatus& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;} /** *The ID of the Worker.
*/ inline NotifyWorkersFailureStatus& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;} /** *The ID of the Worker.
*/ inline NotifyWorkersFailureStatus& WithWorkerId(const char* value) { SetWorkerId(value); return *this;} private: NotifyWorkersFailureCode m_notifyWorkersFailureCode; bool m_notifyWorkersFailureCodeHasBeenSet = false; Aws::String m_notifyWorkersFailureMessage; bool m_notifyWorkersFailureMessageHasBeenSet = false; Aws::String m_workerId; bool m_workerIdHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws