/** * 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 DatabaseMigrationService { namespace Model { /** *

The resource you are attempting to create already exists.

See * Also:

AWS * API Reference

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

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

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

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

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

*/ inline ResourceAlreadyExistsFault& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

*/ inline ResourceAlreadyExistsFault& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

*/ inline ResourceAlreadyExistsFault& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws