AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchListItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/omics/Omics_EXPORTS.h>
10#include <aws/omics/model/BatchStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Omics {
22namespace Model {
23
31 public:
32 AWS_OMICS_API BatchListItem() = default;
33 AWS_OMICS_API BatchListItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 BatchListItem& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 BatchListItem& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline BatchStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(BatchStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 BatchListItem& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline int GetTotalRuns() const { return m_totalRuns; }
112 inline bool TotalRunsHasBeenSet() const { return m_totalRunsHasBeenSet; }
113 inline void SetTotalRuns(int value) {
114 m_totalRunsHasBeenSet = true;
115 m_totalRuns = value;
116 }
117 inline BatchListItem& WithTotalRuns(int value) {
118 SetTotalRuns(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
128 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
129 template <typename WorkflowIdT = Aws::String>
130 void SetWorkflowId(WorkflowIdT&& value) {
131 m_workflowIdHasBeenSet = true;
132 m_workflowId = std::forward<WorkflowIdT>(value);
133 }
134 template <typename WorkflowIdT = Aws::String>
135 BatchListItem& WithWorkflowId(WorkflowIdT&& value) {
136 SetWorkflowId(std::forward<WorkflowIdT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_id;
142
143 Aws::String m_name;
144
146
147 Aws::Utils::DateTime m_createdAt{};
148
149 int m_totalRuns{0};
150
151 Aws::String m_workflowId;
152 bool m_idHasBeenSet = false;
153 bool m_nameHasBeenSet = false;
154 bool m_statusHasBeenSet = false;
155 bool m_createdAtHasBeenSet = false;
156 bool m_totalRunsHasBeenSet = false;
157 bool m_workflowIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Omics
162} // namespace Aws
BatchListItem & WithWorkflowId(WorkflowIdT &&value)
AWS_OMICS_API BatchListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchListItem & WithStatus(BatchStatus value)
BatchListItem & WithName(NameT &&value)
const Aws::String & GetName() const
const Aws::String & GetWorkflowId() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(CreatedAtT &&value)
BatchListItem & WithCreatedAt(CreatedAtT &&value)
AWS_OMICS_API BatchListItem(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(BatchStatus value)
void SetWorkflowId(WorkflowIdT &&value)
BatchListItem & WithId(IdT &&value)
BatchListItem & WithTotalRuns(int value)
const Aws::String & GetId() const
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OMICS_API BatchListItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue