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

The resource specified already exists.

See Also:

AWS * API Reference

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

The resource type for this request.

*/ inline const ExceptionResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type for this request.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type for this request.

*/ inline void SetResourceType(const ExceptionResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type for this request.

*/ inline void SetResourceType(ExceptionResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type for this request.

*/ inline ResourceExistsException& WithResourceType(const ExceptionResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type for this request.

*/ inline ResourceExistsException& WithResourceType(ExceptionResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The Amazon Web Services request ID for this request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The Amazon Web Services request ID for this request.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The Amazon Web Services request ID for this request.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The Amazon Web Services request ID for this request.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The Amazon Web Services request ID for this request.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The Amazon Web Services request ID for this request.

*/ inline ResourceExistsException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The Amazon Web Services request ID for this request.

*/ inline ResourceExistsException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The Amazon Web Services request ID for this request.

*/ inline ResourceExistsException& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ExceptionResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws