AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RecommendationExportJob.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ExportDestination.h>
9#include <aws/compute-optimizer/model/JobStatus.h>
10#include <aws/compute-optimizer/model/ResourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer {
24namespace Model {
25
36 public:
37 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob() = default;
38 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetJobId() const { return m_jobId; }
47 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
48 template <typename JobIdT = Aws::String>
49 void SetJobId(JobIdT&& value) {
50 m_jobIdHasBeenSet = true;
51 m_jobId = std::forward<JobIdT>(value);
52 }
53 template <typename JobIdT = Aws::String>
55 SetJobId(std::forward<JobIdT>(value));
56 return *this;
57 }
59
61
64 inline const ExportDestination& GetDestination() const { return m_destination; }
65 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
66 template <typename DestinationT = ExportDestination>
67 void SetDestination(DestinationT&& value) {
68 m_destinationHasBeenSet = true;
69 m_destination = std::forward<DestinationT>(value);
70 }
71 template <typename DestinationT = ExportDestination>
73 SetDestination(std::forward<DestinationT>(value));
74 return *this;
75 }
77
79
82 inline ResourceType GetResourceType() const { return m_resourceType; }
83 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
84 inline void SetResourceType(ResourceType value) {
85 m_resourceTypeHasBeenSet = true;
86 m_resourceType = value;
87 }
89 SetResourceType(value);
90 return *this;
91 }
93
95
98 inline JobStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(JobStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
115 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
116 template <typename CreationTimestampT = Aws::Utils::DateTime>
117 void SetCreationTimestamp(CreationTimestampT&& value) {
118 m_creationTimestampHasBeenSet = true;
119 m_creationTimestamp = std::forward<CreationTimestampT>(value);
120 }
121 template <typename CreationTimestampT = Aws::Utils::DateTime>
122 RecommendationExportJob& WithCreationTimestamp(CreationTimestampT&& value) {
123 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
133 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
134 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
135 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
136 m_lastUpdatedTimestampHasBeenSet = true;
137 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
138 }
139 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
140 RecommendationExportJob& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
141 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
151 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
152 template <typename FailureReasonT = Aws::String>
153 void SetFailureReason(FailureReasonT&& value) {
154 m_failureReasonHasBeenSet = true;
155 m_failureReason = std::forward<FailureReasonT>(value);
156 }
157 template <typename FailureReasonT = Aws::String>
159 SetFailureReason(std::forward<FailureReasonT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_jobId;
165
166 ExportDestination m_destination;
167
168 ResourceType m_resourceType{ResourceType::NOT_SET};
169
171
172 Aws::Utils::DateTime m_creationTimestamp{};
173
174 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
175
176 Aws::String m_failureReason;
177 bool m_jobIdHasBeenSet = false;
178 bool m_destinationHasBeenSet = false;
179 bool m_resourceTypeHasBeenSet = false;
180 bool m_statusHasBeenSet = false;
181 bool m_creationTimestampHasBeenSet = false;
182 bool m_lastUpdatedTimestampHasBeenSet = false;
183 bool m_failureReasonHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace ComputeOptimizer
188} // namespace Aws
AWS_COMPUTEOPTIMIZER_API RecommendationExportJob()=default
RecommendationExportJob & WithStatus(JobStatus value)
RecommendationExportJob & WithCreationTimestamp(CreationTimestampT &&value)
RecommendationExportJob & WithResourceType(ResourceType value)
AWS_COMPUTEOPTIMIZER_API RecommendationExportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationExportJob & WithDestination(DestinationT &&value)
RecommendationExportJob & WithFailureReason(FailureReasonT &&value)
RecommendationExportJob & WithJobId(JobIdT &&value)
RecommendationExportJob & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API RecommendationExportJob(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue