AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WorkflowSummary.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecatalyst/model/WorkflowDefinitionSummary.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codecatalyst/model/WorkflowRunMode.h>
12#include <aws/codecatalyst/model/WorkflowStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeCatalyst
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CODECATALYST_API WorkflowSummary() = default;
39 AWS_CODECATALYST_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECATALYST_API WorkflowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 WorkflowSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 WorkflowSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
73 inline const Aws::String& GetSourceRepositoryName() const { return m_sourceRepositoryName; }
74 inline bool SourceRepositoryNameHasBeenSet() const { return m_sourceRepositoryNameHasBeenSet; }
75 template<typename SourceRepositoryNameT = Aws::String>
76 void SetSourceRepositoryName(SourceRepositoryNameT&& value) { m_sourceRepositoryNameHasBeenSet = true; m_sourceRepositoryName = std::forward<SourceRepositoryNameT>(value); }
77 template<typename SourceRepositoryNameT = Aws::String>
78 WorkflowSummary& WithSourceRepositoryName(SourceRepositoryNameT&& value) { SetSourceRepositoryName(std::forward<SourceRepositoryNameT>(value)); return *this;}
80
82
86 inline const Aws::String& GetSourceBranchName() const { return m_sourceBranchName; }
87 inline bool SourceBranchNameHasBeenSet() const { return m_sourceBranchNameHasBeenSet; }
88 template<typename SourceBranchNameT = Aws::String>
89 void SetSourceBranchName(SourceBranchNameT&& value) { m_sourceBranchNameHasBeenSet = true; m_sourceBranchName = std::forward<SourceBranchNameT>(value); }
90 template<typename SourceBranchNameT = Aws::String>
91 WorkflowSummary& WithSourceBranchName(SourceBranchNameT&& value) { SetSourceBranchName(std::forward<SourceBranchNameT>(value)); return *this;}
93
95
98 inline const WorkflowDefinitionSummary& GetDefinition() const { return m_definition; }
99 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
100 template<typename DefinitionT = WorkflowDefinitionSummary>
101 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
102 template<typename DefinitionT = WorkflowDefinitionSummary>
103 WorkflowSummary& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
113 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
114 template<typename CreatedTimeT = Aws::Utils::DateTime>
115 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
116 template<typename CreatedTimeT = Aws::Utils::DateTime>
117 WorkflowSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
119
121
126 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
127 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
128 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
129 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
130 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
131 WorkflowSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
133
135
138 inline WorkflowRunMode GetRunMode() const { return m_runMode; }
139 inline bool RunModeHasBeenSet() const { return m_runModeHasBeenSet; }
140 inline void SetRunMode(WorkflowRunMode value) { m_runModeHasBeenSet = true; m_runMode = value; }
141 inline WorkflowSummary& WithRunMode(WorkflowRunMode value) { SetRunMode(value); return *this;}
143
145
148 inline WorkflowStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(WorkflowStatus value) { m_statusHasBeenSet = true; m_status = value; }
151 inline WorkflowSummary& WithStatus(WorkflowStatus value) { SetStatus(value); return *this;}
153 private:
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 Aws::String m_sourceRepositoryName;
162 bool m_sourceRepositoryNameHasBeenSet = false;
163
164 Aws::String m_sourceBranchName;
165 bool m_sourceBranchNameHasBeenSet = false;
166
167 WorkflowDefinitionSummary m_definition;
168 bool m_definitionHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdTime{};
171 bool m_createdTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_lastUpdatedTime{};
174 bool m_lastUpdatedTimeHasBeenSet = false;
175
177 bool m_runModeHasBeenSet = false;
178
180 bool m_statusHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace CodeCatalyst
185} // namespace Aws
WorkflowSummary & WithDefinition(DefinitionT &&value)
void SetSourceRepositoryName(SourceRepositoryNameT &&value)
const Aws::String & GetSourceBranchName() const
WorkflowSummary & WithRunMode(WorkflowRunMode value)
WorkflowSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const WorkflowDefinitionSummary & GetDefinition() const
WorkflowSummary & WithSourceBranchName(SourceBranchNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowSummary & WithName(NameT &&value)
const Aws::String & GetSourceRepositoryName() const
void SetSourceBranchName(SourceBranchNameT &&value)
AWS_CODECATALYST_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
WorkflowSummary & WithCreatedTime(CreatedTimeT &&value)
WorkflowSummary & WithStatus(WorkflowStatus value)
AWS_CODECATALYST_API WorkflowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowSummary & WithSourceRepositoryName(SourceRepositoryNameT &&value)
AWS_CODECATALYST_API WorkflowSummary()=default
WorkflowSummary & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue