AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OperationSummary.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/OperationStatus.h>
9#include <aws/apprunner/model/OperationType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppRunner {
23namespace Model {
24
32 public:
33 AWS_APPRUNNER_API OperationSummary() = default;
34 AWS_APPRUNNER_API OperationSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 OperationSummary& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline OperationType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(OperationType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline OperationStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(OperationStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
95 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
96 template <typename TargetArnT = Aws::String>
97 void SetTargetArn(TargetArnT&& value) {
98 m_targetArnHasBeenSet = true;
99 m_targetArn = std::forward<TargetArnT>(value);
100 }
101 template <typename TargetArnT = Aws::String>
102 OperationSummary& WithTargetArn(TargetArnT&& value) {
103 SetTargetArn(std::forward<TargetArnT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
113 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
114 template <typename StartedAtT = Aws::Utils::DateTime>
115 void SetStartedAt(StartedAtT&& value) {
116 m_startedAtHasBeenSet = true;
117 m_startedAt = std::forward<StartedAtT>(value);
118 }
119 template <typename StartedAtT = Aws::Utils::DateTime>
120 OperationSummary& WithStartedAt(StartedAtT&& value) {
121 SetStartedAt(std::forward<StartedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
131 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
132 template <typename EndedAtT = Aws::Utils::DateTime>
133 void SetEndedAt(EndedAtT&& value) {
134 m_endedAtHasBeenSet = true;
135 m_endedAt = std::forward<EndedAtT>(value);
136 }
137 template <typename EndedAtT = Aws::Utils::DateTime>
138 OperationSummary& WithEndedAt(EndedAtT&& value) {
139 SetEndedAt(std::forward<EndedAtT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
150 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
151 template <typename UpdatedAtT = Aws::Utils::DateTime>
152 void SetUpdatedAt(UpdatedAtT&& value) {
153 m_updatedAtHasBeenSet = true;
154 m_updatedAt = std::forward<UpdatedAtT>(value);
155 }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 OperationSummary& WithUpdatedAt(UpdatedAtT&& value) {
158 SetUpdatedAt(std::forward<UpdatedAtT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_id;
164
166
168
169 Aws::String m_targetArn;
170
171 Aws::Utils::DateTime m_startedAt{};
172
173 Aws::Utils::DateTime m_endedAt{};
174
175 Aws::Utils::DateTime m_updatedAt{};
176 bool m_idHasBeenSet = false;
177 bool m_typeHasBeenSet = false;
178 bool m_statusHasBeenSet = false;
179 bool m_targetArnHasBeenSet = false;
180 bool m_startedAtHasBeenSet = false;
181 bool m_endedAtHasBeenSet = false;
182 bool m_updatedAtHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace AppRunner
187} // namespace Aws
const Aws::String & GetTargetArn() const
const Aws::Utils::DateTime & GetEndedAt() const
OperationSummary & WithStatus(OperationStatus value)
OperationSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
OperationSummary & WithId(IdT &&value)
OperationSummary & WithStartedAt(StartedAtT &&value)
OperationSummary & WithEndedAt(EndedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
AWS_APPRUNNER_API OperationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(OperationStatus value)
OperationSummary & WithTargetArn(TargetArnT &&value)
OperationSummary & WithType(OperationType value)
AWS_APPRUNNER_API OperationSummary()=default
AWS_APPRUNNER_API OperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue