AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Group.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/MetricValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
34 class Group
35 {
36 public:
37 AWS_COSTEXPLORER_API Group();
38 AWS_COSTEXPLORER_API Group(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTEXPLORER_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
48 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
49 inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
50 inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
51 inline Group& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
52 inline Group& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
53 inline Group& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
54 inline Group& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
55 inline Group& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
57
59
62 inline const Aws::Map<Aws::String, MetricValue>& GetMetrics() const{ return m_metrics; }
63 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
64 inline void SetMetrics(const Aws::Map<Aws::String, MetricValue>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
65 inline void SetMetrics(Aws::Map<Aws::String, MetricValue>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
66 inline Group& WithMetrics(const Aws::Map<Aws::String, MetricValue>& value) { SetMetrics(value); return *this;}
67 inline Group& WithMetrics(Aws::Map<Aws::String, MetricValue>&& value) { SetMetrics(std::move(value)); return *this;}
68 inline Group& AddMetrics(const Aws::String& key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
69 inline Group& AddMetrics(Aws::String&& key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
70 inline Group& AddMetrics(const Aws::String& key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
71 inline Group& AddMetrics(Aws::String&& key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), std::move(value)); return *this; }
72 inline Group& AddMetrics(const char* key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; }
73 inline Group& AddMetrics(const char* key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
75 private:
76
78 bool m_keysHasBeenSet = false;
79
81 bool m_metricsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CostExplorer
86} // namespace Aws
Group & AddMetrics(Aws::String &&key, const MetricValue &value)
Definition Group.h:69
Group & AddMetrics(const Aws::String &key, MetricValue &&value)
Definition Group.h:70
void SetKeys(const Aws::Vector< Aws::String > &value)
Definition Group.h:49
Group & WithMetrics(Aws::Map< Aws::String, MetricValue > &&value)
Definition Group.h:67
Group & AddMetrics(Aws::String &&key, MetricValue &&value)
Definition Group.h:71
Group & AddMetrics(const char *key, MetricValue &&value)
Definition Group.h:72
void SetMetrics(Aws::Map< Aws::String, MetricValue > &&value)
Definition Group.h:65
Group & AddKeys(Aws::String &&value)
Definition Group.h:54
AWS_COSTEXPLORER_API Group()
Group & AddMetrics(const char *key, const MetricValue &value)
Definition Group.h:73
bool MetricsHasBeenSet() const
Definition Group.h:63
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetrics(const Aws::Map< Aws::String, MetricValue > &value)
Definition Group.h:64
AWS_COSTEXPLORER_API Group(Aws::Utils::Json::JsonView jsonValue)
Group & WithMetrics(const Aws::Map< Aws::String, MetricValue > &value)
Definition Group.h:66
void SetKeys(Aws::Vector< Aws::String > &&value)
Definition Group.h:50
const Aws::Map< Aws::String, MetricValue > & GetMetrics() const
Definition Group.h:62
Group & AddKeys(const Aws::String &value)
Definition Group.h:53
AWS_COSTEXPLORER_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetKeys() const
Definition Group.h:47
bool KeysHasBeenSet() const
Definition Group.h:48
Group & WithKeys(Aws::Vector< Aws::String > &&value)
Definition Group.h:52
Group & AddMetrics(const Aws::String &key, const MetricValue &value)
Definition Group.h:68
Group & WithKeys(const Aws::Vector< Aws::String > &value)
Definition Group.h:51
Group & AddKeys(const char *value)
Definition Group.h:55
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue