AWS SDK for C++  1.9.123
AWS SDK for C++
ListComponentsResult.h
Go to the documentation of this file.
1 
6 #pragma once
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 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Component>& GetComponents() const{ return m_components; }
41 
45  inline void SetComponents(const Aws::Vector<Component>& value) { m_components = value; }
46 
50  inline void SetComponents(Aws::Vector<Component>&& value) { m_components = std::move(value); }
51 
55  inline ListComponentsResult& WithComponents(const Aws::Vector<Component>& value) { SetComponents(value); return *this;}
56 
60  inline ListComponentsResult& WithComponents(Aws::Vector<Component>&& value) { SetComponents(std::move(value)); return *this;}
61 
65  inline ListComponentsResult& AddComponents(const Component& value) { m_components.push_back(value); return *this; }
66 
70  inline ListComponentsResult& AddComponents(Component&& value) { m_components.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListComponentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListComponentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListComponentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Component> m_components;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace GreengrassV2
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GreengrassV2::Model::ListComponentsResult::WithComponents
ListComponentsResult & WithComponents(Aws::Vector< Component > &&value)
Definition: ListComponentsResult.h:60
Aws::GreengrassV2::Model::ListComponentsResult::WithNextToken
ListComponentsResult & WithNextToken(const Aws::String &value)
Definition: ListComponentsResult.h:101
Aws::GreengrassV2::Model::ListComponentsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListComponentsResult.h:77
Aws::GreengrassV2::Model::ListComponentsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListComponentsResult.h:89
Aws::GreengrassV2::Model::ListComponentsResult::AddComponents
ListComponentsResult & AddComponents(Component &&value)
Definition: ListComponentsResult.h:70
Aws::GreengrassV2::Model::ListComponentsResult::ListComponentsResult
ListComponentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GreengrassV2::Model::ListComponentsResult::WithComponents
ListComponentsResult & WithComponents(const Aws::Vector< Component > &value)
Definition: ListComponentsResult.h:55
GreengrassV2_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GreengrassV2::Model::ListComponentsResult::AddComponents
ListComponentsResult & AddComponents(const Component &value)
Definition: ListComponentsResult.h:65
Aws::GreengrassV2::Model::ListComponentsResult
Definition: ListComponentsResult.h:30
AWSVector.h
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListComponentsResult::operator=
ListComponentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GreengrassV2::Model::ListComponentsResult::WithNextToken
ListComponentsResult & WithNextToken(Aws::String &&value)
Definition: ListComponentsResult.h:107
Aws::GreengrassV2::Model::ListComponentsResult::ListComponentsResult
ListComponentsResult()
AWSString.h
Aws::GreengrassV2::Model::ListComponentsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListComponentsResult.h:83
Aws::GreengrassV2::Model::ListComponentsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListComponentsResult.h:95
Aws::GreengrassV2::Model::ListComponentsResult::GetComponents
const Aws::Vector< Component > & GetComponents() const
Definition: ListComponentsResult.h:40
Component.h
Aws::GreengrassV2::Model::Component
Definition: Component.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ListComponentsResult::WithNextToken
ListComponentsResult & WithNextToken(const char *value)
Definition: ListComponentsResult.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListComponentsResult::SetComponents
void SetComponents(const Aws::Vector< Component > &value)
Definition: ListComponentsResult.h:45
Aws::GreengrassV2::Model::ListComponentsResult::SetComponents
void SetComponents(Aws::Vector< Component > &&value)
Definition: ListComponentsResult.h:50