AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetServersRequest.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/SMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sms/model/VmServerAddress.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SMS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SMS_API GetServersRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetServers"; }
33
34 AWS_SMS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
46 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
47 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
48 inline GetServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
49 inline GetServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
50 inline GetServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
52
54
59 inline int GetMaxResults() const{ return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline GetServersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
69 inline const Aws::Vector<VmServerAddress>& GetVmServerAddressList() const{ return m_vmServerAddressList; }
70 inline bool VmServerAddressListHasBeenSet() const { return m_vmServerAddressListHasBeenSet; }
71 inline void SetVmServerAddressList(const Aws::Vector<VmServerAddress>& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList = value; }
72 inline void SetVmServerAddressList(Aws::Vector<VmServerAddress>&& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList = std::move(value); }
75 inline GetServersRequest& AddVmServerAddressList(const VmServerAddress& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList.push_back(value); return *this; }
76 inline GetServersRequest& AddVmServerAddressList(VmServerAddress&& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList.push_back(std::move(value)); return *this; }
78 private:
79
80 Aws::String m_nextToken;
81 bool m_nextTokenHasBeenSet = false;
82
83 int m_maxResults;
84 bool m_maxResultsHasBeenSet = false;
85
86 Aws::Vector<VmServerAddress> m_vmServerAddressList;
87 bool m_vmServerAddressListHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SMS
92} // namespace Aws
void SetNextToken(const Aws::String &value)
GetServersRequest & AddVmServerAddressList(const VmServerAddress &value)
void SetVmServerAddressList(Aws::Vector< VmServerAddress > &&value)
AWS_SMS_API Aws::String SerializePayload() const override
void SetNextToken(Aws::String &&value)
GetServersRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
GetServersRequest & WithVmServerAddressList(const Aws::Vector< VmServerAddress > &value)
const Aws::Vector< VmServerAddress > & GetVmServerAddressList() const
void SetNextToken(const char *value)
void SetVmServerAddressList(const Aws::Vector< VmServerAddress > &value)
GetServersRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
GetServersRequest & WithVmServerAddressList(Aws::Vector< VmServerAddress > &&value)
GetServersRequest & WithNextToken(Aws::String &&value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetServersRequest & AddVmServerAddressList(VmServerAddress &&value)
GetServersRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector