AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ValueT = Aws::String>
50 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
51 template<typename ValueT = Aws::String>
52 DimensionValuesWithAttributes& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
63 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
64 DimensionValuesWithAttributes& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
65 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
66 DimensionValuesWithAttributes& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
67 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74
76 bool m_attributesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CostExplorer
81} // 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