AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListServersRequest.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/migrationhubstrategy/model/ServerCriteria.h>
12#include <aws/migrationhubstrategy/model/SortOrder.h>
13#include <aws/migrationhubstrategy/model/Group.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MigrationHubStrategyRecommendations
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ListServersRequest();
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 "ListServers"; }
35
36 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetFilterValue() const{ return m_filterValue; }
48 inline bool FilterValueHasBeenSet() const { return m_filterValueHasBeenSet; }
49 inline void SetFilterValue(const Aws::String& value) { m_filterValueHasBeenSet = true; m_filterValue = value; }
50 inline void SetFilterValue(Aws::String&& value) { m_filterValueHasBeenSet = true; m_filterValue = std::move(value); }
51 inline void SetFilterValue(const char* value) { m_filterValueHasBeenSet = true; m_filterValue.assign(value); }
52 inline ListServersRequest& WithFilterValue(const Aws::String& value) { SetFilterValue(value); return *this;}
53 inline ListServersRequest& WithFilterValue(Aws::String&& value) { SetFilterValue(std::move(value)); return *this;}
54 inline ListServersRequest& WithFilterValue(const char* value) { SetFilterValue(value); return *this;}
56
58
61 inline const Aws::Vector<Group>& GetGroupIdFilter() const{ return m_groupIdFilter; }
62 inline bool GroupIdFilterHasBeenSet() const { return m_groupIdFilterHasBeenSet; }
63 inline void SetGroupIdFilter(const Aws::Vector<Group>& value) { m_groupIdFilterHasBeenSet = true; m_groupIdFilter = value; }
64 inline void SetGroupIdFilter(Aws::Vector<Group>&& value) { m_groupIdFilterHasBeenSet = true; m_groupIdFilter = std::move(value); }
65 inline ListServersRequest& WithGroupIdFilter(const Aws::Vector<Group>& value) { SetGroupIdFilter(value); return *this;}
66 inline ListServersRequest& WithGroupIdFilter(Aws::Vector<Group>&& value) { SetGroupIdFilter(std::move(value)); return *this;}
67 inline ListServersRequest& AddGroupIdFilter(const Group& value) { m_groupIdFilterHasBeenSet = true; m_groupIdFilter.push_back(value); return *this; }
68 inline ListServersRequest& AddGroupIdFilter(Group&& value) { m_groupIdFilterHasBeenSet = true; m_groupIdFilter.push_back(std::move(value)); return *this; }
70
72
76 inline int GetMaxResults() const{ return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListServersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
90 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
93 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
94 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
95 inline ListServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 inline ListServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
97 inline ListServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
99
101
104 inline const ServerCriteria& GetServerCriteria() const{ return m_serverCriteria; }
105 inline bool ServerCriteriaHasBeenSet() const { return m_serverCriteriaHasBeenSet; }
106 inline void SetServerCriteria(const ServerCriteria& value) { m_serverCriteriaHasBeenSet = true; m_serverCriteria = value; }
107 inline void SetServerCriteria(ServerCriteria&& value) { m_serverCriteriaHasBeenSet = true; m_serverCriteria = std::move(value); }
108 inline ListServersRequest& WithServerCriteria(const ServerCriteria& value) { SetServerCriteria(value); return *this;}
109 inline ListServersRequest& WithServerCriteria(ServerCriteria&& value) { SetServerCriteria(std::move(value)); return *this;}
111
113
117 inline const SortOrder& GetSort() const{ return m_sort; }
118 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
119 inline void SetSort(const SortOrder& value) { m_sortHasBeenSet = true; m_sort = value; }
120 inline void SetSort(SortOrder&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
121 inline ListServersRequest& WithSort(const SortOrder& value) { SetSort(value); return *this;}
122 inline ListServersRequest& WithSort(SortOrder&& value) { SetSort(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_filterValue;
127 bool m_filterValueHasBeenSet = false;
128
129 Aws::Vector<Group> m_groupIdFilter;
130 bool m_groupIdFilterHasBeenSet = false;
131
132 int m_maxResults;
133 bool m_maxResultsHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 ServerCriteria m_serverCriteria;
139 bool m_serverCriteriaHasBeenSet = false;
140
141 SortOrder m_sort;
142 bool m_sortHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace MigrationHubStrategyRecommendations
147} // namespace Aws
ListServersRequest & WithGroupIdFilter(Aws::Vector< Group > &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::String SerializePayload() const override
ListServersRequest & WithFilterValue(const Aws::String &value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ListServersRequest()
ListServersRequest & WithServerCriteria(const ServerCriteria &value)
ListServersRequest & WithGroupIdFilter(const Aws::Vector< Group > &value)
ListServersRequest & WithServerCriteria(ServerCriteria &&value)
ListServersRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector