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

The resource already exists, or another operation is in * progress.

See Also:

AWS * API Reference

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

The exception type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The exception type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The exception type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The exception type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The exception type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The exception type.

*/ inline ResourceConflictException& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The exception type.

*/ inline ResourceConflictException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The exception type.

*/ inline ResourceConflictException& WithType(const char* value) { SetType(value); return *this;} /** *

The exception message.

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

The exception message.

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

The exception message.

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

The exception message.

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

The exception message.

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

The exception message.

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

The exception message.

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

The exception message.

*/ inline ResourceConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws