AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAutoScalingGroupRecommendationsResult.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/AutoScalingGroupRecommendation.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 GetAutoScalingGroupRecommendationsResult();
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); }
49 inline GetAutoScalingGroupRecommendationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
50 inline GetAutoScalingGroupRecommendationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
52
54
57 inline const Aws::Vector<AutoScalingGroupRecommendation>& GetAutoScalingGroupRecommendations() const{ return m_autoScalingGroupRecommendations; }
58 inline void SetAutoScalingGroupRecommendations(const Aws::Vector<AutoScalingGroupRecommendation>& value) { m_autoScalingGroupRecommendations = value; }
59 inline void SetAutoScalingGroupRecommendations(Aws::Vector<AutoScalingGroupRecommendation>&& value) { m_autoScalingGroupRecommendations = std::move(value); }
62 inline GetAutoScalingGroupRecommendationsResult& AddAutoScalingGroupRecommendations(const AutoScalingGroupRecommendation& value) { m_autoScalingGroupRecommendations.push_back(value); return *this; }
63 inline GetAutoScalingGroupRecommendationsResult& AddAutoScalingGroupRecommendations(AutoScalingGroupRecommendation&& value) { m_autoScalingGroupRecommendations.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 GetAutoScalingGroupRecommendationsResult& AddErrors(const GetRecommendationError& value) { m_errors.push_back(value); return *this; }
78 inline GetAutoScalingGroupRecommendationsResult& 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); }
88 inline GetAutoScalingGroupRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline GetAutoScalingGroupRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
93 Aws::String m_nextToken;
94
95 Aws::Vector<AutoScalingGroupRecommendation> m_autoScalingGroupRecommendations;
96
98
99 Aws::String m_requestId;
100 };
101
102} // namespace Model
103} // namespace ComputeOptimizer
104} // namespace Aws
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutoScalingGroupRecommendationsResult & AddAutoScalingGroupRecommendations(AutoScalingGroupRecommendation &&value)
GetAutoScalingGroupRecommendationsResult & WithErrors(Aws::Vector< GetRecommendationError > &&value)
const Aws::Vector< AutoScalingGroupRecommendation > & GetAutoScalingGroupRecommendations() const
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutoScalingGroupRecommendationsResult & AddAutoScalingGroupRecommendations(const AutoScalingGroupRecommendation &value)
void SetAutoScalingGroupRecommendations(const Aws::Vector< AutoScalingGroupRecommendation > &value)
GetAutoScalingGroupRecommendationsResult & WithNextToken(Aws::String &&value)
GetAutoScalingGroupRecommendationsResult & WithRequestId(Aws::String &&value)
GetAutoScalingGroupRecommendationsResult & WithNextToken(const Aws::String &value)
GetAutoScalingGroupRecommendationsResult & AddErrors(const GetRecommendationError &value)
GetAutoScalingGroupRecommendationsResult & WithAutoScalingGroupRecommendations(const Aws::Vector< AutoScalingGroupRecommendation > &value)
GetAutoScalingGroupRecommendationsResult & AddErrors(GetRecommendationError &&value)
void SetAutoScalingGroupRecommendations(Aws::Vector< AutoScalingGroupRecommendation > &&value)
GetAutoScalingGroupRecommendationsResult & WithRequestId(const Aws::String &value)
GetAutoScalingGroupRecommendationsResult & WithErrors(const Aws::Vector< GetRecommendationError > &value)
GetAutoScalingGroupRecommendationsResult & WithAutoScalingGroupRecommendations(Aws::Vector< AutoScalingGroupRecommendation > &&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