AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListComponentsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/ComponentVersion.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 ListComponentsResult() = 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 ListComponentsResult& WithRequestId(RequestIdT&& value) {
43 SetRequestId(std::forward<RequestIdT>(value));
44 return *this;
45 }
47
49
54 inline const Aws::Vector<ComponentVersion>& GetComponentVersionList() const { return m_componentVersionList; }
55 template <typename ComponentVersionListT = Aws::Vector<ComponentVersion>>
56 void SetComponentVersionList(ComponentVersionListT&& value) {
57 m_componentVersionListHasBeenSet = true;
58 m_componentVersionList = std::forward<ComponentVersionListT>(value);
59 }
60 template <typename ComponentVersionListT = Aws::Vector<ComponentVersion>>
61 ListComponentsResult& WithComponentVersionList(ComponentVersionListT&& value) {
62 SetComponentVersionList(std::forward<ComponentVersionListT>(value));
63 return *this;
64 }
65 template <typename ComponentVersionListT = ComponentVersion>
66 ListComponentsResult& AddComponentVersionList(ComponentVersionListT&& value) {
67 m_componentVersionListHasBeenSet = true;
68 m_componentVersionList.emplace_back(std::forward<ComponentVersionListT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
86 ListComponentsResult& WithNextToken(NextTokenT&& value) {
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_requestId;
93
94 Aws::Vector<ComponentVersion> m_componentVersionList;
95
96 Aws::String m_nextToken;
97 bool m_requestIdHasBeenSet = false;
98 bool m_componentVersionListHasBeenSet = false;
99 bool m_nextTokenHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace imagebuilder
104} // 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)
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