AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GenerationSummary.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/GenerationStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostExplorer {
21namespace Model {
22
30 public:
31 AWS_COSTEXPLORER_API GenerationSummary() = default;
32 AWS_COSTEXPLORER_API GenerationSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTEXPLORER_API GenerationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
41 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
42 template <typename RecommendationIdT = Aws::String>
43 void SetRecommendationId(RecommendationIdT&& value) {
44 m_recommendationIdHasBeenSet = true;
45 m_recommendationId = std::forward<RecommendationIdT>(value);
46 }
47 template <typename RecommendationIdT = Aws::String>
48 GenerationSummary& WithRecommendationId(RecommendationIdT&& value) {
49 SetRecommendationId(std::forward<RecommendationIdT>(value));
50 return *this;
51 }
53
55
59 inline GenerationStatus GetGenerationStatus() const { return m_generationStatus; }
60 inline bool GenerationStatusHasBeenSet() const { return m_generationStatusHasBeenSet; }
62 m_generationStatusHasBeenSet = true;
63 m_generationStatus = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::String& GetGenerationStartedTime() const { return m_generationStartedTime; }
76 inline bool GenerationStartedTimeHasBeenSet() const { return m_generationStartedTimeHasBeenSet; }
77 template <typename GenerationStartedTimeT = Aws::String>
78 void SetGenerationStartedTime(GenerationStartedTimeT&& value) {
79 m_generationStartedTimeHasBeenSet = true;
80 m_generationStartedTime = std::forward<GenerationStartedTimeT>(value);
81 }
82 template <typename GenerationStartedTimeT = Aws::String>
83 GenerationSummary& WithGenerationStartedTime(GenerationStartedTimeT&& value) {
84 SetGenerationStartedTime(std::forward<GenerationStartedTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetGenerationCompletionTime() const { return m_generationCompletionTime; }
94 inline bool GenerationCompletionTimeHasBeenSet() const { return m_generationCompletionTimeHasBeenSet; }
95 template <typename GenerationCompletionTimeT = Aws::String>
96 void SetGenerationCompletionTime(GenerationCompletionTimeT&& value) {
97 m_generationCompletionTimeHasBeenSet = true;
98 m_generationCompletionTime = std::forward<GenerationCompletionTimeT>(value);
99 }
100 template <typename GenerationCompletionTimeT = Aws::String>
101 GenerationSummary& WithGenerationCompletionTime(GenerationCompletionTimeT&& value) {
102 SetGenerationCompletionTime(std::forward<GenerationCompletionTimeT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetEstimatedCompletionTime() const { return m_estimatedCompletionTime; }
113 inline bool EstimatedCompletionTimeHasBeenSet() const { return m_estimatedCompletionTimeHasBeenSet; }
114 template <typename EstimatedCompletionTimeT = Aws::String>
115 void SetEstimatedCompletionTime(EstimatedCompletionTimeT&& value) {
116 m_estimatedCompletionTimeHasBeenSet = true;
117 m_estimatedCompletionTime = std::forward<EstimatedCompletionTimeT>(value);
118 }
119 template <typename EstimatedCompletionTimeT = Aws::String>
120 GenerationSummary& WithEstimatedCompletionTime(EstimatedCompletionTimeT&& value) {
121 SetEstimatedCompletionTime(std::forward<EstimatedCompletionTimeT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_recommendationId;
127
129
130 Aws::String m_generationStartedTime;
131
132 Aws::String m_generationCompletionTime;
133
134 Aws::String m_estimatedCompletionTime;
135 bool m_recommendationIdHasBeenSet = false;
136 bool m_generationStatusHasBeenSet = false;
137 bool m_generationStartedTimeHasBeenSet = false;
138 bool m_generationCompletionTimeHasBeenSet = false;
139 bool m_estimatedCompletionTimeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace CostExplorer
144} // namespace Aws
AWS_COSTEXPLORER_API GenerationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GenerationSummary & WithGenerationCompletionTime(GenerationCompletionTimeT &&value)
void SetGenerationCompletionTime(GenerationCompletionTimeT &&value)
void SetGenerationStartedTime(GenerationStartedTimeT &&value)
void SetRecommendationId(RecommendationIdT &&value)
const Aws::String & GetGenerationCompletionTime() const
const Aws::String & GetRecommendationId() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGenerationStartedTime() const
const Aws::String & GetEstimatedCompletionTime() const
GenerationSummary & WithGenerationStatus(GenerationStatus value)
GenerationSummary & WithGenerationStartedTime(GenerationStartedTimeT &&value)
AWS_COSTEXPLORER_API GenerationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API GenerationSummary()=default
GenerationSummary & WithEstimatedCompletionTime(EstimatedCompletionTimeT &&value)
void SetGenerationStatus(GenerationStatus value)
GenerationSummary & WithRecommendationId(RecommendationIdT &&value)
void SetEstimatedCompletionTime(EstimatedCompletionTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue