AWS SDK for C++  1.9.40
AWS SDK for C++
GetSitesRequest.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 NetworkManager
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 "GetSites"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
46 
50  inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
51 
55  inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
56 
60  inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
61 
65  inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
66 
70  inline GetSitesRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
71 
75  inline GetSitesRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
76 
80  inline GetSitesRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
81 
82 
86  inline const Aws::Vector<Aws::String>& GetSiteIds() const{ return m_siteIds; }
87 
91  inline bool SiteIdsHasBeenSet() const { return m_siteIdsHasBeenSet; }
92 
96  inline void SetSiteIds(const Aws::Vector<Aws::String>& value) { m_siteIdsHasBeenSet = true; m_siteIds = value; }
97 
101  inline void SetSiteIds(Aws::Vector<Aws::String>&& value) { m_siteIdsHasBeenSet = true; m_siteIds = std::move(value); }
102 
106  inline GetSitesRequest& WithSiteIds(const Aws::Vector<Aws::String>& value) { SetSiteIds(value); return *this;}
107 
111  inline GetSitesRequest& WithSiteIds(Aws::Vector<Aws::String>&& value) { SetSiteIds(std::move(value)); return *this;}
112 
116  inline GetSitesRequest& AddSiteIds(const Aws::String& value) { m_siteIdsHasBeenSet = true; m_siteIds.push_back(value); return *this; }
117 
121  inline GetSitesRequest& AddSiteIds(Aws::String&& value) { m_siteIdsHasBeenSet = true; m_siteIds.push_back(std::move(value)); return *this; }
122 
126  inline GetSitesRequest& AddSiteIds(const char* value) { m_siteIdsHasBeenSet = true; m_siteIds.push_back(value); return *this; }
127 
128 
132  inline int GetMaxResults() const{ return m_maxResults; }
133 
137  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
138 
142  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
143 
147  inline GetSitesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
148 
149 
153  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
154 
158  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
159 
163  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
164 
168  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
169 
173  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
174 
178  inline GetSitesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
179 
183  inline GetSitesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
184 
188  inline GetSitesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
189 
190  private:
191 
192  Aws::String m_globalNetworkId;
193  bool m_globalNetworkIdHasBeenSet;
194 
195  Aws::Vector<Aws::String> m_siteIds;
196  bool m_siteIdsHasBeenSet;
197 
198  int m_maxResults;
199  bool m_maxResultsHasBeenSet;
200 
201  Aws::String m_nextToken;
202  bool m_nextTokenHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace NetworkManager
207 } // namespace Aws
Aws::NetworkManager::Model::GetSitesRequest::SiteIdsHasBeenSet
bool SiteIdsHasBeenSet() const
Definition: GetSitesRequest.h:91
Aws::Http::URI
Definition: URI.h:32
Aws::NetworkManager::Model::GetSitesRequest::WithSiteIds
GetSitesRequest & WithSiteIds(const Aws::Vector< Aws::String > &value)
Definition: GetSitesRequest.h:106
Aws::NetworkManager::Model::GetSitesRequest::WithGlobalNetworkId
GetSitesRequest & WithGlobalNetworkId(const char *value)
Definition: GetSitesRequest.h:80
Aws::NetworkManager::Model::GetSitesRequest::GetSiteIds
const Aws::Vector< Aws::String > & GetSiteIds() const
Definition: GetSitesRequest.h:86
Aws::NetworkManager::Model::GetSitesRequest::AddSiteIds
GetSitesRequest & AddSiteIds(Aws::String &&value)
Definition: GetSitesRequest.h:121
Aws::NetworkManager::Model::GetSitesRequest::WithNextToken
GetSitesRequest & WithNextToken(const char *value)
Definition: GetSitesRequest.h:188
Aws::NetworkManager::Model::GetSitesRequest::WithGlobalNetworkId
GetSitesRequest & WithGlobalNetworkId(const Aws::String &value)
Definition: GetSitesRequest.h:70
Aws::NetworkManager::NetworkManagerRequest
Definition: NetworkManagerRequest.h:17
Aws::NetworkManager::Model::GetSitesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetSitesRequest.h:137
Aws::NetworkManager::Model::GetSitesRequest::GetGlobalNetworkId
const Aws::String & GetGlobalNetworkId() const
Definition: GetSitesRequest.h:45
Aws::NetworkManager::Model::GetSitesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSitesRequest.h:35
Aws::NetworkManager::Model::GetSitesRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const char *value)
Definition: GetSitesRequest.h:65
Aws::NetworkManager::Model::GetSitesRequest::WithNextToken
GetSitesRequest & WithNextToken(const Aws::String &value)
Definition: GetSitesRequest.h:178
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
NetworkManager_EXPORTS.h
Aws::NetworkManager::Model::GetSitesRequest::WithNextToken
GetSitesRequest & WithNextToken(Aws::String &&value)
Definition: GetSitesRequest.h:183
Aws::NetworkManager::Model::GetSitesRequest
Definition: GetSitesRequest.h:27
AWSVector.h
Aws::NetworkManager::Model::GetSitesRequest::WithGlobalNetworkId
GetSitesRequest & WithGlobalNetworkId(Aws::String &&value)
Definition: GetSitesRequest.h:75
Aws::NetworkManager::Model::GetSitesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetSitesRequest.h:173
Aws::NetworkManager::Model::GetSitesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetSitesRequest.h:163
AWS_NETWORKMANAGER_API
#define AWS_NETWORKMANAGER_API
Definition: NetworkManager_EXPORTS.h:28
Aws::NetworkManager::Model::GetSitesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetSitesRequest.h:153
Aws::NetworkManager::Model::GetSitesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetSitesRequest.h:158
Aws::NetworkManager::Model::GetSitesRequest::WithSiteIds
GetSitesRequest & WithSiteIds(Aws::Vector< Aws::String > &&value)
Definition: GetSitesRequest.h:111
Aws::NetworkManager::Model::GetSitesRequest::SetGlobalNetworkId
void SetGlobalNetworkId(const Aws::String &value)
Definition: GetSitesRequest.h:55
Aws::NetworkManager::Model::GetSitesRequest::SetGlobalNetworkId
void SetGlobalNetworkId(Aws::String &&value)
Definition: GetSitesRequest.h:60
AWSString.h
Aws::NetworkManager::Model::GetSitesRequest::SetSiteIds
void SetSiteIds(const Aws::Vector< Aws::String > &value)
Definition: GetSitesRequest.h:96
Aws::NetworkManager::Model::GetSitesRequest::SetSiteIds
void SetSiteIds(Aws::Vector< Aws::String > &&value)
Definition: GetSitesRequest.h:101
Aws::NetworkManager::Model::GetSitesRequest::WithMaxResults
GetSitesRequest & WithMaxResults(int value)
Definition: GetSitesRequest.h:147
Aws::NetworkManager::Model::GetSitesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetSitesRequest.h:132
Aws::NetworkManager::Model::GetSitesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetSitesRequest.h:142
Aws::NetworkManager::Model::GetSitesRequest::AddSiteIds
GetSitesRequest & AddSiteIds(const char *value)
Definition: GetSitesRequest.h:126
Aws::NetworkManager::Model::GetSitesRequest::GlobalNetworkIdHasBeenSet
bool GlobalNetworkIdHasBeenSet() const
Definition: GetSitesRequest.h:50
Aws::NetworkManager::Model::GetSitesRequest::AddSiteIds
GetSitesRequest & AddSiteIds(const Aws::String &value)
Definition: GetSitesRequest.h:116
Aws::NetworkManager::Model::GetSitesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetSitesRequest.h:168
NetworkManagerRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkManager::Model::GetSitesRequest::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::NetworkManager::Model::GetSitesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::NetworkManager::Model::GetSitesRequest::GetSitesRequest
GetSitesRequest()