/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about an error.See
* Also:
AWS
* API Reference
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 ServiceUnavailableException& WithInvalidParameter(const Aws::String& value) { SetInvalidParameter(value); return *this;} /** *The parameter that caused the error.
*/ inline ServiceUnavailableException& WithInvalidParameter(Aws::String&& value) { SetInvalidParameter(std::move(value)); return *this;} /** *The parameter that caused the error.
*/ inline ServiceUnavailableException& 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 ServiceUnavailableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The description of the error.
*/ inline ServiceUnavailableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The description of the error.
*/ inline ServiceUnavailableException& 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