AWS SDK for C++  1.9.123
AWS SDK for C++
ListComponentVersionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace GreengrassV2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListComponentVersions"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
53  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 
60  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
61 
67  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 
74  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 
81  inline ListComponentVersionsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 
88  inline ListComponentVersionsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
89 
95  inline ListComponentVersionsRequest& WithArn(const char* value) { SetArn(value); return *this;}
96 
97 
101  inline int GetMaxResults() const{ return m_maxResults; }
102 
106  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
111  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 
116  inline ListComponentVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 
118 
122  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
123 
127  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 
132  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 
137  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 
142  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
143 
147  inline ListComponentVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 
152  inline ListComponentVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
153 
157  inline ListComponentVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
158 
159  private:
160 
161  Aws::String m_arn;
162  bool m_arnHasBeenSet;
163 
164  int m_maxResults;
165  bool m_maxResultsHasBeenSet;
166 
167  Aws::String m_nextToken;
168  bool m_nextTokenHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace GreengrassV2
173 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::GreengrassV2::Model::ListComponentVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListComponentVersionsRequest.h:34
Aws::GreengrassV2::Model::ListComponentVersionsRequest::ListComponentVersionsRequest
ListComponentVersionsRequest()
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListComponentVersionsRequest.h:132
GreengrassV2Request.h
Aws::GreengrassV2::Model::ListComponentVersionsRequest
Definition: ListComponentVersionsRequest.h:26
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithMaxResults
ListComponentVersionsRequest & WithMaxResults(int value)
Definition: ListComponentVersionsRequest.h:116
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ListComponentVersionsRequest::GetArn
const Aws::String & GetArn() const
Definition: ListComponentVersionsRequest.h:46
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetArn
void SetArn(const Aws::String &value)
Definition: ListComponentVersionsRequest.h:60
Aws::GreengrassV2::Model::ListComponentVersionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListComponentVersionsRequest.h:101
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithNextToken
ListComponentVersionsRequest & WithNextToken(const Aws::String &value)
Definition: ListComponentVersionsRequest.h:147
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithNextToken
ListComponentVersionsRequest & WithNextToken(Aws::String &&value)
Definition: ListComponentVersionsRequest.h:152
Aws::GreengrassV2::Model::ListComponentVersionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListComponentVersionsRequest.h:127
Aws::GreengrassV2::Model::ListComponentVersionsRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ListComponentVersionsRequest.h:53
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListComponentVersionsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetArn
void SetArn(Aws::String &&value)
Definition: ListComponentVersionsRequest.h:67
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithArn
ListComponentVersionsRequest & WithArn(Aws::String &&value)
Definition: ListComponentVersionsRequest.h:88
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
AWSString.h
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithNextToken
ListComponentVersionsRequest & WithNextToken(const char *value)
Definition: ListComponentVersionsRequest.h:157
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetArn
void SetArn(const char *value)
Definition: ListComponentVersionsRequest.h:74
Aws::GreengrassV2::Model::ListComponentVersionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListComponentVersionsRequest.h:106
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListComponentVersionsRequest.h:137
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListComponentVersionsRequest.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithArn
ListComponentVersionsRequest & WithArn(const char *value)
Definition: ListComponentVersionsRequest.h:95
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListComponentVersionsRequest::WithArn
ListComponentVersionsRequest & WithArn(const Aws::String &value)
Definition: ListComponentVersionsRequest.h:81
Aws::GreengrassV2::Model::ListComponentVersionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListComponentVersionsRequest.h:122
Aws::GreengrassV2::Model::ListComponentVersionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListComponentVersionsRequest.h:142