AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DeployTargetEvent.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/DeployTargetEventContext.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline {
22namespace Model {
23
30 public:
31 AWS_CODEPIPELINE_API DeployTargetEvent() = default;
32 AWS_CODEPIPELINE_API DeployTargetEvent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API DeployTargetEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DeployTargetEvent& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 template <typename StatusT = Aws::String>
61 void SetStatus(StatusT&& value) {
62 m_statusHasBeenSet = true;
63 m_status = std::forward<StatusT>(value);
64 }
65 template <typename StatusT = Aws::String>
66 DeployTargetEvent& WithStatus(StatusT&& value) {
67 SetStatus(std::forward<StatusT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
77 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
78 template <typename StartTimeT = Aws::Utils::DateTime>
79 void SetStartTime(StartTimeT&& value) {
80 m_startTimeHasBeenSet = true;
81 m_startTime = std::forward<StartTimeT>(value);
82 }
83 template <typename StartTimeT = Aws::Utils::DateTime>
84 DeployTargetEvent& WithStartTime(StartTimeT&& value) {
85 SetStartTime(std::forward<StartTimeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 template <typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) {
98 m_endTimeHasBeenSet = true;
99 m_endTime = std::forward<EndTimeT>(value);
100 }
101 template <typename EndTimeT = Aws::Utils::DateTime>
102 DeployTargetEvent& WithEndTime(EndTimeT&& value) {
103 SetEndTime(std::forward<EndTimeT>(value));
104 return *this;
105 }
107
109
112 inline const DeployTargetEventContext& GetContext() const { return m_context; }
113 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
114 template <typename ContextT = DeployTargetEventContext>
115 void SetContext(ContextT&& value) {
116 m_contextHasBeenSet = true;
117 m_context = std::forward<ContextT>(value);
118 }
119 template <typename ContextT = DeployTargetEventContext>
120 DeployTargetEvent& WithContext(ContextT&& value) {
121 SetContext(std::forward<ContextT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_name;
127
128 Aws::String m_status;
129
130 Aws::Utils::DateTime m_startTime{};
131
132 Aws::Utils::DateTime m_endTime{};
133
134 DeployTargetEventContext m_context;
135 bool m_nameHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_startTimeHasBeenSet = false;
138 bool m_endTimeHasBeenSet = false;
139 bool m_contextHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace CodePipeline
144} // namespace Aws
DeployTargetEvent & WithStatus(StatusT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API DeployTargetEvent(Aws::Utils::Json::JsonView jsonValue)
const DeployTargetEventContext & GetContext() const
const Aws::Utils::DateTime & GetEndTime() const
DeployTargetEvent & WithEndTime(EndTimeT &&value)
DeployTargetEvent & WithContext(ContextT &&value)
DeployTargetEvent & WithName(NameT &&value)
AWS_CODEPIPELINE_API DeployTargetEvent()=default
const Aws::Utils::DateTime & GetStartTime() const
DeployTargetEvent & WithStartTime(StartTimeT &&value)
AWS_CODEPIPELINE_API DeployTargetEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue