AWS SDK for C++

AWS SDK for C++ Version 1.11.818

Loading...
Searching...
No Matches
ReportGenerationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/ReportGenerationStatus.h>
11#include <aws/resiliencehubv2/model/ReportOutput.h>
12#include <aws/resiliencehubv2/model/ReportType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace resiliencehubv2 {
24namespace Model {
25
32 public:
33 AWS_RESILIENCEHUBV2_API ReportGenerationResult() = default;
34 AWS_RESILIENCEHUBV2_API ReportGenerationResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API ReportGenerationResult& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ReportType GetReportType() const { return m_reportType; }
43 inline bool ReportTypeHasBeenSet() const { return m_reportTypeHasBeenSet; }
44 inline void SetReportType(ReportType value) {
45 m_reportTypeHasBeenSet = true;
46 m_reportType = value;
47 }
49 SetReportType(value);
50 return *this;
51 }
53
55
58 inline ReportGenerationStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(ReportGenerationStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
75 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
76 template <typename ServiceArnT = Aws::String>
77 void SetServiceArn(ServiceArnT&& value) {
78 m_serviceArnHasBeenSet = true;
79 m_serviceArn = std::forward<ServiceArnT>(value);
80 }
81 template <typename ServiceArnT = Aws::String>
82 ReportGenerationResult& WithServiceArn(ServiceArnT&& value) {
83 SetServiceArn(std::forward<ServiceArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
93 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
94 template <typename AssessmentIdT = Aws::String>
95 void SetAssessmentId(AssessmentIdT&& value) {
96 m_assessmentIdHasBeenSet = true;
97 m_assessmentId = std::forward<AssessmentIdT>(value);
98 }
99 template <typename AssessmentIdT = Aws::String>
100 ReportGenerationResult& WithAssessmentId(AssessmentIdT&& value) {
101 SetAssessmentId(std::forward<AssessmentIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const ReportOutput& GetReportOutput() const { return m_reportOutput; }
129 inline bool ReportOutputHasBeenSet() const { return m_reportOutputHasBeenSet; }
130 template <typename ReportOutputT = ReportOutput>
131 void SetReportOutput(ReportOutputT&& value) {
132 m_reportOutputHasBeenSet = true;
133 m_reportOutput = std::forward<ReportOutputT>(value);
134 }
135 template <typename ReportOutputT = ReportOutput>
136 ReportGenerationResult& WithReportOutput(ReportOutputT&& value) {
137 SetReportOutput(std::forward<ReportOutputT>(value));
138 return *this;
139 }
141 private:
142 ReportType m_reportType{ReportType::NOT_SET};
143
145
146 Aws::String m_serviceArn;
147
148 Aws::String m_assessmentId;
149
150 Aws::Utils::DateTime m_createdAt{};
151
152 ReportOutput m_reportOutput;
153 bool m_reportTypeHasBeenSet = false;
154 bool m_statusHasBeenSet = false;
155 bool m_serviceArnHasBeenSet = false;
156 bool m_assessmentIdHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158 bool m_reportOutputHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace resiliencehubv2
163} // namespace Aws
ReportGenerationResult & WithServiceArn(ServiceArnT &&value)
ReportGenerationResult & WithCreatedAt(CreatedAtT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ReportGenerationResult & WithReportType(ReportType value)
AWS_RESILIENCEHUBV2_API ReportGenerationResult(Aws::Utils::Json::JsonView jsonValue)
ReportGenerationResult & WithStatus(ReportGenerationStatus value)
AWS_RESILIENCEHUBV2_API ReportGenerationResult()=default
ReportGenerationResult & WithReportOutput(ReportOutputT &&value)
ReportGenerationResult & WithAssessmentId(AssessmentIdT &&value)
AWS_RESILIENCEHUBV2_API ReportGenerationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue