AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
GetComponentResult.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/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/Component.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 SsmSap {
25namespace Model {
27 public:
28 AWS_SSMSAP_API GetComponentResult() = default;
31
33
37 inline const Component& GetComponent() const { return m_component; }
38 template <typename ComponentT = Component>
39 void SetComponent(ComponentT&& value) {
40 m_componentHasBeenSet = true;
41 m_component = std::forward<ComponentT>(value);
42 }
43 template <typename ComponentT = Component>
44 GetComponentResult& WithComponent(ComponentT&& value) {
45 SetComponent(std::forward<ComponentT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
55 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
56 void SetTags(TagsT&& value) {
57 m_tagsHasBeenSet = true;
58 m_tags = std::forward<TagsT>(value);
59 }
60 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
61 GetComponentResult& WithTags(TagsT&& value) {
62 SetTags(std::forward<TagsT>(value));
63 return *this;
64 }
65 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
66 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
67 m_tagsHasBeenSet = true;
68 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
82 GetComponentResult& WithRequestId(RequestIdT&& value) {
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
88
89 private:
90 Component m_component;
91
93
94 Aws::String m_requestId;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_componentHasBeenSet = false;
97 bool m_tagsHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SsmSap
103} // namespace Aws
GetComponentResult & WithRequestId(RequestIdT &&value)
AWS_SSMSAP_API GetComponentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SSMSAP_API GetComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetComponentResult & WithComponent(ComponentT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetComponentResult & WithTags(TagsT &&value)
GetComponentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SSMSAP_API GetComponentResult()=default
const Aws::String & GetRequestId() const
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