AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LimitsPerLabelSet.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/amp/model/LimitsPerLabelSetEntry.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet() = default;
42 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PROMETHEUSSERVICE_API LimitsPerLabelSet& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
56 inline const Aws::Map<Aws::String, Aws::String>& GetLabelSet() const { return m_labelSet; }
57 inline bool LabelSetHasBeenSet() const { return m_labelSetHasBeenSet; }
58 template<typename LabelSetT = Aws::Map<Aws::String, Aws::String>>
59 void SetLabelSet(LabelSetT&& value) { m_labelSetHasBeenSet = true; m_labelSet = std::forward<LabelSetT>(value); }
60 template<typename LabelSetT = Aws::Map<Aws::String, Aws::String>>
61 LimitsPerLabelSet& WithLabelSet(LabelSetT&& value) { SetLabelSet(std::forward<LabelSetT>(value)); return *this;}
62 template<typename LabelSetKeyT = Aws::String, typename LabelSetValueT = Aws::String>
63 LimitsPerLabelSet& AddLabelSet(LabelSetKeyT&& key, LabelSetValueT&& value) {
64 m_labelSetHasBeenSet = true; m_labelSet.emplace(std::forward<LabelSetKeyT>(key), std::forward<LabelSetValueT>(value)); return *this;
65 }
67
69
73 inline const LimitsPerLabelSetEntry& GetLimits() const { return m_limits; }
74 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
75 template<typename LimitsT = LimitsPerLabelSetEntry>
76 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet = true; m_limits = std::forward<LimitsT>(value); }
77 template<typename LimitsT = LimitsPerLabelSetEntry>
78 LimitsPerLabelSet& WithLimits(LimitsT&& value) { SetLimits(std::forward<LimitsT>(value)); return *this;}
80 private:
81
83 bool m_labelSetHasBeenSet = false;
84
86 bool m_limitsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace PrometheusService
91} // 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