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

Returns information about an error.

See * Also:

AWS * API Reference

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

The parameter that caused the error.

*/ inline const Aws::String& GetInvalidParameter() const{ return m_invalidParameter; } /** *

The parameter that caused the error.

*/ inline bool InvalidParameterHasBeenSet() const { return m_invalidParameterHasBeenSet; } /** *

The parameter that caused the error.

*/ inline void SetInvalidParameter(const Aws::String& value) { m_invalidParameterHasBeenSet = true; m_invalidParameter = value; } /** *

The parameter that caused the error.

*/ inline void SetInvalidParameter(Aws::String&& value) { m_invalidParameterHasBeenSet = true; m_invalidParameter = std::move(value); } /** *

The parameter that caused the error.

*/ inline void SetInvalidParameter(const char* value) { m_invalidParameterHasBeenSet = true; m_invalidParameter.assign(value); } /** *

The parameter that caused the error.

*/ inline ConflictException& WithInvalidParameter(const Aws::String& value) { SetInvalidParameter(value); return *this;} /** *

The parameter that caused the error.

*/ inline ConflictException& WithInvalidParameter(Aws::String&& value) { SetInvalidParameter(std::move(value)); return *this;} /** *

The parameter that caused the error.

*/ inline ConflictException& WithInvalidParameter(const char* value) { SetInvalidParameter(value); return *this;} /** *

The description of the error.

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

The description of the error.

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

The description of the error.

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

The description of the error.

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

The description of the error.

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

The description of the error.

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

The description of the error.

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

The description of the error.

*/ inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_invalidParameter; bool m_invalidParameterHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws