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

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

*/ inline const Aws::Vector& GetAssociatedApplications() const{ return m_associatedApplications; } /** *

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

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

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

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

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

*/ inline GetServerDetailsResult& WithAssociatedApplications(const Aws::Vector& value) { SetAssociatedApplications(value); return *this;} /** *

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

*/ inline GetServerDetailsResult& WithAssociatedApplications(Aws::Vector&& value) { SetAssociatedApplications(std::move(value)); return *this;} /** *

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

*/ inline GetServerDetailsResult& AddAssociatedApplications(const AssociatedApplication& value) { m_associatedApplications.push_back(value); return *this; } /** *

The associated application group the server belongs to, as defined in AWS * Application Discovery Service.

*/ inline GetServerDetailsResult& AddAssociatedApplications(AssociatedApplication&& value) { m_associatedApplications.push_back(std::move(value)); return *this; } /** *

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

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

The token you use to retrieve the next set of results, or null if there are * no more results.

*/ inline GetServerDetailsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Detailed information about the server.

*/ inline const ServerDetail& GetServerDetail() const{ return m_serverDetail; } /** *

Detailed information about the server.

*/ inline void SetServerDetail(const ServerDetail& value) { m_serverDetail = value; } /** *

Detailed information about the server.

*/ inline void SetServerDetail(ServerDetail&& value) { m_serverDetail = std::move(value); } /** *

Detailed information about the server.

*/ inline GetServerDetailsResult& WithServerDetail(const ServerDetail& value) { SetServerDetail(value); return *this;} /** *

Detailed information about the server.

*/ inline GetServerDetailsResult& WithServerDetail(ServerDetail&& value) { SetServerDetail(std::move(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 GetServerDetailsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServerDetailsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServerDetailsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_associatedApplications; Aws::String m_nextToken; ServerDetail m_serverDetail; Aws::String m_requestId; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws