AWS SDK for C++

AWS SDK for C++ Version 1.11.684

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/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/Component.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 GreengrassV2 {
24namespace Model {
26 public:
27 AWS_GREENGRASSV2_API ListComponentsResult() = default;
30
32
35 inline const Aws::Vector<Component>& GetComponents() const { return m_components; }
36 template <typename ComponentsT = Aws::Vector<Component>>
37 void SetComponents(ComponentsT&& value) {
38 m_componentsHasBeenSet = true;
39 m_components = std::forward<ComponentsT>(value);
40 }
41 template <typename ComponentsT = Aws::Vector<Component>>
42 ListComponentsResult& WithComponents(ComponentsT&& value) {
43 SetComponents(std::forward<ComponentsT>(value));
44 return *this;
45 }
46 template <typename ComponentsT = Component>
47 ListComponentsResult& AddComponents(ComponentsT&& value) {
48 m_componentsHasBeenSet = true;
49 m_components.emplace_back(std::forward<ComponentsT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListComponentsResult& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 ListComponentsResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Component> m_components;
88 bool m_componentsHasBeenSet = false;
89
90 Aws::String m_nextToken;
91 bool m_nextTokenHasBeenSet = false;
92
93 Aws::String m_requestId;
94 bool m_requestIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GreengrassV2
99} // namespace Aws
ListComponentsResult & WithComponents(ComponentsT &&value)
const Aws::Vector< Component > & GetComponents() const
AWS_GREENGRASSV2_API ListComponentsResult()=default
AWS_GREENGRASSV2_API ListComponentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListComponentsResult & AddComponents(ComponentsT &&value)
ListComponentsResult & WithNextToken(NextTokenT &&value)
ListComponentsResult & WithRequestId(RequestIdT &&value)
AWS_GREENGRASSV2_API ListComponentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue