AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetPropertyValueResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
12#include <aws/iottwinmaker/model/DataValue.h>
13#include <aws/iottwinmaker/model/PropertyLatestValue.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoTTwinMaker {
27namespace Model {
29 public:
30 AWS_IOTTWINMAKER_API GetPropertyValueResult() = default;
33
35
39 inline const Aws::Map<Aws::String, PropertyLatestValue>& GetPropertyValues() const { return m_propertyValues; }
40 template <typename PropertyValuesT = Aws::Map<Aws::String, PropertyLatestValue>>
41 void SetPropertyValues(PropertyValuesT&& value) {
42 m_propertyValuesHasBeenSet = true;
43 m_propertyValues = std::forward<PropertyValuesT>(value);
44 }
45 template <typename PropertyValuesT = Aws::Map<Aws::String, PropertyLatestValue>>
46 GetPropertyValueResult& WithPropertyValues(PropertyValuesT&& value) {
47 SetPropertyValues(std::forward<PropertyValuesT>(value));
48 return *this;
49 }
50 template <typename PropertyValuesKeyT = Aws::String, typename PropertyValuesValueT = PropertyLatestValue>
51 GetPropertyValueResult& AddPropertyValues(PropertyValuesKeyT&& key, PropertyValuesValueT&& value) {
52 m_propertyValuesHasBeenSet = true;
53 m_propertyValues.emplace(std::forward<PropertyValuesKeyT>(key), std::forward<PropertyValuesValueT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
80 return m_tabularPropertyValues;
81 }
82 template <typename TabularPropertyValuesT = Aws::Vector<Aws::Vector<Aws::Map<Aws::String, DataValue>>>>
83 void SetTabularPropertyValues(TabularPropertyValuesT&& value) {
84 m_tabularPropertyValuesHasBeenSet = true;
85 m_tabularPropertyValues = std::forward<TabularPropertyValuesT>(value);
86 }
87 template <typename TabularPropertyValuesT = Aws::Vector<Aws::Vector<Aws::Map<Aws::String, DataValue>>>>
88 GetPropertyValueResult& WithTabularPropertyValues(TabularPropertyValuesT&& value) {
89 SetTabularPropertyValues(std::forward<TabularPropertyValuesT>(value));
90 return *this;
91 }
92 template <typename TabularPropertyValuesT = Aws::Vector<Aws::Map<Aws::String, DataValue>>>
93 GetPropertyValueResult& AddTabularPropertyValues(TabularPropertyValuesT&& value) {
94 m_tabularPropertyValuesHasBeenSet = true;
95 m_tabularPropertyValues.emplace_back(std::forward<TabularPropertyValuesT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
115
116 private:
118
119 Aws::String m_nextToken;
120
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_propertyValuesHasBeenSet = false;
126 bool m_nextTokenHasBeenSet = false;
127 bool m_tabularPropertyValuesHasBeenSet = false;
128 bool m_requestIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace IoTTwinMaker
133} // namespace Aws
GetPropertyValueResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::Vector< Aws::Map< Aws::String, DataValue > > > & GetTabularPropertyValues() const
GetPropertyValueResult & AddPropertyValues(PropertyValuesKeyT &&key, PropertyValuesValueT &&value)
void SetTabularPropertyValues(TabularPropertyValuesT &&value)
AWS_IOTTWINMAKER_API GetPropertyValueResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPropertyValueResult & WithTabularPropertyValues(TabularPropertyValuesT &&value)
GetPropertyValueResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, PropertyLatestValue > & GetPropertyValues() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOTTWINMAKER_API GetPropertyValueResult()=default
AWS_IOTTWINMAKER_API GetPropertyValueResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPropertyValueResult & WithPropertyValues(PropertyValuesT &&value)
GetPropertyValueResult & AddTabularPropertyValues(TabularPropertyValuesT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue