AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetComponentResult.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/ssm-sap/SsmSap_EXPORTS.h>
10#include <aws/ssm-sap/model/Component.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 SsmSap {
24namespace Model {
26 public:
27 AWS_SSMSAP_API GetComponentResult() = default;
30
32
36 inline const Component& GetComponent() const { return m_component; }
37 template <typename ComponentT = Component>
38 void SetComponent(ComponentT&& value) {
39 m_componentHasBeenSet = true;
40 m_component = std::forward<ComponentT>(value);
41 }
42 template <typename ComponentT = Component>
43 GetComponentResult& WithComponent(ComponentT&& value) {
44 SetComponent(std::forward<ComponentT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
54 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
55 void SetTags(TagsT&& value) {
56 m_tagsHasBeenSet = true;
57 m_tags = std::forward<TagsT>(value);
58 }
59 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
60 GetComponentResult& WithTags(TagsT&& value) {
61 SetTags(std::forward<TagsT>(value));
62 return *this;
63 }
64 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
65 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
66 m_tagsHasBeenSet = true;
67 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 GetComponentResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 private:
87 Component m_component;
88
90
91 Aws::String m_requestId;
92 bool m_componentHasBeenSet = false;
93 bool m_tagsHasBeenSet = false;
94 bool m_requestIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SsmSap
99} // 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_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