AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetResourceMetadataResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/PI_EXPORTS.h>
10#include <aws/pi/model/FeatureMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace PI {
24namespace Model {
26 public:
27 AWS_PI_API GetResourceMetadataResult() = default;
30
32
38 inline const Aws::String& GetIdentifier() const { return m_identifier; }
39 template <typename IdentifierT = Aws::String>
40 void SetIdentifier(IdentifierT&& value) {
41 m_identifierHasBeenSet = true;
42 m_identifier = std::forward<IdentifierT>(value);
43 }
44 template <typename IdentifierT = Aws::String>
46 SetIdentifier(std::forward<IdentifierT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Map<Aws::String, FeatureMetadata>& GetFeatures() const { return m_features; }
57 template <typename FeaturesT = Aws::Map<Aws::String, FeatureMetadata>>
58 void SetFeatures(FeaturesT&& value) {
59 m_featuresHasBeenSet = true;
60 m_features = std::forward<FeaturesT>(value);
61 }
62 template <typename FeaturesT = Aws::Map<Aws::String, FeatureMetadata>>
64 SetFeatures(std::forward<FeaturesT>(value));
65 return *this;
66 }
67 template <typename FeaturesKeyT = Aws::String, typename FeaturesValueT = FeatureMetadata>
68 GetResourceMetadataResult& AddFeatures(FeaturesKeyT&& key, FeaturesValueT&& value) {
69 m_featuresHasBeenSet = true;
70 m_features.emplace(std::forward<FeaturesKeyT>(key), std::forward<FeaturesValueT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_identifier;
91
93
94 Aws::String m_requestId;
95 bool m_identifierHasBeenSet = false;
96 bool m_featuresHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace PI
102} // namespace Aws
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