AWS SDK for C++  1.9.123
AWS SDK for C++
ListComponentVersionsResult.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<ComponentVersionListItem>& GetComponentVersions() const{ return m_componentVersions; }
41 
45  inline void SetComponentVersions(const Aws::Vector<ComponentVersionListItem>& value) { m_componentVersions = value; }
46 
50  inline void SetComponentVersions(Aws::Vector<ComponentVersionListItem>&& value) { m_componentVersions = std::move(value); }
51 
55  inline ListComponentVersionsResult& WithComponentVersions(const Aws::Vector<ComponentVersionListItem>& value) { SetComponentVersions(value); return *this;}
56 
60  inline ListComponentVersionsResult& WithComponentVersions(Aws::Vector<ComponentVersionListItem>&& value) { SetComponentVersions(std::move(value)); return *this;}
61 
65  inline ListComponentVersionsResult& AddComponentVersions(const ComponentVersionListItem& value) { m_componentVersions.push_back(value); return *this; }
66 
70  inline ListComponentVersionsResult& AddComponentVersions(ComponentVersionListItem&& value) { m_componentVersions.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 ListComponentVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListComponentVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListComponentVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<ComponentVersionListItem> m_componentVersions;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace GreengrassV2
124 } // namespace Aws
Aws::GreengrassV2::Model::ListComponentVersionsResult::WithComponentVersions
ListComponentVersionsResult & WithComponentVersions(Aws::Vector< ComponentVersionListItem > &&value)
Definition: ListComponentVersionsResult.h:60
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GreengrassV2::Model::ListComponentVersionsResult::ListComponentVersionsResult
ListComponentVersionsResult()
Aws::GreengrassV2::Model::ListComponentVersionsResult::ListComponentVersionsResult
ListComponentVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GreengrassV2_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GreengrassV2::Model::ListComponentVersionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListComponentVersionsResult.h:89
Aws::GreengrassV2::Model::ListComponentVersionsResult::AddComponentVersions
ListComponentVersionsResult & AddComponentVersions(ComponentVersionListItem &&value)
Definition: ListComponentVersionsResult.h:70
AWSVector.h
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListComponentVersionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListComponentVersionsResult.h:77
Aws::GreengrassV2::Model::ListComponentVersionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListComponentVersionsResult.h:95
Aws::GreengrassV2::Model::ListComponentVersionsResult::SetComponentVersions
void SetComponentVersions(const Aws::Vector< ComponentVersionListItem > &value)
Definition: ListComponentVersionsResult.h:45
AWSString.h
Aws::GreengrassV2::Model::ListComponentVersionsResult::WithNextToken
ListComponentVersionsResult & WithNextToken(Aws::String &&value)
Definition: ListComponentVersionsResult.h:107
Aws::GreengrassV2::Model::ListComponentVersionsResult
Definition: ListComponentVersionsResult.h:30
Aws::GreengrassV2::Model::ListComponentVersionsResult::WithComponentVersions
ListComponentVersionsResult & WithComponentVersions(const Aws::Vector< ComponentVersionListItem > &value)
Definition: ListComponentVersionsResult.h:55
Aws::GreengrassV2::Model::ListComponentVersionsResult::WithNextToken
ListComponentVersionsResult & WithNextToken(const Aws::String &value)
Definition: ListComponentVersionsResult.h:101
Aws::GreengrassV2::Model::ListComponentVersionsResult::WithNextToken
ListComponentVersionsResult & WithNextToken(const char *value)
Definition: ListComponentVersionsResult.h:113
Aws::GreengrassV2::Model::ListComponentVersionsResult::operator=
ListComponentVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GreengrassV2::Model::ListComponentVersionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListComponentVersionsResult.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListComponentVersionsResult::GetComponentVersions
const Aws::Vector< ComponentVersionListItem > & GetComponentVersions() const
Definition: ListComponentVersionsResult.h:40
ComponentVersionListItem.h
Aws::GreengrassV2::Model::ListComponentVersionsResult::SetComponentVersions
void SetComponentVersions(Aws::Vector< ComponentVersionListItem > &&value)
Definition: ListComponentVersionsResult.h:50
Aws::GreengrassV2::Model::ComponentVersionListItem
Definition: ComponentVersionListItem.h:33
Aws::GreengrassV2::Model::ListComponentVersionsResult::AddComponentVersions
ListComponentVersionsResult & AddComponentVersions(const ComponentVersionListItem &value)
Definition: ListComponentVersionsResult.h:65