AWS SDK for C++  1.9.129
AWS SDK for C++
ListServerNeighborsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ApplicationDiscoveryService
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 "ListServerNeighbors"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetConfigurationId() const{ return m_configurationId; }
42 
46  inline bool ConfigurationIdHasBeenSet() const { return m_configurationIdHasBeenSet; }
47 
51  inline void SetConfigurationId(const Aws::String& value) { m_configurationIdHasBeenSet = true; m_configurationId = value; }
52 
56  inline void SetConfigurationId(Aws::String&& value) { m_configurationIdHasBeenSet = true; m_configurationId = std::move(value); }
57 
61  inline void SetConfigurationId(const char* value) { m_configurationIdHasBeenSet = true; m_configurationId.assign(value); }
62 
66  inline ListServerNeighborsRequest& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;}
67 
71  inline ListServerNeighborsRequest& WithConfigurationId(Aws::String&& value) { SetConfigurationId(std::move(value)); return *this;}
72 
76  inline ListServerNeighborsRequest& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;}
77 
78 
83  inline bool GetPortInformationNeeded() const{ return m_portInformationNeeded; }
84 
89  inline bool PortInformationNeededHasBeenSet() const { return m_portInformationNeededHasBeenSet; }
90 
95  inline void SetPortInformationNeeded(bool value) { m_portInformationNeededHasBeenSet = true; m_portInformationNeeded = value; }
96 
101  inline ListServerNeighborsRequest& WithPortInformationNeeded(bool value) { SetPortInformationNeeded(value); return *this;}
102 
103 
107  inline const Aws::Vector<Aws::String>& GetNeighborConfigurationIds() const{ return m_neighborConfigurationIds; }
108 
112  inline bool NeighborConfigurationIdsHasBeenSet() const { return m_neighborConfigurationIdsHasBeenSet; }
113 
117  inline void SetNeighborConfigurationIds(const Aws::Vector<Aws::String>& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds = value; }
118 
122  inline void SetNeighborConfigurationIds(Aws::Vector<Aws::String>&& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds = std::move(value); }
123 
127  inline ListServerNeighborsRequest& WithNeighborConfigurationIds(const Aws::Vector<Aws::String>& value) { SetNeighborConfigurationIds(value); return *this;}
128 
132  inline ListServerNeighborsRequest& WithNeighborConfigurationIds(Aws::Vector<Aws::String>&& value) { SetNeighborConfigurationIds(std::move(value)); return *this;}
133 
137  inline ListServerNeighborsRequest& AddNeighborConfigurationIds(const Aws::String& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(value); return *this; }
138 
142  inline ListServerNeighborsRequest& AddNeighborConfigurationIds(Aws::String&& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(std::move(value)); return *this; }
143 
147  inline ListServerNeighborsRequest& AddNeighborConfigurationIds(const char* value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(value); return *this; }
148 
149 
153  inline int GetMaxResults() const{ return m_maxResults; }
154 
158  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
159 
163  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
164 
168  inline ListServerNeighborsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
169 
170 
179  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
180 
189  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
190 
199  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
200 
209  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
210 
219  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
220 
229  inline ListServerNeighborsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
230 
239  inline ListServerNeighborsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
240 
249  inline ListServerNeighborsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
250 
251  private:
252 
253  Aws::String m_configurationId;
254  bool m_configurationIdHasBeenSet;
255 
256  bool m_portInformationNeeded;
257  bool m_portInformationNeededHasBeenSet;
258 
259  Aws::Vector<Aws::String> m_neighborConfigurationIds;
260  bool m_neighborConfigurationIdsHasBeenSet;
261 
262  int m_maxResults;
263  bool m_maxResultsHasBeenSet;
264 
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace ApplicationDiscoveryService
271 } // namespace Aws
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::NeighborConfigurationIdsHasBeenSet
bool NeighborConfigurationIdsHasBeenSet() const
Definition: ListServerNeighborsRequest.h:112
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListServerNeighborsRequest.h:158
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetNeighborConfigurationIds
void SetNeighborConfigurationIds(const Aws::Vector< Aws::String > &value)
Definition: ListServerNeighborsRequest.h:117
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListServerNeighborsRequest.h:179
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithConfigurationId
ListServerNeighborsRequest & WithConfigurationId(const char *value)
Definition: ListServerNeighborsRequest.h:76
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListServerNeighborsRequest.h:153
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithNeighborConfigurationIds
ListServerNeighborsRequest & WithNeighborConfigurationIds(const Aws::Vector< Aws::String > &value)
Definition: ListServerNeighborsRequest.h:127
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetNeighborConfigurationIds
void SetNeighborConfigurationIds(Aws::Vector< Aws::String > &&value)
Definition: ListServerNeighborsRequest.h:122
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithNextToken
ListServerNeighborsRequest & WithNextToken(const Aws::String &value)
Definition: ListServerNeighborsRequest.h:229
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest
Definition: ListServerNeighborsRequest.h:23
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::AddNeighborConfigurationIds
ListServerNeighborsRequest & AddNeighborConfigurationIds(const Aws::String &value)
Definition: ListServerNeighborsRequest.h:137
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithNeighborConfigurationIds
ListServerNeighborsRequest & WithNeighborConfigurationIds(Aws::Vector< Aws::String > &&value)
Definition: ListServerNeighborsRequest.h:132
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithNextToken
ListServerNeighborsRequest & WithNextToken(Aws::String &&value)
Definition: ListServerNeighborsRequest.h:239
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithConfigurationId
ListServerNeighborsRequest & WithConfigurationId(Aws::String &&value)
Definition: ListServerNeighborsRequest.h:71
ApplicationDiscoveryService_EXPORTS.h
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::AddNeighborConfigurationIds
ListServerNeighborsRequest & AddNeighborConfigurationIds(Aws::String &&value)
Definition: ListServerNeighborsRequest.h:142
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::PortInformationNeededHasBeenSet
bool PortInformationNeededHasBeenSet() const
Definition: ListServerNeighborsRequest.h:89
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListServerNeighborsRequest.h:199
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetConfigurationId
void SetConfigurationId(const char *value)
Definition: ListServerNeighborsRequest.h:61
AWSVector.h
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetPortInformationNeeded
void SetPortInformationNeeded(bool value)
Definition: ListServerNeighborsRequest.h:95
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetNeighborConfigurationIds
const Aws::Vector< Aws::String > & GetNeighborConfigurationIds() const
Definition: ListServerNeighborsRequest.h:107
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetConfigurationId
void SetConfigurationId(Aws::String &&value)
Definition: ListServerNeighborsRequest.h:56
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListServerNeighborsRequest.h:163
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::AddNeighborConfigurationIds
ListServerNeighborsRequest & AddNeighborConfigurationIds(const char *value)
Definition: ListServerNeighborsRequest.h:147
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListServerNeighborsRequest.h:31
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithNextToken
ListServerNeighborsRequest & WithNextToken(const char *value)
Definition: ListServerNeighborsRequest.h:249
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithMaxResults
ListServerNeighborsRequest & WithMaxResults(int value)
Definition: ListServerNeighborsRequest.h:168
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithPortInformationNeeded
ListServerNeighborsRequest & WithPortInformationNeeded(bool value)
Definition: ListServerNeighborsRequest.h:101
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::ListServerNeighborsRequest
ListServerNeighborsRequest()
AWSString.h
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetConfigurationId
void SetConfigurationId(const Aws::String &value)
Definition: ListServerNeighborsRequest.h:51
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListServerNeighborsRequest.h:209
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetPortInformationNeeded
bool GetPortInformationNeeded() const
Definition: ListServerNeighborsRequest.h:83
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListServerNeighborsRequest.h:219
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListServerNeighborsRequest.h:189
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::GetConfigurationId
const Aws::String & GetConfigurationId() const
Definition: ListServerNeighborsRequest.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::WithConfigurationId
ListServerNeighborsRequest & WithConfigurationId(const Aws::String &value)
Definition: ListServerNeighborsRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::ListServerNeighborsRequest::ConfigurationIdHasBeenSet
bool ConfigurationIdHasBeenSet() const
Definition: ListServerNeighborsRequest.h:46
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28