AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DimensionValuesWithAttributes.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostExplorer {
21namespace Model {
22
31 public:
32 AWS_COSTEXPLORER_API DimensionValuesWithAttributes() = default;
35 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::String>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::String>
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
60 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
61 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
62 void SetAttributes(AttributesT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes = std::forward<AttributesT>(value);
65 }
66 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
68 SetAttributes(std::forward<AttributesT>(value));
69 return *this;
70 }
71 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
72 DimensionValuesWithAttributes& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
73 m_attributesHasBeenSet = true;
74 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_value;
80
82 bool m_valueHasBeenSet = false;
83 bool m_attributesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CostExplorer
88} // namespace Aws
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
DimensionValuesWithAttributes & WithValue(ValueT &&value)
DimensionValuesWithAttributes & WithAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_COSTEXPLORER_API DimensionValuesWithAttributes()=default
AWS_COSTEXPLORER_API DimensionValuesWithAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API DimensionValuesWithAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
DimensionValuesWithAttributes & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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