AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
52 inline ReservationUtilizationGroup& WithKey(const Aws::String& value) { SetKey(value); return *this;}
53 inline ReservationUtilizationGroup& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
54 inline ReservationUtilizationGroup& WithKey(const char* value) { SetKey(value); return *this;}
56
58
61 inline const Aws::String& GetValue() const{ return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
64 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
65 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
66 inline ReservationUtilizationGroup& WithValue(const Aws::String& value) { SetValue(value); return *this;}
67 inline ReservationUtilizationGroup& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
68 inline ReservationUtilizationGroup& WithValue(const char* value) { SetValue(value); return *this;}
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
76 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
77 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
78 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
81 inline ReservationUtilizationGroup& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
82 inline ReservationUtilizationGroup& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
83 inline ReservationUtilizationGroup& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
84 inline ReservationUtilizationGroup& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
85 inline ReservationUtilizationGroup& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
86 inline ReservationUtilizationGroup& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
87 inline ReservationUtilizationGroup& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
89
91
94 inline const ReservationAggregates& GetUtilization() const{ return m_utilization; }
95 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
96 inline void SetUtilization(const ReservationAggregates& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
97 inline void SetUtilization(ReservationAggregates&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
99 inline ReservationUtilizationGroup& WithUtilization(ReservationAggregates&& value) { SetUtilization(std::move(value)); return *this;}
101 private:
102
103 Aws::String m_key;
104 bool m_keyHasBeenSet = false;
105
106 Aws::String m_value;
107 bool m_valueHasBeenSet = false;
108
110 bool m_attributesHasBeenSet = false;
111
112 ReservationAggregates m_utilization;
113 bool m_utilizationHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CostExplorer
118} // namespace Aws
ReservationUtilizationGroup & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ReservationUtilizationGroup & AddAttributes(const Aws::String &key, const Aws::String &value)
ReservationUtilizationGroup & AddAttributes(const char *key, const char *value)
ReservationUtilizationGroup & WithKey(Aws::String &&value)
ReservationUtilizationGroup & AddAttributes(Aws::String &&key, const char *value)
ReservationUtilizationGroup & WithValue(Aws::String &&value)
ReservationUtilizationGroup & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ReservationUtilizationGroup & AddAttributes(const Aws::String &key, Aws::String &&value)
AWS_COSTEXPLORER_API ReservationUtilizationGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ReservationUtilizationGroup & WithUtilization(const ReservationAggregates &value)
ReservationUtilizationGroup & AddAttributes(Aws::String &&key, const Aws::String &value)
ReservationUtilizationGroup & WithUtilization(ReservationAggregates &&value)
ReservationUtilizationGroup & AddAttributes(Aws::String &&key, Aws::String &&value)
ReservationUtilizationGroup & WithKey(const Aws::String &value)
ReservationUtilizationGroup & WithValue(const Aws::String &value)
ReservationUtilizationGroup & AddAttributes(const char *key, Aws::String &&value)
ReservationUtilizationGroup & WithValue(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COSTEXPLORER_API ReservationUtilizationGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
ReservationUtilizationGroup & WithKey(const char *value)
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