AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetRightsizingRecommendationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/RightsizingRecommendation.h>
9#include <aws/ce/model/RightsizingRecommendationConfiguration.h>
10#include <aws/ce/model/RightsizingRecommendationMetadata.h>
11#include <aws/ce/model/RightsizingRecommendationSummary.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CostExplorer {
27namespace Model {
29 public:
30 AWS_COSTEXPLORER_API GetRightsizingRecommendationResult() = default;
34
36
39 inline const RightsizingRecommendationMetadata& GetMetadata() const { return m_metadata; }
40 template <typename MetadataT = RightsizingRecommendationMetadata>
41 void SetMetadata(MetadataT&& value) {
42 m_metadataHasBeenSet = true;
43 m_metadata = std::forward<MetadataT>(value);
44 }
45 template <typename MetadataT = RightsizingRecommendationMetadata>
47 SetMetadata(std::forward<MetadataT>(value));
48 return *this;
49 }
51
53
56 inline const RightsizingRecommendationSummary& GetSummary() const { return m_summary; }
57 template <typename SummaryT = RightsizingRecommendationSummary>
58 void SetSummary(SummaryT&& value) {
59 m_summaryHasBeenSet = true;
60 m_summary = std::forward<SummaryT>(value);
61 }
62 template <typename SummaryT = RightsizingRecommendationSummary>
64 SetSummary(std::forward<SummaryT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<RightsizingRecommendation>& GetRightsizingRecommendations() const { return m_rightsizingRecommendations; }
74 template <typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
75 void SetRightsizingRecommendations(RightsizingRecommendationsT&& value) {
76 m_rightsizingRecommendationsHasBeenSet = true;
77 m_rightsizingRecommendations = std::forward<RightsizingRecommendationsT>(value);
78 }
79 template <typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
81 SetRightsizingRecommendations(std::forward<RightsizingRecommendationsT>(value));
82 return *this;
83 }
84 template <typename RightsizingRecommendationsT = RightsizingRecommendation>
86 m_rightsizingRecommendationsHasBeenSet = true;
87 m_rightsizingRecommendations.emplace_back(std::forward<RightsizingRecommendationsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
97 template <typename NextPageTokenT = Aws::String>
98 void SetNextPageToken(NextPageTokenT&& value) {
99 m_nextPageTokenHasBeenSet = true;
100 m_nextPageToken = std::forward<NextPageTokenT>(value);
101 }
102 template <typename NextPageTokenT = Aws::String>
104 SetNextPageToken(std::forward<NextPageTokenT>(value));
105 return *this;
106 }
108
110
117 inline const RightsizingRecommendationConfiguration& GetConfiguration() const { return m_configuration; }
118 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
119 void SetConfiguration(ConfigurationT&& value) {
120 m_configurationHasBeenSet = true;
121 m_configuration = std::forward<ConfigurationT>(value);
122 }
123 template <typename ConfigurationT = RightsizingRecommendationConfiguration>
125 SetConfiguration(std::forward<ConfigurationT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 private:
146
148
149 Aws::Vector<RightsizingRecommendation> m_rightsizingRecommendations;
150
151 Aws::String m_nextPageToken;
152
154
155 Aws::String m_requestId;
156 bool m_metadataHasBeenSet = false;
157 bool m_summaryHasBeenSet = false;
158 bool m_rightsizingRecommendationsHasBeenSet = false;
159 bool m_nextPageTokenHasBeenSet = false;
160 bool m_configurationHasBeenSet = false;
161 bool m_requestIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace CostExplorer
166} // namespace Aws
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult()=default
const Aws::Vector< RightsizingRecommendation > & GetRightsizingRecommendations() const
GetRightsizingRecommendationResult & WithRightsizingRecommendations(RightsizingRecommendationsT &&value)
GetRightsizingRecommendationResult & AddRightsizingRecommendations(RightsizingRecommendationsT &&value)
GetRightsizingRecommendationResult & WithNextPageToken(NextPageTokenT &&value)
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRightsizingRecommendationResult & WithSummary(SummaryT &&value)
const RightsizingRecommendationConfiguration & GetConfiguration() const
GetRightsizingRecommendationResult & WithRequestId(RequestIdT &&value)
GetRightsizingRecommendationResult & WithMetadata(MetadataT &&value)
GetRightsizingRecommendationResult & WithConfiguration(ConfigurationT &&value)
AWS_COSTEXPLORER_API GetRightsizingRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue