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

Stateless inspection criteria that publishes the specified metrics to Amazon * CloudWatch for the matching packet. This setting defines a CloudWatch dimension * value to be published.

See Also:

AWS * API Reference

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

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

*/ inline PublishMetricAction& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

*/ inline PublishMetricAction& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

*/ inline PublishMetricAction& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

*/ inline PublishMetricAction& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } private: Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws