AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ReservationUtilizationGroup.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ce/model/ReservationAggregates.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 CostExplorer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COSTEXPLORER_API ReservationUtilizationGroup() = default;
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 ReservationUtilizationGroup& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
63 template<typename ValueT = Aws::String>
64 ReservationUtilizationGroup& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
72 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
73 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
74 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
75 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
76 ReservationUtilizationGroup& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
77 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
78 ReservationUtilizationGroup& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
79 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
80 }
82
84
87 inline const ReservationAggregates& GetUtilization() const { return m_utilization; }
88 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
89 template<typename UtilizationT = ReservationAggregates>
90 void SetUtilization(UtilizationT&& value) { m_utilizationHasBeenSet = true; m_utilization = std::forward<UtilizationT>(value); }
91 template<typename UtilizationT = ReservationAggregates>
92 ReservationUtilizationGroup& WithUtilization(UtilizationT&& value) { SetUtilization(std::forward<UtilizationT>(value)); return *this;}
94 private:
95
96 Aws::String m_key;
97 bool m_keyHasBeenSet = false;
98
99 Aws::String m_value;
100 bool m_valueHasBeenSet = false;
101
103 bool m_attributesHasBeenSet = false;
104
105 ReservationAggregates m_utilization;
106 bool m_utilizationHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CostExplorer
111} // 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