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

A federation source failed.

See Also:

AWS * API Reference

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

The error code of the problem.

*/ inline const FederationSourceErrorCode& GetFederationSourceErrorCode() const{ return m_federationSourceErrorCode; } /** *

The error code of the problem.

*/ inline bool FederationSourceErrorCodeHasBeenSet() const { return m_federationSourceErrorCodeHasBeenSet; } /** *

The error code of the problem.

*/ inline void SetFederationSourceErrorCode(const FederationSourceErrorCode& value) { m_federationSourceErrorCodeHasBeenSet = true; m_federationSourceErrorCode = value; } /** *

The error code of the problem.

*/ inline void SetFederationSourceErrorCode(FederationSourceErrorCode&& value) { m_federationSourceErrorCodeHasBeenSet = true; m_federationSourceErrorCode = std::move(value); } /** *

The error code of the problem.

*/ inline FederationSourceException& WithFederationSourceErrorCode(const FederationSourceErrorCode& value) { SetFederationSourceErrorCode(value); return *this;} /** *

The error code of the problem.

*/ inline FederationSourceException& WithFederationSourceErrorCode(FederationSourceErrorCode&& value) { SetFederationSourceErrorCode(std::move(value)); return *this;} /** *

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

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

The message describing the problem.

*/ inline FederationSourceException& WithMessage(const char* value) { SetMessage(value); return *this;} private: FederationSourceErrorCode m_federationSourceErrorCode; bool m_federationSourceErrorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws