AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishMetricAction.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/Dimension.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_NETWORKFIREWALL_API PublishMetricAction();
38 AWS_NETWORKFIREWALL_API PublishMetricAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API PublishMetricAction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
48 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
49 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
50 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
51 inline PublishMetricAction& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
52 inline PublishMetricAction& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
53 inline PublishMetricAction& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
54 inline PublishMetricAction& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<Dimension> m_dimensions;
59 bool m_dimensionsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace NetworkFirewall
64} // namespace Aws
AWS_NETWORKFIREWALL_API PublishMetricAction(Aws::Utils::Json::JsonView jsonValue)
void SetDimensions(const Aws::Vector< Dimension > &value)
void SetDimensions(Aws::Vector< Dimension > &&value)
PublishMetricAction & WithDimensions(const Aws::Vector< Dimension > &value)
PublishMetricAction & WithDimensions(Aws::Vector< Dimension > &&value)
PublishMetricAction & AddDimensions(Dimension &&value)
AWS_NETWORKFIREWALL_API PublishMetricAction & operator=(Aws::Utils::Json::JsonView jsonValue)
PublishMetricAction & AddDimensions(const Dimension &value)
const Aws::Vector< Dimension > & GetDimensions() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue