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

The namespace that you're trying to create already exists.

See * Also:

AWS * API Reference

*/ class NamespaceAlreadyExists { public: AWS_SERVICEDISCOVERY_API NamespaceAlreadyExists(); AWS_SERVICEDISCOVERY_API NamespaceAlreadyExists(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API NamespaceAlreadyExists& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_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 NamespaceAlreadyExists& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline NamespaceAlreadyExists& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline NamespaceAlreadyExists& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The CreatorRequestId that was used to create the namespace.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

The CreatorRequestId that was used to create the namespace.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

The CreatorRequestId that was used to create the namespace.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

The CreatorRequestId that was used to create the namespace.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

The CreatorRequestId that was used to create the namespace.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

The CreatorRequestId that was used to create the namespace.

*/ inline NamespaceAlreadyExists& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

The CreatorRequestId that was used to create the namespace.

*/ inline NamespaceAlreadyExists& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

The CreatorRequestId that was used to create the namespace.

*/ inline NamespaceAlreadyExists& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

The ID of the existing namespace.

*/ inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; } /** *

The ID of the existing namespace.

*/ inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; } /** *

The ID of the existing namespace.

*/ inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; } /** *

The ID of the existing namespace.

*/ inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); } /** *

The ID of the existing namespace.

*/ inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); } /** *

The ID of the existing namespace.

*/ inline NamespaceAlreadyExists& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;} /** *

The ID of the existing namespace.

*/ inline NamespaceAlreadyExists& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;} /** *

The ID of the existing namespace.

*/ inline NamespaceAlreadyExists& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_namespaceId; bool m_namespaceIdHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws