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

A required parameter is missing from the request.

See Also:

* AWS * API Reference

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

The name of the exception.

*/ inline const Aws::String& GetAmznErrorType() const{ return m_amznErrorType; } /** *

The name of the exception.

*/ inline bool AmznErrorTypeHasBeenSet() const { return m_amznErrorTypeHasBeenSet; } /** *

The name of the exception.

*/ inline void SetAmznErrorType(const Aws::String& value) { m_amznErrorTypeHasBeenSet = true; m_amznErrorType = value; } /** *

The name of the exception.

*/ inline void SetAmznErrorType(Aws::String&& value) { m_amznErrorTypeHasBeenSet = true; m_amznErrorType = std::move(value); } /** *

The name of the exception.

*/ inline void SetAmznErrorType(const char* value) { m_amznErrorTypeHasBeenSet = true; m_amznErrorType.assign(value); } /** *

The name of the exception.

*/ inline MissingRequiredParameterException& WithAmznErrorType(const Aws::String& value) { SetAmznErrorType(value); return *this;} /** *

The name of the exception.

*/ inline MissingRequiredParameterException& WithAmznErrorType(Aws::String&& value) { SetAmznErrorType(std::move(value)); return *this;} /** *

The name of the exception.

*/ inline MissingRequiredParameterException& WithAmznErrorType(const char* value) { SetAmznErrorType(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_amznErrorType; bool m_amznErrorTypeHasBeenSet = false; }; } // namespace Model } // namespace OAM } // namespace Aws