AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetResourceMetadataResult.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pi/model/FeatureMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PI
26{
27namespace Model
28{
30 {
31 public:
32 AWS_PI_API GetResourceMetadataResult() = default;
35
36
38
44 inline const Aws::String& GetIdentifier() const { return m_identifier; }
45 template<typename IdentifierT = Aws::String>
46 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
47 template<typename IdentifierT = Aws::String>
48 GetResourceMetadataResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
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) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
59 template<typename FeaturesT = Aws::Map<Aws::String, FeatureMetadata>>
60 GetResourceMetadataResult& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
61 template<typename FeaturesKeyT = Aws::String, typename FeaturesValueT = FeatureMetadata>
62 GetResourceMetadataResult& AddFeatures(FeaturesKeyT&& key, FeaturesValueT&& value) {
63 m_featuresHasBeenSet = true; m_features.emplace(std::forward<FeaturesKeyT>(key), std::forward<FeaturesValueT>(value)); return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template<typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
72 template<typename RequestIdT = Aws::String>
73 GetResourceMetadataResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
75 private:
76
77 Aws::String m_identifier;
78 bool m_identifierHasBeenSet = false;
79
81 bool m_featuresHasBeenSet = false;
82
83 Aws::String m_requestId;
84 bool m_requestIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace PI
89} // 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