AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer {
25namespace Model {
27 public:
28 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult() = default;
30 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult& operator=(
32
34
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<LicenseRecommendation>& GetLicenseRecommendations() const { return m_licenseRecommendations; }
56 template <typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
57 void SetLicenseRecommendations(LicenseRecommendationsT&& value) {
58 m_licenseRecommendationsHasBeenSet = true;
59 m_licenseRecommendations = std::forward<LicenseRecommendationsT>(value);
60 }
61 template <typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
63 SetLicenseRecommendations(std::forward<LicenseRecommendationsT>(value));
64 return *this;
65 }
66 template <typename LicenseRecommendationsT = LicenseRecommendation>
68 m_licenseRecommendationsHasBeenSet = true;
69 m_licenseRecommendations.emplace_back(std::forward<LicenseRecommendationsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<GetRecommendationError>& GetErrors() const { return m_errors; }
79 template <typename ErrorsT = Aws::Vector<GetRecommendationError>>
80 void SetErrors(ErrorsT&& value) {
81 m_errorsHasBeenSet = true;
82 m_errors = std::forward<ErrorsT>(value);
83 }
84 template <typename ErrorsT = Aws::Vector<GetRecommendationError>>
86 SetErrors(std::forward<ErrorsT>(value));
87 return *this;
88 }
89 template <typename ErrorsT = GetRecommendationError>
91 m_errorsHasBeenSet = true;
92 m_errors.emplace_back(std::forward<ErrorsT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_nextToken;
113
114 Aws::Vector<LicenseRecommendation> m_licenseRecommendations;
115
117
118 Aws::String m_requestId;
119 bool m_nextTokenHasBeenSet = false;
120 bool m_licenseRecommendationsHasBeenSet = false;
121 bool m_errorsHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace ComputeOptimizer
127} // 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