AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetLicenseRecommendationsResult.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/compute-optimizer/model/LicenseRecommendation.h>
11#include <aws/compute-optimizer/model/GetRecommendationError.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 ComputeOptimizer
27{
28namespace Model
29{
31 {
32 public:
33 AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult() = default;
36
37
39
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 template<typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
46 template<typename NextTokenT = Aws::String>
47 GetLicenseRecommendationsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
49
51
54 inline const Aws::Vector<LicenseRecommendation>& GetLicenseRecommendations() const { return m_licenseRecommendations; }
55 template<typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
56 void SetLicenseRecommendations(LicenseRecommendationsT&& value) { m_licenseRecommendationsHasBeenSet = true; m_licenseRecommendations = std::forward<LicenseRecommendationsT>(value); }
57 template<typename LicenseRecommendationsT = Aws::Vector<LicenseRecommendation>>
58 GetLicenseRecommendationsResult& WithLicenseRecommendations(LicenseRecommendationsT&& value) { SetLicenseRecommendations(std::forward<LicenseRecommendationsT>(value)); return *this;}
59 template<typename LicenseRecommendationsT = LicenseRecommendation>
60 GetLicenseRecommendationsResult& AddLicenseRecommendations(LicenseRecommendationsT&& value) { m_licenseRecommendationsHasBeenSet = true; m_licenseRecommendations.emplace_back(std::forward<LicenseRecommendationsT>(value)); return *this; }
62
64
67 inline const Aws::Vector<GetRecommendationError>& GetErrors() const { return m_errors; }
68 template<typename ErrorsT = Aws::Vector<GetRecommendationError>>
69 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
70 template<typename ErrorsT = Aws::Vector<GetRecommendationError>>
71 GetLicenseRecommendationsResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
72 template<typename ErrorsT = GetRecommendationError>
73 GetLicenseRecommendationsResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 GetLicenseRecommendationsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
86 Aws::String m_nextToken;
87 bool m_nextTokenHasBeenSet = false;
88
89 Aws::Vector<LicenseRecommendation> m_licenseRecommendations;
90 bool m_licenseRecommendationsHasBeenSet = false;
91
93 bool m_errorsHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ComputeOptimizer
101} // 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