/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

An error or warning for a desired configuration option value.

See * Also:

AWS * API Reference

*/ class ValidationMessage { public: AWS_ELASTICBEANSTALK_API ValidationMessage(); AWS_ELASTICBEANSTALK_API ValidationMessage(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API ValidationMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

*/ inline ValidationMessage& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline const ValidationSeverity& GetSeverity() const{ return m_severity; } /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline void SetSeverity(const ValidationSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline void SetSeverity(ValidationSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline ValidationMessage& WithSeverity(const ValidationSeverity& value) { SetSeverity(value); return *this;} /** *

An indication of the severity of this message:

  • * error: This message indicates that this is not a valid setting for * an option.

  • warning: This message is providing * information you should take into account.

*/ inline ValidationMessage& WithSeverity(ValidationSeverity&& value) { SetSeverity(std::move(value)); return *this;} /** *

The namespace to which the option belongs.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace to which the option belongs.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace to which the option belongs.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace to which the option belongs.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace to which the option belongs.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace to which the option belongs.

*/ inline ValidationMessage& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace to which the option belongs.

*/ inline ValidationMessage& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace to which the option belongs.

*/ inline ValidationMessage& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the option.

*/ inline const Aws::String& GetOptionName() const{ return m_optionName; } /** *

The name of the option.

*/ inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; } /** *

The name of the option.

*/ inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; } /** *

The name of the option.

*/ inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); } /** *

The name of the option.

*/ inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); } /** *

The name of the option.

*/ inline ValidationMessage& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;} /** *

The name of the option.

*/ inline ValidationMessage& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;} /** *

The name of the option.

*/ inline ValidationMessage& WithOptionName(const char* value) { SetOptionName(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ValidationSeverity m_severity; bool m_severityHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_optionName; bool m_optionNameHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws