AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetRightsizingRecommendationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/RightsizingRecommendationMetadata.h>
9#include <aws/ce/model/RightsizingRecommendationSummary.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ce/model/RightsizingRecommendationConfiguration.h>
13#include <aws/ce/model/RightsizingRecommendation.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CostExplorer
29{
30namespace Model
31{
33 {
34 public:
35 AWS_COSTEXPLORER_API GetRightsizingRecommendationResult() = default;
38
39
41
44 inline const RightsizingRecommendationMetadata& GetMetadata() const { return m_metadata; }
45 template<typename MetadataT = RightsizingRecommendationMetadata>
46 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
47 template<typename MetadataT = RightsizingRecommendationMetadata>
48 GetRightsizingRecommendationResult& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
50
52
55 inline const RightsizingRecommendationSummary& GetSummary() const { return m_summary; }
56 template<typename SummaryT = RightsizingRecommendationSummary>
57 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
58 template<typename SummaryT = RightsizingRecommendationSummary>
59 GetRightsizingRecommendationResult& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
61
63
66 inline const Aws::Vector<RightsizingRecommendation>& GetRightsizingRecommendations() const { return m_rightsizingRecommendations; }
67 template<typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
68 void SetRightsizingRecommendations(RightsizingRecommendationsT&& value) { m_rightsizingRecommendationsHasBeenSet = true; m_rightsizingRecommendations = std::forward<RightsizingRecommendationsT>(value); }
69 template<typename RightsizingRecommendationsT = Aws::Vector<RightsizingRecommendation>>
70 GetRightsizingRecommendationResult& WithRightsizingRecommendations(RightsizingRecommendationsT&& value) { SetRightsizingRecommendations(std::forward<RightsizingRecommendationsT>(value)); return *this;}
71 template<typename RightsizingRecommendationsT = RightsizingRecommendation>
72 GetRightsizingRecommendationResult& AddRightsizingRecommendations(RightsizingRecommendationsT&& value) { m_rightsizingRecommendationsHasBeenSet = true; m_rightsizingRecommendations.emplace_back(std::forward<RightsizingRecommendationsT>(value)); return *this; }
74
76
79 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
80 template<typename NextPageTokenT = Aws::String>
81 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
82 template<typename NextPageTokenT = Aws::String>
83 GetRightsizingRecommendationResult& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
85
87
94 inline const RightsizingRecommendationConfiguration& GetConfiguration() const { return m_configuration; }
95 template<typename ConfigurationT = RightsizingRecommendationConfiguration>
96 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
97 template<typename ConfigurationT = RightsizingRecommendationConfiguration>
98 GetRightsizingRecommendationResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 GetRightsizingRecommendationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109 private:
110
112 bool m_metadataHasBeenSet = false;
113
115 bool m_summaryHasBeenSet = false;
116
117 Aws::Vector<RightsizingRecommendation> m_rightsizingRecommendations;
118 bool m_rightsizingRecommendationsHasBeenSet = false;
119
120 Aws::String m_nextPageToken;
121 bool m_nextPageTokenHasBeenSet = false;
122
124 bool m_configurationHasBeenSet = false;
125
126 Aws::String m_requestId;
127 bool m_requestIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CostExplorer
132} // 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