AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
ListComponentsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/ComponentVersion.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 ListComponentsResult() = 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 ListComponentsResult& WithRequestId(RequestIdT&& value) {
44 SetRequestId(std::forward<RequestIdT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::Vector<ComponentVersion>& GetComponentVersionList() const { return m_componentVersionList; }
56 template <typename ComponentVersionListT = Aws::Vector<ComponentVersion>>
57 void SetComponentVersionList(ComponentVersionListT&& value) {
58 m_componentVersionListHasBeenSet = true;
59 m_componentVersionList = std::forward<ComponentVersionListT>(value);
60 }
61 template <typename ComponentVersionListT = Aws::Vector<ComponentVersion>>
62 ListComponentsResult& WithComponentVersionList(ComponentVersionListT&& value) {
63 SetComponentVersionList(std::forward<ComponentVersionListT>(value));
64 return *this;
65 }
66 template <typename ComponentVersionListT = ComponentVersion>
67 ListComponentsResult& AddComponentVersionList(ComponentVersionListT&& value) {
68 m_componentVersionListHasBeenSet = true;
69 m_componentVersionList.emplace_back(std::forward<ComponentVersionListT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
87 ListComponentsResult& WithNextToken(NextTokenT&& value) {
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
93
94 private:
95 Aws::String m_requestId;
96
97 Aws::Vector<ComponentVersion> m_componentVersionList;
98
99 Aws::String m_nextToken;
100 Aws::Http::HttpResponseCode m_HttpResponseCode;
101 bool m_requestIdHasBeenSet = false;
102 bool m_componentVersionListHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace imagebuilder
108} // namespace Aws
AWS_IMAGEBUILDER_API ListComponentsResult()=default
ListComponentsResult & WithNextToken(NextTokenT &&value)
AWS_IMAGEBUILDER_API ListComponentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListComponentsResult & WithRequestId(RequestIdT &&value)
AWS_IMAGEBUILDER_API ListComponentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListComponentsResult & WithComponentVersionList(ComponentVersionListT &&value)
ListComponentsResult & AddComponentVersionList(ComponentVersionListT &&value)
void SetComponentVersionList(ComponentVersionListT &&value)
const Aws::Vector< ComponentVersion > & GetComponentVersionList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue