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

One or more parameters in this request are not valid.

See * Also:

AWS * API Reference

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

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline const Aws::String& GetFieldName() const{ return m_fieldName; } /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline InvalidParameterException& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline InvalidParameterException& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} /** *

For an InvalidParameterException error, the name of the * parameter that's invalid.

*/ inline InvalidParameterException& WithFieldName(const char* value) { SetFieldName(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_fieldName; bool m_fieldNameHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws