AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetServersResult.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/sms/model/ServerCatalogStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/sms/model/Server.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SMS
28{
29namespace Model
30{
32 {
33 public:
34 AWS_SMS_API GetServersResult();
37
38
40
43 inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; }
44 inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOn = value; }
45 inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOn = std::move(value); }
46 inline GetServersResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;}
47 inline GetServersResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;}
49
51
54 inline const ServerCatalogStatus& GetServerCatalogStatus() const{ return m_serverCatalogStatus; }
55 inline void SetServerCatalogStatus(const ServerCatalogStatus& value) { m_serverCatalogStatus = value; }
56 inline void SetServerCatalogStatus(ServerCatalogStatus&& value) { m_serverCatalogStatus = std::move(value); }
58 inline GetServersResult& WithServerCatalogStatus(ServerCatalogStatus&& value) { SetServerCatalogStatus(std::move(value)); return *this;}
60
62
65 inline const Aws::Vector<Server>& GetServerList() const{ return m_serverList; }
66 inline void SetServerList(const Aws::Vector<Server>& value) { m_serverList = value; }
67 inline void SetServerList(Aws::Vector<Server>&& value) { m_serverList = std::move(value); }
68 inline GetServersResult& WithServerList(const Aws::Vector<Server>& value) { SetServerList(value); return *this;}
69 inline GetServersResult& WithServerList(Aws::Vector<Server>&& value) { SetServerList(std::move(value)); return *this;}
70 inline GetServersResult& AddServerList(const Server& value) { m_serverList.push_back(value); return *this; }
71 inline GetServersResult& AddServerList(Server&& value) { m_serverList.push_back(std::move(value)); return *this; }
73
75
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
81 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
82 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
83 inline GetServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
84 inline GetServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 inline GetServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
87
89
90 inline const Aws::String& GetRequestId() const{ return m_requestId; }
91 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
92 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
93 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
94 inline GetServersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
95 inline GetServersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
96 inline GetServersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
98 private:
99
100 Aws::Utils::DateTime m_lastModifiedOn;
101
102 ServerCatalogStatus m_serverCatalogStatus;
103
104 Aws::Vector<Server> m_serverList;
105
106 Aws::String m_nextToken;
107
108 Aws::String m_requestId;
109 };
110
111} // namespace Model
112} // namespace SMS
113} // namespace Aws
void SetNextToken(Aws::String &&value)
void SetRequestId(const char *value)
void SetServerCatalogStatus(ServerCatalogStatus &&value)
const Aws::Vector< Server > & GetServerList() const
GetServersResult & WithServerCatalogStatus(const ServerCatalogStatus &value)
GetServersResult & WithLastModifiedOn(const Aws::Utils::DateTime &value)
GetServersResult & AddServerList(Server &&value)
void SetServerCatalogStatus(const ServerCatalogStatus &value)
GetServersResult & WithNextToken(const char *value)
GetServersResult & WithNextToken(Aws::String &&value)
GetServersResult & WithNextToken(const Aws::String &value)
GetServersResult & WithServerCatalogStatus(ServerCatalogStatus &&value)
const ServerCatalogStatus & GetServerCatalogStatus() const
GetServersResult & WithRequestId(const Aws::String &value)
void SetServerList(Aws::Vector< Server > &&value)
void SetRequestId(Aws::String &&value)
GetServersResult & WithServerList(const Aws::Vector< Server > &value)
GetServersResult & WithServerList(Aws::Vector< Server > &&value)
const Aws::String & GetNextToken() const
GetServersResult & WithLastModifiedOn(Aws::Utils::DateTime &&value)
AWS_SMS_API GetServersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetServerList(const Aws::Vector< Server > &value)
void SetNextToken(const char *value)
GetServersResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
void SetLastModifiedOn(const Aws::Utils::DateTime &value)
void SetLastModifiedOn(Aws::Utils::DateTime &&value)
const Aws::String & GetRequestId() const
GetServersResult & AddServerList(const Server &value)
const Aws::Utils::DateTime & GetLastModifiedOn() const
AWS_SMS_API GetServersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextToken(const Aws::String &value)
GetServersResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue