AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LimitsPerLabelSet.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/LimitsPerLabelSetEntry.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PrometheusService {
22namespace Model {
23
35 public:
36 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet() = default;
37 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const LimitsPerLabelSetEntry& GetLimits() const { return m_limits; }
47 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
48 template <typename LimitsT = LimitsPerLabelSetEntry>
49 void SetLimits(LimitsT&& value) {
50 m_limitsHasBeenSet = true;
51 m_limits = std::forward<LimitsT>(value);
52 }
53 template <typename LimitsT = LimitsPerLabelSetEntry>
54 LimitsPerLabelSet& WithLimits(LimitsT&& value) {
55 SetLimits(std::forward<LimitsT>(value));
56 return *this;
57 }
59
61
69 inline const Aws::Map<Aws::String, Aws::String>& GetLabelSet() const { return m_labelSet; }
70 inline bool LabelSetHasBeenSet() const { return m_labelSetHasBeenSet; }
71 template <typename LabelSetT = Aws::Map<Aws::String, Aws::String>>
72 void SetLabelSet(LabelSetT&& value) {
73 m_labelSetHasBeenSet = true;
74 m_labelSet = std::forward<LabelSetT>(value);
75 }
76 template <typename LabelSetT = Aws::Map<Aws::String, Aws::String>>
77 LimitsPerLabelSet& WithLabelSet(LabelSetT&& value) {
78 SetLabelSet(std::forward<LabelSetT>(value));
79 return *this;
80 }
81 template <typename LabelSetKeyT = Aws::String, typename LabelSetValueT = Aws::String>
82 LimitsPerLabelSet& AddLabelSet(LabelSetKeyT&& key, LabelSetValueT&& value) {
83 m_labelSetHasBeenSet = true;
84 m_labelSet.emplace(std::forward<LabelSetKeyT>(key), std::forward<LabelSetValueT>(value));
85 return *this;
86 }
88 private:
90
92 bool m_limitsHasBeenSet = false;
93 bool m_labelSetHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace PrometheusService
98} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetLabelSet() const
AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet()=default
LimitsPerLabelSet & AddLabelSet(LabelSetKeyT &&key, LabelSetValueT &&value)
AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitsPerLabelSet & WithLabelSet(LabelSetT &&value)
AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet(Aws::Utils::Json::JsonView jsonValue)
const LimitsPerLabelSetEntry & GetLimits() const
LimitsPerLabelSet & WithLimits(LimitsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue