/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SMS { namespace Model { class GetServersResult { public: AWS_SMS_API GetServersResult(); AWS_SMS_API GetServersResult(const Aws::AmazonWebServiceResult& result); AWS_SMS_API GetServersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The time when the server was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; } /** *

The time when the server was last modified.

*/ inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOn = value; } /** *

The time when the server was last modified.

*/ inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOn = std::move(value); } /** *

The time when the server was last modified.

*/ inline GetServersResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;} /** *

The time when the server was last modified.

*/ inline GetServersResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;} /** *

The status of the server catalog.

*/ inline const ServerCatalogStatus& GetServerCatalogStatus() const{ return m_serverCatalogStatus; } /** *

The status of the server catalog.

*/ inline void SetServerCatalogStatus(const ServerCatalogStatus& value) { m_serverCatalogStatus = value; } /** *

The status of the server catalog.

*/ inline void SetServerCatalogStatus(ServerCatalogStatus&& value) { m_serverCatalogStatus = std::move(value); } /** *

The status of the server catalog.

*/ inline GetServersResult& WithServerCatalogStatus(const ServerCatalogStatus& value) { SetServerCatalogStatus(value); return *this;} /** *

The status of the server catalog.

*/ inline GetServersResult& WithServerCatalogStatus(ServerCatalogStatus&& value) { SetServerCatalogStatus(std::move(value)); return *this;} /** *

Information about the servers.

*/ inline const Aws::Vector& GetServerList() const{ return m_serverList; } /** *

Information about the servers.

*/ inline void SetServerList(const Aws::Vector& value) { m_serverList = value; } /** *

Information about the servers.

*/ inline void SetServerList(Aws::Vector&& value) { m_serverList = std::move(value); } /** *

Information about the servers.

*/ inline GetServersResult& WithServerList(const Aws::Vector& value) { SetServerList(value); return *this;} /** *

Information about the servers.

*/ inline GetServersResult& WithServerList(Aws::Vector&& value) { SetServerList(std::move(value)); return *this;} /** *

Information about the servers.

*/ inline GetServersResult& AddServerList(const Server& value) { m_serverList.push_back(value); return *this; } /** *

Information about the servers.

*/ inline GetServersResult& AddServerList(Server&& value) { m_serverList.push_back(std::move(value)); return *this; } /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline GetServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline GetServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token required to retrieve the next set of results. This value is null * when there are no more results to return.

*/ inline GetServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetServersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_lastModifiedOn; ServerCatalogStatus m_serverCatalogStatus; Aws::Vector m_serverList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace SMS } // namespace Aws