AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReservationUtilizationGroup.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/ReservationAggregates.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 CostExplorer {
22namespace Model {
23
31 public:
32 AWS_COSTEXPLORER_API ReservationUtilizationGroup() = default;
35 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
78 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
79 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
80 void SetAttributes(AttributesT&& value) {
81 m_attributesHasBeenSet = true;
82 m_attributes = std::forward<AttributesT>(value);
83 }
84 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
86 SetAttributes(std::forward<AttributesT>(value));
87 return *this;
88 }
89 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
90 ReservationUtilizationGroup& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
91 m_attributesHasBeenSet = true;
92 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
93 return *this;
94 }
96
98
101 inline const ReservationAggregates& GetUtilization() const { return m_utilization; }
102 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
103 template <typename UtilizationT = ReservationAggregates>
104 void SetUtilization(UtilizationT&& value) {
105 m_utilizationHasBeenSet = true;
106 m_utilization = std::forward<UtilizationT>(value);
107 }
108 template <typename UtilizationT = ReservationAggregates>
110 SetUtilization(std::forward<UtilizationT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_key;
116
117 Aws::String m_value;
118
120
121 ReservationAggregates m_utilization;
122 bool m_keyHasBeenSet = false;
123 bool m_valueHasBeenSet = false;
124 bool m_attributesHasBeenSet = false;
125 bool m_utilizationHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace CostExplorer
130} // namespace Aws
ReservationUtilizationGroup & WithValue(ValueT &&value)
AWS_COSTEXPLORER_API ReservationUtilizationGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservationUtilizationGroup & WithAttributes(AttributesT &&value)
ReservationUtilizationGroup & WithUtilization(UtilizationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ReservationUtilizationGroup & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_COSTEXPLORER_API ReservationUtilizationGroup()=default
AWS_COSTEXPLORER_API ReservationUtilizationGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue