AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListInstalledComponentsResult.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrassv2/model/InstalledComponent.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GreengrassV2
26{
27namespace Model
28{
30 {
31 public:
32 AWS_GREENGRASSV2_API ListInstalledComponentsResult() = default;
35
36
38
48 inline const Aws::Vector<InstalledComponent>& GetInstalledComponents() const { return m_installedComponents; }
49 template<typename InstalledComponentsT = Aws::Vector<InstalledComponent>>
50 void SetInstalledComponents(InstalledComponentsT&& value) { m_installedComponentsHasBeenSet = true; m_installedComponents = std::forward<InstalledComponentsT>(value); }
51 template<typename InstalledComponentsT = Aws::Vector<InstalledComponent>>
52 ListInstalledComponentsResult& WithInstalledComponents(InstalledComponentsT&& value) { SetInstalledComponents(std::forward<InstalledComponentsT>(value)); return *this;}
53 template<typename InstalledComponentsT = InstalledComponent>
54 ListInstalledComponentsResult& AddInstalledComponents(InstalledComponentsT&& value) { m_installedComponentsHasBeenSet = true; m_installedComponents.emplace_back(std::forward<InstalledComponentsT>(value)); return *this; }
56
58
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 ListInstalledComponentsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template<typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
74 template<typename RequestIdT = Aws::String>
75 ListInstalledComponentsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
77 private:
78
79 Aws::Vector<InstalledComponent> m_installedComponents;
80 bool m_installedComponentsHasBeenSet = false;
81
82 Aws::String m_nextToken;
83 bool m_nextTokenHasBeenSet = false;
84
85 Aws::String m_requestId;
86 bool m_requestIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace GreengrassV2
91} // namespace Aws
ListInstalledComponentsResult & WithInstalledComponents(InstalledComponentsT &&value)
AWS_GREENGRASSV2_API ListInstalledComponentsResult()=default
ListInstalledComponentsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< InstalledComponent > & GetInstalledComponents() const
ListInstalledComponentsResult & AddInstalledComponents(InstalledComponentsT &&value)
ListInstalledComponentsResult & WithNextToken(NextTokenT &&value)
AWS_GREENGRASSV2_API ListInstalledComponentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GREENGRASSV2_API ListInstalledComponentsResult & operator=(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