/** * 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 { /** *

A federated resource already exists.

See Also:

AWS * API Reference

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

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 FederatedResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The message describing the problem.

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

The message describing the problem.

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

The associated Glue resource already exists.

*/ inline const Aws::String& GetAssociatedGlueResource() const{ return m_associatedGlueResource; } /** *

The associated Glue resource already exists.

*/ inline bool AssociatedGlueResourceHasBeenSet() const { return m_associatedGlueResourceHasBeenSet; } /** *

The associated Glue resource already exists.

*/ inline void SetAssociatedGlueResource(const Aws::String& value) { m_associatedGlueResourceHasBeenSet = true; m_associatedGlueResource = value; } /** *

The associated Glue resource already exists.

*/ inline void SetAssociatedGlueResource(Aws::String&& value) { m_associatedGlueResourceHasBeenSet = true; m_associatedGlueResource = std::move(value); } /** *

The associated Glue resource already exists.

*/ inline void SetAssociatedGlueResource(const char* value) { m_associatedGlueResourceHasBeenSet = true; m_associatedGlueResource.assign(value); } /** *

The associated Glue resource already exists.

*/ inline FederatedResourceAlreadyExistsException& WithAssociatedGlueResource(const Aws::String& value) { SetAssociatedGlueResource(value); return *this;} /** *

The associated Glue resource already exists.

*/ inline FederatedResourceAlreadyExistsException& WithAssociatedGlueResource(Aws::String&& value) { SetAssociatedGlueResource(std::move(value)); return *this;} /** *

The associated Glue resource already exists.

*/ inline FederatedResourceAlreadyExistsException& WithAssociatedGlueResource(const char* value) { SetAssociatedGlueResource(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_associatedGlueResource; bool m_associatedGlueResourceHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws