AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetResourceMetadataResult.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/pi/PI_EXPORTS.h>
11#include <aws/pi/model/FeatureMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace PI {
25namespace Model {
27 public:
28 AWS_PI_API GetResourceMetadataResult() = default;
31
33
39 inline const Aws::String& GetIdentifier() const { return m_identifier; }
40 template <typename IdentifierT = Aws::String>
41 void SetIdentifier(IdentifierT&& value) {
42 m_identifierHasBeenSet = true;
43 m_identifier = std::forward<IdentifierT>(value);
44 }
45 template <typename IdentifierT = Aws::String>
47 SetIdentifier(std::forward<IdentifierT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::Map<Aws::String, FeatureMetadata>& GetFeatures() const { return m_features; }
58 template <typename FeaturesT = Aws::Map<Aws::String, FeatureMetadata>>
59 void SetFeatures(FeaturesT&& value) {
60 m_featuresHasBeenSet = true;
61 m_features = std::forward<FeaturesT>(value);
62 }
63 template <typename FeaturesT = Aws::Map<Aws::String, FeatureMetadata>>
65 SetFeatures(std::forward<FeaturesT>(value));
66 return *this;
67 }
68 template <typename FeaturesKeyT = Aws::String, typename FeaturesValueT = FeatureMetadata>
69 GetResourceMetadataResult& AddFeatures(FeaturesKeyT&& key, FeaturesValueT&& value) {
70 m_featuresHasBeenSet = true;
71 m_features.emplace(std::forward<FeaturesKeyT>(key), std::forward<FeaturesValueT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
91
92 private:
93 Aws::String m_identifier;
94
96
97 Aws::String m_requestId;
98 Aws::Http::HttpResponseCode m_HttpResponseCode;
99 bool m_identifierHasBeenSet = false;
100 bool m_featuresHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace PI
106} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_PI_API GetResourceMetadataResult()=default
AWS_PI_API GetResourceMetadataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PI_API GetResourceMetadataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetadataResult & AddFeatures(FeaturesKeyT &&key, FeaturesValueT &&value)
GetResourceMetadataResult & WithIdentifier(IdentifierT &&value)
GetResourceMetadataResult & WithFeatures(FeaturesT &&value)
const Aws::Map< Aws::String, FeatureMetadata > & GetFeatures() const
GetResourceMetadataResult & WithRequestId(RequestIdT &&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