AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
43 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
45 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
46 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
47 inline GetLicenseRecommendationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
48 inline GetLicenseRecommendationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
49 inline GetLicenseRecommendationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
51
53
56 inline const Aws::Vector<LicenseRecommendation>& GetLicenseRecommendations() const{ return m_licenseRecommendations; }
57 inline void SetLicenseRecommendations(const Aws::Vector<LicenseRecommendation>& value) { m_licenseRecommendations = value; }
58 inline void SetLicenseRecommendations(Aws::Vector<LicenseRecommendation>&& value) { m_licenseRecommendations = std::move(value); }
61 inline GetLicenseRecommendationsResult& AddLicenseRecommendations(const LicenseRecommendation& value) { m_licenseRecommendations.push_back(value); return *this; }
62 inline GetLicenseRecommendationsResult& AddLicenseRecommendations(LicenseRecommendation&& value) { m_licenseRecommendations.push_back(std::move(value)); return *this; }
64
66
69 inline const Aws::Vector<GetRecommendationError>& GetErrors() const{ return m_errors; }
70 inline void SetErrors(const Aws::Vector<GetRecommendationError>& value) { m_errors = value; }
71 inline void SetErrors(Aws::Vector<GetRecommendationError>&& value) { m_errors = std::move(value); }
74 inline GetLicenseRecommendationsResult& AddErrors(const GetRecommendationError& value) { m_errors.push_back(value); return *this; }
75 inline GetLicenseRecommendationsResult& AddErrors(GetRecommendationError&& value) { m_errors.push_back(std::move(value)); return *this; }
77
79
80 inline const Aws::String& GetRequestId() const{ return m_requestId; }
81 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
82 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
83 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
84 inline GetLicenseRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
85 inline GetLicenseRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 inline GetLicenseRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 private:
89
90 Aws::String m_nextToken;
91
92 Aws::Vector<LicenseRecommendation> m_licenseRecommendations;
93
95
96 Aws::String m_requestId;
97 };
98
99} // namespace Model
100} // namespace ComputeOptimizer
101} // namespace Aws
GetLicenseRecommendationsResult & WithNextToken(Aws::String &&value)
GetLicenseRecommendationsResult & WithErrors(const Aws::Vector< GetRecommendationError > &value)
void SetLicenseRecommendations(Aws::Vector< LicenseRecommendation > &&value)
void SetLicenseRecommendations(const Aws::Vector< LicenseRecommendation > &value)
const Aws::Vector< GetRecommendationError > & GetErrors() const
GetLicenseRecommendationsResult & AddErrors(const GetRecommendationError &value)
GetLicenseRecommendationsResult & WithRequestId(Aws::String &&value)
GetLicenseRecommendationsResult & AddLicenseRecommendations(const LicenseRecommendation &value)
GetLicenseRecommendationsResult & WithErrors(Aws::Vector< GetRecommendationError > &&value)
GetLicenseRecommendationsResult & AddErrors(GetRecommendationError &&value)
void SetErrors(Aws::Vector< GetRecommendationError > &&value)
GetLicenseRecommendationsResult & WithLicenseRecommendations(const Aws::Vector< LicenseRecommendation > &value)
GetLicenseRecommendationsResult & WithNextToken(const char *value)
GetLicenseRecommendationsResult & WithRequestId(const char *value)
GetLicenseRecommendationsResult & WithLicenseRecommendations(Aws::Vector< LicenseRecommendation > &&value)
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLicenseRecommendationsResult & AddLicenseRecommendations(LicenseRecommendation &&value)
GetLicenseRecommendationsResult & WithRequestId(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API GetLicenseRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetErrors(const Aws::Vector< GetRecommendationError > &value)
GetLicenseRecommendationsResult & WithNextToken(const Aws::String &value)
const Aws::Vector< LicenseRecommendation > & GetLicenseRecommendations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue