/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Panorama { namespace Model { /** *

The request contains an invalid parameter value.

See Also:

* AWS * API Reference

*/ class ValidationException { public: AWS_PANORAMA_API ValidationException(); AWS_PANORAMA_API ValidationException(Aws::Utils::Json::JsonView jsonValue); AWS_PANORAMA_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of attributes that led to the exception and their values.

*/ inline const Aws::Vector& GetErrorArguments() const{ return m_errorArguments; } /** *

A list of attributes that led to the exception and their values.

*/ inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; } /** *

A list of attributes that led to the exception and their values.

*/ inline void SetErrorArguments(const Aws::Vector& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = value; } /** *

A list of attributes that led to the exception and their values.

*/ inline void SetErrorArguments(Aws::Vector&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::move(value); } /** *

A list of attributes that led to the exception and their values.

*/ inline ValidationException& WithErrorArguments(const Aws::Vector& value) { SetErrorArguments(value); return *this;} /** *

A list of attributes that led to the exception and their values.

*/ inline ValidationException& WithErrorArguments(Aws::Vector&& value) { SetErrorArguments(std::move(value)); return *this;} /** *

A list of attributes that led to the exception and their values.

*/ inline ValidationException& AddErrorArguments(const ValidationExceptionErrorArgument& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(value); return *this; } /** *

A list of attributes that led to the exception and their values.

*/ inline ValidationException& AddErrorArguments(ValidationExceptionErrorArgument&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(std::move(value)); return *this; } /** *

A unique ID for the error.

*/ inline const Aws::String& GetErrorId() const{ return m_errorId; } /** *

A unique ID for the error.

*/ inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; } /** *

A unique ID for the error.

*/ inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; } /** *

A unique ID for the error.

*/ inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); } /** *

A unique ID for the error.

*/ inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); } /** *

A unique ID for the error.

*/ inline ValidationException& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;} /** *

A unique ID for the error.

*/ inline ValidationException& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;} /** *

A unique ID for the error.

*/ inline ValidationException& WithErrorId(const char* value) { SetErrorId(value); return *this;} /** *

A list of request parameters that failed validation.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

A list of request parameters that failed validation.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

A list of request parameters that failed validation.

*/ inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

A list of request parameters that failed validation.

*/ inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

A list of request parameters that failed validation.

*/ inline ValidationException& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

A list of request parameters that failed validation.

*/ inline ValidationException& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

A list of request parameters that failed validation.

*/ inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

A list of request parameters that failed validation.

*/ inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The reason that validation failed.

*/ inline const ValidationExceptionReason& GetReason() const{ return m_reason; } /** *

The reason that validation failed.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason that validation failed.

*/ inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason that validation failed.

*/ inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason that validation failed.

*/ inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} /** *

The reason that validation failed.

*/ inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::Vector m_errorArguments; bool m_errorArgumentsHasBeenSet = false; Aws::String m_errorId; bool m_errorIdHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; ValidationExceptionReason m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws