AWS SDK for C++

AWS SDK for C++ Version 1.11.785

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
71 inline const LatestVersionReferences& GetLatestVersionReferences() const { return m_latestVersionReferences; }
72 template <typename LatestVersionReferencesT = LatestVersionReferences>
73 void SetLatestVersionReferences(LatestVersionReferencesT&& value) {
74 m_latestVersionReferencesHasBeenSet = true;
75 m_latestVersionReferences = std::forward<LatestVersionReferencesT>(value);
76 }
77 template <typename LatestVersionReferencesT = LatestVersionReferences>
78 GetComponentResult& WithLatestVersionReferences(LatestVersionReferencesT&& value) {
79 SetLatestVersionReferences(std::forward<LatestVersionReferencesT>(value));
80 return *this;
81 }
83 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
84
85 private:
86 Aws::String m_requestId;
87
88 Component m_component;
89
90 LatestVersionReferences m_latestVersionReferences;
91 Aws::Http::HttpResponseCode m_HttpResponseCode;
92 bool m_requestIdHasBeenSet = false;
93 bool m_componentHasBeenSet = false;
94 bool m_latestVersionReferencesHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace imagebuilder
99} // 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