AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeployActionExecutionTarget.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/DeployTargetEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CODEPIPELINE_API DeployActionExecutionTarget() = default;
40 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTargetId() const { return m_targetId; }
48 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
49 template<typename TargetIdT = Aws::String>
50 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
51 template<typename TargetIdT = Aws::String>
52 DeployActionExecutionTarget& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetTargetType() const { return m_targetType; }
60 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
61 template<typename TargetTypeT = Aws::String>
62 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
63 template<typename TargetTypeT = Aws::String>
64 DeployActionExecutionTarget& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 template<typename StatusT = Aws::String>
74 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
75 template<typename StatusT = Aws::String>
76 DeployActionExecutionTarget& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
84 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
85 template<typename StartTimeT = Aws::Utils::DateTime>
86 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 DeployActionExecutionTarget& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
96 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
97 template<typename EndTimeT = Aws::Utils::DateTime>
98 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
99 template<typename EndTimeT = Aws::Utils::DateTime>
100 DeployActionExecutionTarget& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
102
104
107 inline const Aws::Vector<DeployTargetEvent>& GetEvents() const { return m_events; }
108 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
109 template<typename EventsT = Aws::Vector<DeployTargetEvent>>
110 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
111 template<typename EventsT = Aws::Vector<DeployTargetEvent>>
112 DeployActionExecutionTarget& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
113 template<typename EventsT = DeployTargetEvent>
114 DeployActionExecutionTarget& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
116 private:
117
118 Aws::String m_targetId;
119 bool m_targetIdHasBeenSet = false;
120
121 Aws::String m_targetType;
122 bool m_targetTypeHasBeenSet = false;
123
124 Aws::String m_status;
125 bool m_statusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_startTime{};
128 bool m_startTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_endTime{};
131 bool m_endTimeHasBeenSet = false;
132
134 bool m_eventsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CodePipeline
139} // namespace Aws
DeployActionExecutionTarget & WithStatus(StatusT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
DeployActionExecutionTarget & AddEvents(EventsT &&value)
DeployActionExecutionTarget & WithEvents(EventsT &&value)
DeployActionExecutionTarget & WithStartTime(StartTimeT &&value)
DeployActionExecutionTarget & WithEndTime(EndTimeT &&value)
AWS_CODEPIPELINE_API DeployActionExecutionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API DeployActionExecutionTarget()=default
DeployActionExecutionTarget & WithTargetType(TargetTypeT &&value)
DeployActionExecutionTarget & WithTargetId(TargetIdT &&value)
const Aws::Vector< DeployTargetEvent > & GetEvents() const
AWS_CODEPIPELINE_API DeployActionExecutionTarget(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue