AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecommendationExportJob.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/compute-optimizer/model/ExportDestination.h>
10#include <aws/compute-optimizer/model/ResourceType.h>
11#include <aws/compute-optimizer/model/JobStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ComputeOptimizer
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob() = default;
43 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COMPUTEOPTIMIZER_API RecommendationExportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetJobId() const { return m_jobId; }
53 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
54 template<typename JobIdT = Aws::String>
55 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
56 template<typename JobIdT = Aws::String>
57 RecommendationExportJob& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
68 template<typename DestinationT = ExportDestination>
69 RecommendationExportJob& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
71
73
76 inline ResourceType GetResourceType() const { return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81
83
86 inline JobStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline RecommendationExportJob& WithStatus(JobStatus value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
97 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
98 template<typename CreationTimestampT = Aws::Utils::DateTime>
99 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
100 template<typename CreationTimestampT = Aws::Utils::DateTime>
101 RecommendationExportJob& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
109 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
110 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
111 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
112 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
113 RecommendationExportJob& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
115
117
120 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
121 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
122 template<typename FailureReasonT = Aws::String>
123 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
124 template<typename FailureReasonT = Aws::String>
125 RecommendationExportJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
127 private:
128
129 Aws::String m_jobId;
130 bool m_jobIdHasBeenSet = false;
131
132 ExportDestination m_destination;
133 bool m_destinationHasBeenSet = false;
134
135 ResourceType m_resourceType{ResourceType::NOT_SET};
136 bool m_resourceTypeHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140
141 Aws::Utils::DateTime m_creationTimestamp{};
142 bool m_creationTimestampHasBeenSet = false;
143
144 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
145 bool m_lastUpdatedTimestampHasBeenSet = false;
146
147 Aws::String m_failureReason;
148 bool m_failureReasonHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ComputeOptimizer
153} // 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