AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/Component.h>
11#include <aws/imagebuilder/model/LatestVersionReferences.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 imagebuilder {
25namespace Model {
27 public:
28 AWS_IMAGEBUILDER_API GetComponentResult() = default;
31
33
36 inline const Aws::String& GetRequestId() const { return m_requestId; }
37 template <typename RequestIdT = Aws::String>
38 void SetRequestId(RequestIdT&& value) {
39 m_requestIdHasBeenSet = true;
40 m_requestId = std::forward<RequestIdT>(value);
41 }
42 template <typename RequestIdT = Aws::String>
43 GetComponentResult& WithRequestId(RequestIdT&& value) {
44 SetRequestId(std::forward<RequestIdT>(value));
45 return *this;
46 }
48
50
53 inline const Component& GetComponent() const { return m_component; }
54 template <typename ComponentT = Component>
55 void SetComponent(ComponentT&& value) {
56 m_componentHasBeenSet = true;
57 m_component = std::forward<ComponentT>(value);
58 }
59 template <typename ComponentT = Component>
60 GetComponentResult& WithComponent(ComponentT&& value) {
61 SetComponent(std::forward<ComponentT>(value));
62 return *this;
63 }
65
67
72 inline const LatestVersionReferences& GetLatestVersionReferences() const { return m_latestVersionReferences; }
73 template <typename LatestVersionReferencesT = LatestVersionReferences>
74 void SetLatestVersionReferences(LatestVersionReferencesT&& value) {
75 m_latestVersionReferencesHasBeenSet = true;
76 m_latestVersionReferences = std::forward<LatestVersionReferencesT>(value);
77 }
78 template <typename LatestVersionReferencesT = LatestVersionReferences>
79 GetComponentResult& WithLatestVersionReferences(LatestVersionReferencesT&& value) {
80 SetLatestVersionReferences(std::forward<LatestVersionReferencesT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 Aws::String m_requestId;
88
89 Component m_component;
90
91 LatestVersionReferences m_latestVersionReferences;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_requestIdHasBeenSet = false;
94 bool m_componentHasBeenSet = false;
95 bool m_latestVersionReferencesHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace imagebuilder
100} // namespace Aws
AWS_IMAGEBUILDER_API GetComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetComponentResult & WithComponent(ComponentT &&value)
AWS_IMAGEBUILDER_API GetComponentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLatestVersionReferences(LatestVersionReferencesT &&value)
GetComponentResult & WithRequestId(RequestIdT &&value)
const LatestVersionReferences & GetLatestVersionReferences() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IMAGEBUILDER_API GetComponentResult()=default
GetComponentResult & WithLatestVersionReferences(LatestVersionReferencesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue