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

The value to use in an Amazon CloudWatch custom metric dimension. This is * used in the PublishMetrics CustomAction. A CloudWatch custom * metric dimension is a name/value pair that's part of the identity of a metric. *

Network Firewall sets the dimension name to CustomAction * and you provide the dimension value.

For more information about * CloudWatch custom metric dimensions, see Publishing * Custom Metrics in the Amazon * CloudWatch User Guide.

See Also:

AWS * API Reference

*/ class Dimension { public: AWS_NETWORKFIREWALL_API Dimension(); AWS_NETWORKFIREWALL_API Dimension(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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

The value to use in the custom metric dimension.

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