AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/model/Component.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.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 SsmSap
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SSMSAP_API GetComponentResult() = default;
35
36
38
42 inline const Component& GetComponent() const { return m_component; }
43 template<typename ComponentT = Component>
44 void SetComponent(ComponentT&& value) { m_componentHasBeenSet = true; m_component = std::forward<ComponentT>(value); }
45 template<typename ComponentT = Component>
46 GetComponentResult& WithComponent(ComponentT&& value) { SetComponent(std::forward<ComponentT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
56 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
57 GetComponentResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
58 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
59 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
60 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template<typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
69 template<typename RequestIdT = Aws::String>
70 GetComponentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
72 private:
73
74 Component m_component;
75 bool m_componentHasBeenSet = false;
76
78 bool m_tagsHasBeenSet = false;
79
80 Aws::String m_requestId;
81 bool m_requestIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace SsmSap
86} // 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