/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about one dimension.

See Also:

AWS * API Reference

*/ class Dimension { public: AWS_ROUTE53_API Dimension(); AWS_ROUTE53_API Dimension(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API Dimension& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline Dimension& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline Dimension& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the name of one * dimension.

*/ inline Dimension& WithName(const char* value) { SetName(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline Dimension& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline Dimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the value of one * dimension.

*/ inline Dimension& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws