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

The input provided was not valid.

See Also:

AWS * API Reference

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

A message describing the problem.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message describing the problem.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message describing the problem.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message describing the problem.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message describing the problem.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message describing the problem.

*/ inline InvalidInputException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message describing the problem.

*/ inline InvalidInputException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message describing the problem.

*/ inline InvalidInputException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Indicates whether or not the exception relates to a federated source.

*/ inline bool GetFromFederationSource() const{ return m_fromFederationSource; } /** *

Indicates whether or not the exception relates to a federated source.

*/ inline bool FromFederationSourceHasBeenSet() const { return m_fromFederationSourceHasBeenSet; } /** *

Indicates whether or not the exception relates to a federated source.

*/ inline void SetFromFederationSource(bool value) { m_fromFederationSourceHasBeenSet = true; m_fromFederationSource = value; } /** *

Indicates whether or not the exception relates to a federated source.

*/ inline InvalidInputException& WithFromFederationSource(bool value) { SetFromFederationSource(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; bool m_fromFederationSource; bool m_fromFederationSourceHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws