AWS SDK for C++  1.9.40
AWS SDK for C++
ListComponentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace GreengrassV2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListComponents"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
46  inline const ComponentVisibilityScope& GetScope() const{ return m_scope; }
47 
52  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
53 
58  inline void SetScope(const ComponentVisibilityScope& value) { m_scopeHasBeenSet = true; m_scope = value; }
59 
64  inline void SetScope(ComponentVisibilityScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
65 
70  inline ListComponentsRequest& WithScope(const ComponentVisibilityScope& value) { SetScope(value); return *this;}
71 
76  inline ListComponentsRequest& WithScope(ComponentVisibilityScope&& value) { SetScope(std::move(value)); return *this;}
77 
78 
82  inline int GetMaxResults() const{ return m_maxResults; }
83 
87  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 
92  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 
97  inline ListComponentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98 
99 
103  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 
108  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 
113  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
114 
118  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
119 
123  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 
128  inline ListComponentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
129 
133  inline ListComponentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
134 
138  inline ListComponentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139 
140  private:
141 
142  ComponentVisibilityScope m_scope;
143  bool m_scopeHasBeenSet;
144 
145  int m_maxResults;
146  bool m_maxResultsHasBeenSet;
147 
148  Aws::String m_nextToken;
149  bool m_nextTokenHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace GreengrassV2
154 } // namespace Aws
Aws::GreengrassV2::Model::ListComponentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListComponentsRequest.h:118
Aws::Http::URI
Definition: URI.h:32
Aws::GreengrassV2::Model::ListComponentsRequest::WithNextToken
ListComponentsRequest & WithNextToken(const Aws::String &value)
Definition: ListComponentsRequest.h:128
Aws::GreengrassV2::Model::ListComponentsRequest::SetScope
void SetScope(ComponentVisibilityScope &&value)
Definition: ListComponentsRequest.h:64
GreengrassV2Request.h
Aws::GreengrassV2::Model::ListComponentsRequest::WithMaxResults
ListComponentsRequest & WithMaxResults(int value)
Definition: ListComponentsRequest.h:97
Aws::GreengrassV2::Model::ListComponentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListComponentsRequest.h:92
Aws::GreengrassV2::Model::ListComponentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListComponentsRequest.h:35
Aws::GreengrassV2::Model::ListComponentsRequest::WithScope
ListComponentsRequest & WithScope(const ComponentVisibilityScope &value)
Definition: ListComponentsRequest.h:70
Aws::GreengrassV2::Model::ComponentVisibilityScope
ComponentVisibilityScope
Definition: ComponentVisibilityScope.h:17
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ListComponentsRequest::ListComponentsRequest
ListComponentsRequest()
Aws::GreengrassV2::Model::ListComponentsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GreengrassV2::Model::ListComponentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListComponentsRequest.h:103
Aws::GreengrassV2::Model::ListComponentsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListComponentsRequest.h:82
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListComponentsRequest::WithNextToken
ListComponentsRequest & WithNextToken(const char *value)
Definition: ListComponentsRequest.h:138
Aws::GreengrassV2::Model::ListComponentsRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: ListComponentsRequest.h:52
Aws::GreengrassV2::Model::ListComponentsRequest::GetScope
const ComponentVisibilityScope & GetScope() const
Definition: ListComponentsRequest.h:46
Aws::GreengrassV2::Model::ListComponentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListComponentsRequest.h:87
Aws::GreengrassV2::Model::ListComponentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::ListComponentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListComponentsRequest.h:123
ComponentVisibilityScope.h
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
AWSString.h
Aws::GreengrassV2::Model::ListComponentsRequest::WithNextToken
ListComponentsRequest & WithNextToken(Aws::String &&value)
Definition: ListComponentsRequest.h:133
Aws::GreengrassV2::Model::ListComponentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListComponentsRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ListComponentsRequest::WithScope
ListComponentsRequest & WithScope(ComponentVisibilityScope &&value)
Definition: ListComponentsRequest.h:76
Aws::GreengrassV2::Model::ListComponentsRequest
Definition: ListComponentsRequest.h:27
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListComponentsRequest::SetScope
void SetScope(const ComponentVisibilityScope &value)
Definition: ListComponentsRequest.h:58
Aws::GreengrassV2::Model::ListComponentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListComponentsRequest.h:113