AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetEC2InstanceRecommendationsResult.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/InstanceRecommendation.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 GetEC2InstanceRecommendationsResult();
36
37
39
44 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
46 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
47 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
48 inline GetEC2InstanceRecommendationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
49 inline GetEC2InstanceRecommendationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
50 inline GetEC2InstanceRecommendationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
52
54
57 inline const Aws::Vector<InstanceRecommendation>& GetInstanceRecommendations() const{ return m_instanceRecommendations; }
58 inline void SetInstanceRecommendations(const Aws::Vector<InstanceRecommendation>& value) { m_instanceRecommendations = value; }
59 inline void SetInstanceRecommendations(Aws::Vector<InstanceRecommendation>&& value) { m_instanceRecommendations = std::move(value); }
62 inline GetEC2InstanceRecommendationsResult& AddInstanceRecommendations(const InstanceRecommendation& value) { m_instanceRecommendations.push_back(value); return *this; }
63 inline GetEC2InstanceRecommendationsResult& AddInstanceRecommendations(InstanceRecommendation&& value) { m_instanceRecommendations.push_back(std::move(value)); return *this; }
65
67
72 inline const Aws::Vector<GetRecommendationError>& GetErrors() const{ return m_errors; }
73 inline void SetErrors(const Aws::Vector<GetRecommendationError>& value) { m_errors = value; }
74 inline void SetErrors(Aws::Vector<GetRecommendationError>&& value) { m_errors = std::move(value); }
77 inline GetEC2InstanceRecommendationsResult& AddErrors(const GetRecommendationError& value) { m_errors.push_back(value); return *this; }
78 inline GetEC2InstanceRecommendationsResult& AddErrors(GetRecommendationError&& value) { m_errors.push_back(std::move(value)); return *this; }
80
82
83 inline const Aws::String& GetRequestId() const{ return m_requestId; }
84 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
85 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
86 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
87 inline GetEC2InstanceRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
88 inline GetEC2InstanceRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline GetEC2InstanceRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
93 Aws::String m_nextToken;
94
95 Aws::Vector<InstanceRecommendation> m_instanceRecommendations;
96
98
99 Aws::String m_requestId;
100 };
101
102} // namespace Model
103} // namespace ComputeOptimizer
104} // namespace Aws
GetEC2InstanceRecommendationsResult & WithInstanceRecommendations(Aws::Vector< InstanceRecommendation > &&value)
void SetInstanceRecommendations(Aws::Vector< InstanceRecommendation > &&value)
GetEC2InstanceRecommendationsResult & WithRequestId(const char *value)
AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEC2InstanceRecommendationsResult & AddInstanceRecommendations(InstanceRecommendation &&value)
GetEC2InstanceRecommendationsResult & WithErrors(const Aws::Vector< GetRecommendationError > &value)
GetEC2InstanceRecommendationsResult & AddErrors(GetRecommendationError &&value)
const Aws::Vector< InstanceRecommendation > & GetInstanceRecommendations() const
GetEC2InstanceRecommendationsResult & WithNextToken(Aws::String &&value)
GetEC2InstanceRecommendationsResult & WithRequestId(const Aws::String &value)
GetEC2InstanceRecommendationsResult & WithRequestId(Aws::String &&value)
GetEC2InstanceRecommendationsResult & WithNextToken(const Aws::String &value)
GetEC2InstanceRecommendationsResult & AddInstanceRecommendations(const InstanceRecommendation &value)
void SetInstanceRecommendations(const Aws::Vector< InstanceRecommendation > &value)
GetEC2InstanceRecommendationsResult & WithErrors(Aws::Vector< GetRecommendationError > &&value)
AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEC2InstanceRecommendationsResult & WithNextToken(const char *value)
GetEC2InstanceRecommendationsResult & AddErrors(const GetRecommendationError &value)
GetEC2InstanceRecommendationsResult & WithInstanceRecommendations(const Aws::Vector< InstanceRecommendation > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue