AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
36
37
39
44 inline const Aws::String& GetNextToken() const { return m_nextToken; }
45 template<typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
47 template<typename NextTokenT = Aws::String>
48 GetAutoScalingGroupRecommendationsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
50
52
55 inline const Aws::Vector<AutoScalingGroupRecommendation>& GetAutoScalingGroupRecommendations() const { return m_autoScalingGroupRecommendations; }
56 template<typename AutoScalingGroupRecommendationsT = Aws::Vector<AutoScalingGroupRecommendation>>
57 void SetAutoScalingGroupRecommendations(AutoScalingGroupRecommendationsT&& value) { m_autoScalingGroupRecommendationsHasBeenSet = true; m_autoScalingGroupRecommendations = std::forward<AutoScalingGroupRecommendationsT>(value); }
58 template<typename AutoScalingGroupRecommendationsT = Aws::Vector<AutoScalingGroupRecommendation>>
59 GetAutoScalingGroupRecommendationsResult& WithAutoScalingGroupRecommendations(AutoScalingGroupRecommendationsT&& value) { SetAutoScalingGroupRecommendations(std::forward<AutoScalingGroupRecommendationsT>(value)); return *this;}
60 template<typename AutoScalingGroupRecommendationsT = AutoScalingGroupRecommendation>
61 GetAutoScalingGroupRecommendationsResult& AddAutoScalingGroupRecommendations(AutoScalingGroupRecommendationsT&& value) { m_autoScalingGroupRecommendationsHasBeenSet = true; m_autoScalingGroupRecommendations.emplace_back(std::forward<AutoScalingGroupRecommendationsT>(value)); return *this; }
63
65
70 inline const Aws::Vector<GetRecommendationError>& GetErrors() const { return m_errors; }
71 template<typename ErrorsT = Aws::Vector<GetRecommendationError>>
72 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
73 template<typename ErrorsT = Aws::Vector<GetRecommendationError>>
74 GetAutoScalingGroupRecommendationsResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
75 template<typename ErrorsT = GetRecommendationError>
76 GetAutoScalingGroupRecommendationsResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 GetAutoScalingGroupRecommendationsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::String m_nextToken;
90 bool m_nextTokenHasBeenSet = false;
91
92 Aws::Vector<AutoScalingGroupRecommendation> m_autoScalingGroupRecommendations;
93 bool m_autoScalingGroupRecommendationsHasBeenSet = false;
94
96 bool m_errorsHasBeenSet = false;
97
98 Aws::String m_requestId;
99 bool m_requestIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ComputeOptimizer
104} // namespace Aws
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutoScalingGroupRecommendationsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< AutoScalingGroupRecommendation > & GetAutoScalingGroupRecommendations() const
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutoScalingGroupRecommendationsResult & AddAutoScalingGroupRecommendations(AutoScalingGroupRecommendationsT &&value)
GetAutoScalingGroupRecommendationsResult & WithAutoScalingGroupRecommendations(AutoScalingGroupRecommendationsT &&value)
GetAutoScalingGroupRecommendationsResult & WithNextToken(NextTokenT &&value)
AWS_COMPUTEOPTIMIZER_API GetAutoScalingGroupRecommendationsResult()=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