AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DimensionValuesWithAttributes.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_COSTEXPLORER_API DimensionValuesWithAttributes();
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetValue() const{ return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
50 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
51 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
52 inline DimensionValuesWithAttributes& WithValue(const Aws::String& value) { SetValue(value); return *this;}
53 inline DimensionValuesWithAttributes& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
54 inline DimensionValuesWithAttributes& WithValue(const char* value) { SetValue(value); return *this;}
56
58
61 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
62 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
63 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
64 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
67 inline DimensionValuesWithAttributes& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
68 inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
69 inline DimensionValuesWithAttributes& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
70 inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
71 inline DimensionValuesWithAttributes& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
72 inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
73 inline DimensionValuesWithAttributes& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
75 private:
76
77 Aws::String m_value;
78 bool m_valueHasBeenSet = false;
79
81 bool m_attributesHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CostExplorer
86} // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
DimensionValuesWithAttributes & AddAttributes(Aws::String &&key, Aws::String &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
DimensionValuesWithAttributes & WithValue(const Aws::String &value)
DimensionValuesWithAttributes & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
DimensionValuesWithAttributes & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
DimensionValuesWithAttributes & AddAttributes(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
DimensionValuesWithAttributes & WithValue(const char *value)
DimensionValuesWithAttributes & AddAttributes(const char *key, const char *value)
DimensionValuesWithAttributes & AddAttributes(Aws::String &&key, const Aws::String &value)
DimensionValuesWithAttributes & AddAttributes(const char *key, Aws::String &&value)
DimensionValuesWithAttributes & WithValue(Aws::String &&value)
AWS_COSTEXPLORER_API DimensionValuesWithAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API DimensionValuesWithAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
DimensionValuesWithAttributes & AddAttributes(Aws::String &&key, const char *value)
DimensionValuesWithAttributes & AddAttributes(const Aws::String &key, Aws::String &&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