/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Object for field Options errors.See Also:
AWS
* API Reference
Error code from creating or updating field option.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *Error code from creating or updating field option.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *Error code from creating or updating field option.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *Error code from creating or updating field option.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *Error code from creating or updating field option.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *Error code from creating or updating field option.
*/ inline FieldOptionError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *Error code from creating or updating field option.
*/ inline FieldOptionError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *Error code from creating or updating field option.
*/ inline FieldOptionError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *Error message from creating or updating field option.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Error message from creating or updating field option.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Error message from creating or updating field option.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Error message from creating or updating field option.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Error message from creating or updating field option.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Error message from creating or updating field option.
*/ inline FieldOptionError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Error message from creating or updating field option.
*/ inline FieldOptionError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Error message from creating or updating field option.
*/ inline FieldOptionError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The field option value that caused the error.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The field option value that caused the error.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The field option value that caused the error.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The field option value that caused the error.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The field option value that caused the error.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The field option value that caused the error.
*/ inline FieldOptionError& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The field option value that caused the error.
*/ inline FieldOptionError& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The field option value that caused the error.
*/ inline FieldOptionError& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws