AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetServerDetailsResult.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migrationhubstrategy/model/ServerDetail.h>
11#include <aws/migrationhubstrategy/model/AssociatedApplication.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MigrationHubStrategyRecommendations
27{
28namespace Model
29{
31 {
32 public:
33 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult() = default;
34 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36
37
39
43 inline const Aws::Vector<AssociatedApplication>& GetAssociatedApplications() const { return m_associatedApplications; }
44 template<typename AssociatedApplicationsT = Aws::Vector<AssociatedApplication>>
45 void SetAssociatedApplications(AssociatedApplicationsT&& value) { m_associatedApplicationsHasBeenSet = true; m_associatedApplications = std::forward<AssociatedApplicationsT>(value); }
46 template<typename AssociatedApplicationsT = Aws::Vector<AssociatedApplication>>
47 GetServerDetailsResult& WithAssociatedApplications(AssociatedApplicationsT&& value) { SetAssociatedApplications(std::forward<AssociatedApplicationsT>(value)); return *this;}
48 template<typename AssociatedApplicationsT = AssociatedApplication>
49 GetServerDetailsResult& AddAssociatedApplications(AssociatedApplicationsT&& value) { m_associatedApplicationsHasBeenSet = true; m_associatedApplications.emplace_back(std::forward<AssociatedApplicationsT>(value)); return *this; }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 GetServerDetailsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
68 inline const ServerDetail& GetServerDetail() const { return m_serverDetail; }
69 template<typename ServerDetailT = ServerDetail>
70 void SetServerDetail(ServerDetailT&& value) { m_serverDetailHasBeenSet = true; m_serverDetail = std::forward<ServerDetailT>(value); }
71 template<typename ServerDetailT = ServerDetail>
72 GetServerDetailsResult& WithServerDetail(ServerDetailT&& value) { SetServerDetail(std::forward<ServerDetailT>(value)); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template<typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
80 template<typename RequestIdT = Aws::String>
81 GetServerDetailsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
83 private:
84
85 Aws::Vector<AssociatedApplication> m_associatedApplications;
86 bool m_associatedApplicationsHasBeenSet = false;
87
88 Aws::String m_nextToken;
89 bool m_nextTokenHasBeenSet = false;
90
91 ServerDetail m_serverDetail;
92 bool m_serverDetailHasBeenSet = false;
93
94 Aws::String m_requestId;
95 bool m_requestIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace MigrationHubStrategyRecommendations
100} // namespace Aws
GetServerDetailsResult & AddAssociatedApplications(AssociatedApplicationsT &&value)
GetServerDetailsResult & WithAssociatedApplications(AssociatedApplicationsT &&value)
const Aws::Vector< AssociatedApplication > & GetAssociatedApplications() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult()=default
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetServerDetailsResult & operator=(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