AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
37
38
40
43 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
44 template<typename LastModifiedOnT = Aws::Utils::DateTime>
45 void SetLastModifiedOn(LastModifiedOnT&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::forward<LastModifiedOnT>(value); }
46 template<typename LastModifiedOnT = Aws::Utils::DateTime>
47 GetServersResult& WithLastModifiedOn(LastModifiedOnT&& value) { SetLastModifiedOn(std::forward<LastModifiedOnT>(value)); return *this;}
49
51
54 inline ServerCatalogStatus GetServerCatalogStatus() const { return m_serverCatalogStatus; }
55 inline void SetServerCatalogStatus(ServerCatalogStatus value) { m_serverCatalogStatusHasBeenSet = true; m_serverCatalogStatus = value; }
58
60
63 inline const Aws::Vector<Server>& GetServerList() const { return m_serverList; }
64 template<typename ServerListT = Aws::Vector<Server>>
65 void SetServerList(ServerListT&& value) { m_serverListHasBeenSet = true; m_serverList = std::forward<ServerListT>(value); }
66 template<typename ServerListT = Aws::Vector<Server>>
67 GetServersResult& WithServerList(ServerListT&& value) { SetServerList(std::forward<ServerListT>(value)); return *this;}
68 template<typename ServerListT = Server>
69 GetServersResult& AddServerList(ServerListT&& value) { m_serverListHasBeenSet = true; m_serverList.emplace_back(std::forward<ServerListT>(value)); return *this; }
71
73
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 template<typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
80 template<typename NextTokenT = Aws::String>
81 GetServersResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template<typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
89 template<typename RequestIdT = Aws::String>
90 GetServersResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
92 private:
93
94 Aws::Utils::DateTime m_lastModifiedOn{};
95 bool m_lastModifiedOnHasBeenSet = false;
96
98 bool m_serverCatalogStatusHasBeenSet = false;
99
100 Aws::Vector<Server> m_serverList;
101 bool m_serverListHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105
106 Aws::String m_requestId;
107 bool m_requestIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SMS
112} // namespace Aws
AWS_SMS_API GetServersResult()=default
const Aws::Vector< Server > & GetServerList() const
void SetNextToken(NextTokenT &&value)
void SetServerList(ServerListT &&value)
void SetServerCatalogStatus(ServerCatalogStatus value)
GetServersResult & WithRequestId(RequestIdT &&value)
GetServersResult & WithNextToken(NextTokenT &&value)
GetServersResult & WithServerList(ServerListT &&value)
GetServersResult & WithServerCatalogStatus(ServerCatalogStatus value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetNextToken() const
GetServersResult & AddServerList(ServerListT &&value)
AWS_SMS_API GetServersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ServerCatalogStatus GetServerCatalogStatus() const
const Aws::String & GetRequestId() const
GetServersResult & WithLastModifiedOn(LastModifiedOnT &&value)
const Aws::Utils::DateTime & GetLastModifiedOn() const
void SetLastModifiedOn(LastModifiedOnT &&value)
AWS_SMS_API GetServersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue