AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeployTargetEvent.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/codepipeline/model/DeployTargetEventContext.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CODEPIPELINE_API DeployTargetEvent() = default;
37 AWS_CODEPIPELINE_API DeployTargetEvent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API DeployTargetEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DeployTargetEvent& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
62 template<typename StatusT = Aws::String>
63 DeployTargetEvent& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
71 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
72 template<typename StartTimeT = Aws::Utils::DateTime>
73 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 DeployTargetEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 template<typename EndTimeT = Aws::Utils::DateTime>
85 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 DeployTargetEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
89
91
94 inline const DeployTargetEventContext& GetContext() const { return m_context; }
95 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
96 template<typename ContextT = DeployTargetEventContext>
97 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
98 template<typename ContextT = DeployTargetEventContext>
99 DeployTargetEvent& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_status;
107 bool m_statusHasBeenSet = false;
108
109 Aws::Utils::DateTime m_startTime{};
110 bool m_startTimeHasBeenSet = false;
111
112 Aws::Utils::DateTime m_endTime{};
113 bool m_endTimeHasBeenSet = false;
114
115 DeployTargetEventContext m_context;
116 bool m_contextHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace CodePipeline
121} // 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