AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetLicenseRecommendationsResult.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/GetRecommendationError.h>
9#include <aws/compute-optimizer/model/LicenseRecommendation.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ComputeOptimizer {
26namespace Model {
28 public:
29 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult() = default;
31 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult& operator=(
33
35
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 template <typename NextTokenT = Aws::String>
41 void SetNextToken(NextTokenT&& value) {
42 m_nextTokenHasBeenSet = true;
43 m_nextToken = std::forward<NextTokenT>(value);
44 }
45 template <typename NextTokenT = Aws::String>
47 SetNextToken(std::forward<NextTokenT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<LicenseRecommendation>& GetLicenseRecommendations() const { return m_licenseRecommendations; }
57 template <typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
58 void SetLicenseRecommendations(LicenseRecommendationsT&& value) {
59 m_licenseRecommendationsHasBeenSet = true;
60 m_licenseRecommendations = std::forward<LicenseRecommendationsT>(value);
61 }
62 template <typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
64 SetLicenseRecommendations(std::forward<LicenseRecommendationsT>(value));
65 return *this;
66 }
67 template <typename LicenseRecommendationsT = LicenseRecommendation>
69 m_licenseRecommendationsHasBeenSet = true;
70 m_licenseRecommendations.emplace_back(std::forward<LicenseRecommendationsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<GetRecommendationError>& GetErrors() const { return m_errors; }
80 template <typename ErrorsT = Aws::Vector<GetRecommendationError>>
81 void SetErrors(ErrorsT&& value) {
82 m_errorsHasBeenSet = true;
83 m_errors = std::forward<ErrorsT>(value);
84 }
85 template <typename ErrorsT = Aws::Vector<GetRecommendationError>>
87 SetErrors(std::forward<ErrorsT>(value));
88 return *this;
89 }
90 template <typename ErrorsT = GetRecommendationError>
92 m_errorsHasBeenSet = true;
93 m_errors.emplace_back(std::forward<ErrorsT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::String m_nextToken;
116
117 Aws::Vector<LicenseRecommendation> m_licenseRecommendations;
118
120
121 Aws::String m_requestId;
122 Aws::Http::HttpResponseCode m_HttpResponseCode;
123 bool m_nextTokenHasBeenSet = false;
124 bool m_licenseRecommendationsHasBeenSet = false;
125 bool m_errorsHasBeenSet = false;
126 bool m_requestIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ComputeOptimizer
131} // namespace Aws
GetLicenseRecommendationsResult & AddLicenseRecommendations(LicenseRecommendationsT &&value)
const Aws::Vector< GetRecommendationError > & GetErrors() const
GetLicenseRecommendationsResult & WithNextToken(NextTokenT &&value)
GetLicenseRecommendationsResult & WithLicenseRecommendations(LicenseRecommendationsT &&value)
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLicenseRecommendationsResult & WithRequestId(RequestIdT &&value)
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< LicenseRecommendation > & GetLicenseRecommendations() const
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue