AWS SDK for C++  1.9.104
AWS SDK for C++
ListSitesRequest.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 Outposts
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 "ListSites"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
41 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
44 
45  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
46 
47 
48  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
49 
50 
51  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
52 
53 
54  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
55 
56 
57  inline ListSitesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
58 
59 
60  inline ListSitesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
61 
62 
63  inline ListSitesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
64 
65 
66 
67  inline int GetMaxResults() const{ return m_maxResults; }
68 
69 
70  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 
72 
73  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 
75 
76  inline ListSitesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
77 
78  private:
79 
80  Aws::String m_nextToken;
81  bool m_nextTokenHasBeenSet;
82 
83  int m_maxResults;
84  bool m_maxResultsHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace Outposts
89 } // namespace Aws
Aws::Outposts::Model::ListSitesRequest::WithNextToken
ListSitesRequest & WithNextToken(Aws::String &&value)
Definition: ListSitesRequest.h:60
Aws::Http::URI
Definition: URI.h:32
OutpostsRequest.h
Aws::Outposts::Model::ListSitesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSitesRequest.h:42
Aws::Outposts::Model::ListSitesRequest::WithNextToken
ListSitesRequest & WithNextToken(const char *value)
Definition: ListSitesRequest.h:63
Aws::Outposts::Model::ListSitesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListSitesRequest.h:73
Aws::Outposts::Model::ListSitesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListSitesRequest.h:67
Aws::Outposts::Model::ListSitesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Outposts::Model::ListSitesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListSitesRequest.h:54
Aws::Outposts::Model::ListSitesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Outposts::Model::ListSitesRequest::ListSitesRequest
ListSitesRequest()
Aws::Outposts::Model::ListSitesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListSitesRequest.h:45
Aws::Outposts::Model::ListSitesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSitesRequest.h:48
Aws::Outposts::Model::ListSitesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListSitesRequest.h:34
Aws::Outposts::Model::ListSitesRequest::WithMaxResults
ListSitesRequest & WithMaxResults(int value)
Definition: ListSitesRequest.h:76
AWSString.h
AWS_OUTPOSTS_API
#define AWS_OUTPOSTS_API
Definition: Outposts_EXPORTS.h:28
Aws::Outposts::Model::ListSitesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListSitesRequest.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::Outposts::Model::ListSitesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSitesRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Outposts::Model::ListSitesRequest::WithNextToken
ListSitesRequest & WithNextToken(const Aws::String &value)
Definition: ListSitesRequest.h:57
Outposts_EXPORTS.h
Aws::Outposts::Model::ListSitesRequest
Definition: ListSitesRequest.h:26
Aws::Outposts::OutpostsRequest
Definition: OutpostsRequest.h:17