AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline WorkflowSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline WorkflowSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline WorkflowSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline WorkflowSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline WorkflowSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline WorkflowSummary& WithName(const char* value) { SetName(value); return *this;}
71
73
77 inline const Aws::String& GetSourceRepositoryName() const{ return m_sourceRepositoryName; }
78 inline bool SourceRepositoryNameHasBeenSet() const { return m_sourceRepositoryNameHasBeenSet; }
79 inline void SetSourceRepositoryName(const Aws::String& value) { m_sourceRepositoryNameHasBeenSet = true; m_sourceRepositoryName = value; }
80 inline void SetSourceRepositoryName(Aws::String&& value) { m_sourceRepositoryNameHasBeenSet = true; m_sourceRepositoryName = std::move(value); }
81 inline void SetSourceRepositoryName(const char* value) { m_sourceRepositoryNameHasBeenSet = true; m_sourceRepositoryName.assign(value); }
82 inline WorkflowSummary& WithSourceRepositoryName(const Aws::String& value) { SetSourceRepositoryName(value); return *this;}
83 inline WorkflowSummary& WithSourceRepositoryName(Aws::String&& value) { SetSourceRepositoryName(std::move(value)); return *this;}
84 inline WorkflowSummary& WithSourceRepositoryName(const char* value) { SetSourceRepositoryName(value); return *this;}
86
88
92 inline const Aws::String& GetSourceBranchName() const{ return m_sourceBranchName; }
93 inline bool SourceBranchNameHasBeenSet() const { return m_sourceBranchNameHasBeenSet; }
94 inline void SetSourceBranchName(const Aws::String& value) { m_sourceBranchNameHasBeenSet = true; m_sourceBranchName = value; }
95 inline void SetSourceBranchName(Aws::String&& value) { m_sourceBranchNameHasBeenSet = true; m_sourceBranchName = std::move(value); }
96 inline void SetSourceBranchName(const char* value) { m_sourceBranchNameHasBeenSet = true; m_sourceBranchName.assign(value); }
97 inline WorkflowSummary& WithSourceBranchName(const Aws::String& value) { SetSourceBranchName(value); return *this;}
98 inline WorkflowSummary& WithSourceBranchName(Aws::String&& value) { SetSourceBranchName(std::move(value)); return *this;}
99 inline WorkflowSummary& WithSourceBranchName(const char* value) { SetSourceBranchName(value); return *this;}
101
103
106 inline const WorkflowDefinitionSummary& GetDefinition() const{ return m_definition; }
107 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
108 inline void SetDefinition(const WorkflowDefinitionSummary& value) { m_definitionHasBeenSet = true; m_definition = value; }
109 inline void SetDefinition(WorkflowDefinitionSummary&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
110 inline WorkflowSummary& WithDefinition(const WorkflowDefinitionSummary& value) { SetDefinition(value); return *this;}
111 inline WorkflowSummary& WithDefinition(WorkflowDefinitionSummary&& value) { SetDefinition(std::move(value)); return *this;}
113
115
120 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
121 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
122 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
123 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
124 inline WorkflowSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
125 inline WorkflowSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
127
129
134 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
135 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
136 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
137 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
138 inline WorkflowSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
139 inline WorkflowSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
141
143
146 inline const WorkflowRunMode& GetRunMode() const{ return m_runMode; }
147 inline bool RunModeHasBeenSet() const { return m_runModeHasBeenSet; }
148 inline void SetRunMode(const WorkflowRunMode& value) { m_runModeHasBeenSet = true; m_runMode = value; }
149 inline void SetRunMode(WorkflowRunMode&& value) { m_runModeHasBeenSet = true; m_runMode = std::move(value); }
150 inline WorkflowSummary& WithRunMode(const WorkflowRunMode& value) { SetRunMode(value); return *this;}
151 inline WorkflowSummary& WithRunMode(WorkflowRunMode&& value) { SetRunMode(std::move(value)); return *this;}
153
155
158 inline const WorkflowStatus& GetStatus() const{ return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
160 inline void SetStatus(const WorkflowStatus& value) { m_statusHasBeenSet = true; m_status = value; }
161 inline void SetStatus(WorkflowStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
162 inline WorkflowSummary& WithStatus(const WorkflowStatus& value) { SetStatus(value); return *this;}
163 inline WorkflowSummary& WithStatus(WorkflowStatus&& value) { SetStatus(std::move(value)); return *this;}
165 private:
166
167 Aws::String m_id;
168 bool m_idHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_sourceRepositoryName;
174 bool m_sourceRepositoryNameHasBeenSet = false;
175
176 Aws::String m_sourceBranchName;
177 bool m_sourceBranchNameHasBeenSet = false;
178
179 WorkflowDefinitionSummary m_definition;
180 bool m_definitionHasBeenSet = false;
181
182 Aws::Utils::DateTime m_createdTime;
183 bool m_createdTimeHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastUpdatedTime;
186 bool m_lastUpdatedTimeHasBeenSet = false;
187
188 WorkflowRunMode m_runMode;
189 bool m_runModeHasBeenSet = false;
190
191 WorkflowStatus m_status;
192 bool m_statusHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace CodeCatalyst
197} // namespace Aws
WorkflowSummary & WithSourceRepositoryName(const Aws::String &value)
WorkflowSummary & WithCreatedTime(Aws::Utils::DateTime &&value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
void SetDefinition(const WorkflowDefinitionSummary &value)
WorkflowSummary & WithId(Aws::String &&value)
WorkflowSummary & WithId(const char *value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetSourceBranchName(Aws::String &&value)
const Aws::String & GetSourceBranchName() const
WorkflowSummary & WithDefinition(const WorkflowDefinitionSummary &value)
void SetSourceRepositoryName(const char *value)
WorkflowSummary & WithSourceRepositoryName(Aws::String &&value)
WorkflowSummary & WithSourceBranchName(const char *value)
WorkflowSummary & WithCreatedTime(const Aws::Utils::DateTime &value)
WorkflowSummary & WithName(const Aws::String &value)
void SetRunMode(WorkflowRunMode &&value)
const WorkflowDefinitionSummary & GetDefinition() const
WorkflowSummary & WithSourceBranchName(Aws::String &&value)
void SetRunMode(const WorkflowRunMode &value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowSummary & WithSourceRepositoryName(const char *value)
void SetStatus(const WorkflowStatus &value)
WorkflowSummary & WithName(Aws::String &&value)
void SetSourceBranchName(const Aws::String &value)
void SetDefinition(WorkflowDefinitionSummary &&value)
void SetSourceRepositoryName(const Aws::String &value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
WorkflowSummary & WithRunMode(const WorkflowRunMode &value)
const Aws::String & GetSourceRepositoryName() const
WorkflowSummary & WithStatus(const WorkflowStatus &value)
WorkflowSummary & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetStatus(WorkflowStatus &&value)
void SetSourceRepositoryName(Aws::String &&value)
WorkflowSummary & WithRunMode(WorkflowRunMode &&value)
WorkflowSummary & WithDefinition(WorkflowDefinitionSummary &&value)
AWS_CODECATALYST_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue)
WorkflowSummary & WithSourceBranchName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTime() const
const WorkflowRunMode & GetRunMode() const
WorkflowSummary & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
AWS_CODECATALYST_API WorkflowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowSummary & WithStatus(WorkflowStatus &&value)
WorkflowSummary & WithId(const Aws::String &value)
void SetId(const Aws::String &value)
const WorkflowStatus & GetStatus() const
WorkflowSummary & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue