AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeSourceServersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mgn/Mgn_EXPORTS.h>
8 #include <aws/mgn/MgnRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace mgn
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeSourceServers"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const DescribeSourceServersRequestFilters& GetFilters() const{ return m_filters; }
40 
44  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
45 
49  inline void SetFilters(const DescribeSourceServersRequestFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
50 
54  inline void SetFilters(DescribeSourceServersRequestFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
55 
59  inline DescribeSourceServersRequest& WithFilters(const DescribeSourceServersRequestFilters& value) { SetFilters(value); return *this;}
60 
64  inline DescribeSourceServersRequest& WithFilters(DescribeSourceServersRequestFilters&& value) { SetFilters(std::move(value)); return *this;}
65 
66 
70  inline int GetMaxResults() const{ return m_maxResults; }
71 
75  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 
80  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 
85  inline DescribeSourceServersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86 
87 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
96  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 
101  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 
106  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 
111  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
112 
116  inline DescribeSourceServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
121  inline DescribeSourceServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
126  inline DescribeSourceServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128  private:
129 
131  bool m_filtersHasBeenSet;
132 
133  int m_maxResults;
134  bool m_maxResultsHasBeenSet;
135 
136  Aws::String m_nextToken;
137  bool m_nextTokenHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace mgn
142 } // namespace Aws
Aws::mgn::Model::DescribeSourceServersRequest::DescribeSourceServersRequest
DescribeSourceServersRequest()
Aws::mgn::Model::DescribeSourceServersRequest
Definition: DescribeSourceServersRequest.h:23
Aws::mgn::Model::DescribeSourceServersRequest::SetFilters
void SetFilters(const DescribeSourceServersRequestFilters &value)
Definition: DescribeSourceServersRequest.h:49
DescribeSourceServersRequestFilters.h
Aws::mgn::Model::DescribeSourceServersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSourceServersRequest.h:31
Aws::mgn::Model::DescribeSourceServersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSourceServersRequest.h:101
AWS_MGN_API
#define AWS_MGN_API
Definition: Mgn_EXPORTS.h:28
Aws::mgn::Model::DescribeSourceServersRequest::WithNextToken
DescribeSourceServersRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSourceServersRequest.h:121
Aws::mgn::Model::DescribeSourceServersRequest::WithNextToken
DescribeSourceServersRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSourceServersRequest.h:116
Aws::mgn::MgnRequest
Definition: MgnRequest.h:17
MgnRequest.h
Aws::mgn::Model::DescribeSourceServersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSourceServersRequest.h:91
Aws::mgn::Model::DescribeSourceServersRequest::WithNextToken
DescribeSourceServersRequest & WithNextToken(const char *value)
Definition: DescribeSourceServersRequest.h:126
Aws::mgn::Model::DescribeSourceServersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSourceServersRequest.h:111
Aws::mgn::Model::DescribeSourceServersRequest::SetFilters
void SetFilters(DescribeSourceServersRequestFilters &&value)
Definition: DescribeSourceServersRequest.h:54
Mgn_EXPORTS.h
Aws::mgn::Model::DescribeSourceServersRequest::WithFilters
DescribeSourceServersRequest & WithFilters(const DescribeSourceServersRequestFilters &value)
Definition: DescribeSourceServersRequest.h:59
AWSString.h
Aws::mgn::Model::DescribeSourceServersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSourceServersRequest.h:96
Aws::mgn::Model::DescribeSourceServersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeSourceServersRequest.h:75
Aws::mgn::Model::DescribeSourceServersRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeSourceServersRequest.h:44
Aws::mgn::Model::DescribeSourceServersRequest::GetFilters
const DescribeSourceServersRequestFilters & GetFilters() const
Definition: DescribeSourceServersRequest.h:39
Aws::mgn::Model::DescribeSourceServersRequestFilters
Definition: DescribeSourceServersRequestFilters.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::mgn::Model::DescribeSourceServersRequest::WithMaxResults
DescribeSourceServersRequest & WithMaxResults(int value)
Definition: DescribeSourceServersRequest.h:85
Aws::mgn::Model::DescribeSourceServersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::mgn::Model::DescribeSourceServersRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeSourceServersRequest.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::mgn::Model::DescribeSourceServersRequest::WithFilters
DescribeSourceServersRequest & WithFilters(DescribeSourceServersRequestFilters &&value)
Definition: DescribeSourceServersRequest.h:64
Aws::mgn::Model::DescribeSourceServersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSourceServersRequest.h:106
Aws::mgn::Model::DescribeSourceServersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeSourceServersRequest.h:80