1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace GreengrassV2
26 {
27 namespace Model
28 {
29   class AWS_GREENGRASSV2_API ListInstalledComponentsResult
30   {
31   public:
32     ListInstalledComponentsResult();
33     ListInstalledComponentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListInstalledComponentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>A list that summarizes each component on the core device.</p>
39      */
GetInstalledComponents()40     inline const Aws::Vector<InstalledComponent>& GetInstalledComponents() const{ return m_installedComponents; }
41 
42     /**
43      * <p>A list that summarizes each component on the core device.</p>
44      */
SetInstalledComponents(const Aws::Vector<InstalledComponent> & value)45     inline void SetInstalledComponents(const Aws::Vector<InstalledComponent>& value) { m_installedComponents = value; }
46 
47     /**
48      * <p>A list that summarizes each component on the core device.</p>
49      */
SetInstalledComponents(Aws::Vector<InstalledComponent> && value)50     inline void SetInstalledComponents(Aws::Vector<InstalledComponent>&& value) { m_installedComponents = std::move(value); }
51 
52     /**
53      * <p>A list that summarizes each component on the core device.</p>
54      */
WithInstalledComponents(const Aws::Vector<InstalledComponent> & value)55     inline ListInstalledComponentsResult& WithInstalledComponents(const Aws::Vector<InstalledComponent>& value) { SetInstalledComponents(value); return *this;}
56 
57     /**
58      * <p>A list that summarizes each component on the core device.</p>
59      */
WithInstalledComponents(Aws::Vector<InstalledComponent> && value)60     inline ListInstalledComponentsResult& WithInstalledComponents(Aws::Vector<InstalledComponent>&& value) { SetInstalledComponents(std::move(value)); return *this;}
61 
62     /**
63      * <p>A list that summarizes each component on the core device.</p>
64      */
AddInstalledComponents(const InstalledComponent & value)65     inline ListInstalledComponentsResult& AddInstalledComponents(const InstalledComponent& value) { m_installedComponents.push_back(value); return *this; }
66 
67     /**
68      * <p>A list that summarizes each component on the core device.</p>
69      */
AddInstalledComponents(InstalledComponent && value)70     inline ListInstalledComponentsResult& AddInstalledComponents(InstalledComponent&& value) { m_installedComponents.push_back(std::move(value)); return *this; }
71 
72 
73     /**
74      * <p>The token for the next set of results, or null if there are no additional
75      * results.</p>
76      */
GetNextToken()77     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
79     /**
80      * <p>The token for the next set of results, or null if there are no additional
81      * results.</p>
82      */
SetNextToken(const Aws::String & value)83     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
85     /**
86      * <p>The token for the next set of results, or null if there are no additional
87      * results.</p>
88      */
SetNextToken(Aws::String && value)89     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
91     /**
92      * <p>The token for the next set of results, or null if there are no additional
93      * results.</p>
94      */
SetNextToken(const char * value)95     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
97     /**
98      * <p>The token for the next set of results, or null if there are no additional
99      * results.</p>
100      */
WithNextToken(const Aws::String & value)101     inline ListInstalledComponentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
103     /**
104      * <p>The token for the next set of results, or null if there are no additional
105      * results.</p>
106      */
WithNextToken(Aws::String && value)107     inline ListInstalledComponentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
109     /**
110      * <p>The token for the next set of results, or null if there are no additional
111      * results.</p>
112      */
WithNextToken(const char * value)113     inline ListInstalledComponentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115   private:
116 
117     Aws::Vector<InstalledComponent> m_installedComponents;
118 
119     Aws::String m_nextToken;
120   };
121 
122 } // namespace Model
123 } // namespace GreengrassV2
124 } // namespace Aws
125