AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BuildStep.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DeploymentStepStatus.h>
9#include <aws/core/utils/DateTime.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
28class BuildStep {
29 public:
30 AWS_AMPLIFYGEN3_API BuildStep() = default;
31 AWS_AMPLIFYGEN3_API BuildStep(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYGEN3_API BuildStep& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline DeploymentStepStatus GetStatus() const { return m_status; }
40 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
41 inline void SetStatus(DeploymentStepStatus value) {
42 m_statusHasBeenSet = true;
43 m_status = value;
44 }
46 SetStatus(value);
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
56 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
57 template <typename StartedAtT = Aws::Utils::DateTime>
58 void SetStartedAt(StartedAtT&& value) {
59 m_startedAtHasBeenSet = true;
60 m_startedAt = std::forward<StartedAtT>(value);
61 }
62 template <typename StartedAtT = Aws::Utils::DateTime>
63 BuildStep& WithStartedAt(StartedAtT&& value) {
64 SetStartedAt(std::forward<StartedAtT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
74 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
75 template <typename EndedAtT = Aws::Utils::DateTime>
76 void SetEndedAt(EndedAtT&& value) {
77 m_endedAtHasBeenSet = true;
78 m_endedAt = std::forward<EndedAtT>(value);
79 }
80 template <typename EndedAtT = Aws::Utils::DateTime>
81 BuildStep& WithEndedAt(EndedAtT&& value) {
82 SetEndedAt(std::forward<EndedAtT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::Utils::DateTime m_startedAt{};
90
91 Aws::Utils::DateTime m_endedAt{};
92 bool m_statusHasBeenSet = false;
93 bool m_startedAtHasBeenSet = false;
94 bool m_endedAtHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace AmplifyGen3
99} // namespace Aws
BuildStep & WithEndedAt(EndedAtT &&value)
Definition BuildStep.h:81
const Aws::Utils::DateTime & GetStartedAt() const
Definition BuildStep.h:55
const Aws::Utils::DateTime & GetEndedAt() const
Definition BuildStep.h:73
void SetEndedAt(EndedAtT &&value)
Definition BuildStep.h:76
BuildStep & WithStartedAt(StartedAtT &&value)
Definition BuildStep.h:63
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API BuildStep & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartedAt(StartedAtT &&value)
Definition BuildStep.h:58
AWS_AMPLIFYGEN3_API BuildStep(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API BuildStep()=default
void SetStatus(DeploymentStepStatus value)
Definition BuildStep.h:41
BuildStep & WithStatus(DeploymentStepStatus value)
Definition BuildStep.h:45
DeploymentStepStatus GetStatus() const
Definition BuildStep.h:39
Aws::Utils::Json::JsonValue JsonValue