AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
GetApplicationResult.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/Application.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 GetApplicationResult() = default;
31
33
37 inline const Application& GetApplication() const { return m_application; }
38 template <typename ApplicationT = Application>
39 void SetApplication(ApplicationT&& value) {
40 m_applicationHasBeenSet = true;
41 m_application = std::forward<ApplicationT>(value);
42 }
43 template <typename ApplicationT = Application>
44 GetApplicationResult& WithApplication(ApplicationT&& value) {
45 SetApplication(std::forward<ApplicationT>(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>>
62 SetTags(std::forward<TagsT>(value));
63 return *this;
64 }
65 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
66 GetApplicationResult& 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 GetApplicationResult& 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 Application m_application;
91
93
94 Aws::String m_requestId;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_applicationHasBeenSet = false;
97 bool m_tagsHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SsmSap
103} // namespace Aws
GetApplicationResult & WithApplication(ApplicationT &&value)
AWS_SSMSAP_API GetApplicationResult()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetApplicationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SSMSAP_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithTags(TagsT &&value)
GetApplicationResult & WithRequestId(RequestIdT &&value)
AWS_SSMSAP_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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