AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/Component.h>
10#include <aws/imagebuilder/model/LatestVersionReferences.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 imagebuilder {
24namespace Model {
26 public:
27 AWS_IMAGEBUILDER_API GetComponentResult() = default;
30
32
35 inline const Aws::String& GetRequestId() const { return m_requestId; }
36 template <typename RequestIdT = Aws::String>
37 void SetRequestId(RequestIdT&& value) {
38 m_requestIdHasBeenSet = true;
39 m_requestId = std::forward<RequestIdT>(value);
40 }
41 template <typename RequestIdT = Aws::String>
42 GetComponentResult& WithRequestId(RequestIdT&& value) {
43 SetRequestId(std::forward<RequestIdT>(value));
44 return *this;
45 }
47
49
52 inline const Component& GetComponent() const { return m_component; }
53 template <typename ComponentT = Component>
54 void SetComponent(ComponentT&& value) {
55 m_componentHasBeenSet = true;
56 m_component = std::forward<ComponentT>(value);
57 }
58 template <typename ComponentT = Component>
59 GetComponentResult& WithComponent(ComponentT&& value) {
60 SetComponent(std::forward<ComponentT>(value));
61 return *this;
62 }
64
66
70 inline const LatestVersionReferences& GetLatestVersionReferences() const { return m_latestVersionReferences; }
71 template <typename LatestVersionReferencesT = LatestVersionReferences>
72 void SetLatestVersionReferences(LatestVersionReferencesT&& value) {
73 m_latestVersionReferencesHasBeenSet = true;
74 m_latestVersionReferences = std::forward<LatestVersionReferencesT>(value);
75 }
76 template <typename LatestVersionReferencesT = LatestVersionReferences>
77 GetComponentResult& WithLatestVersionReferences(LatestVersionReferencesT&& value) {
78 SetLatestVersionReferences(std::forward<LatestVersionReferencesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_requestId;
84
85 Component m_component;
86
87 LatestVersionReferences m_latestVersionReferences;
88 bool m_requestIdHasBeenSet = false;
89 bool m_componentHasBeenSet = false;
90 bool m_latestVersionReferencesHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace imagebuilder
95} // 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_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