AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobEntry.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/dataexchange/model/ResponseDetails.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/dataexchange/model/State.h>
13#include <aws/dataexchange/model/Type.h>
14#include <aws/dataexchange/model/JobError.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DataExchange
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_DATAEXCHANGE_API JobEntry();
44 AWS_DATAEXCHANGE_API JobEntry(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DATAEXCHANGE_API JobEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const{ return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
57 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
58 inline JobEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
59 inline JobEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
60 inline JobEntry& WithArn(const char* value) { SetArn(value); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
68 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
69 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
70 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
71 inline JobEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
72 inline JobEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
74
76
80 inline const ResponseDetails& GetDetails() const{ return m_details; }
81 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
82 inline void SetDetails(const ResponseDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
83 inline void SetDetails(ResponseDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
84 inline JobEntry& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
85 inline JobEntry& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
87
89
92 inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
93 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
94 inline void SetErrors(const Aws::Vector<JobError>& value) { m_errorsHasBeenSet = true; m_errors = value; }
95 inline void SetErrors(Aws::Vector<JobError>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
96 inline JobEntry& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
97 inline JobEntry& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
98 inline JobEntry& AddErrors(const JobError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
99 inline JobEntry& AddErrors(JobError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::String& GetId() const{ return m_id; }
107 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
108 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
109 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
110 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
111 inline JobEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
112 inline JobEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
113 inline JobEntry& WithId(const char* value) { SetId(value); return *this;}
115
117
120 inline const State& GetState() const{ return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
122 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
123 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
124 inline JobEntry& WithState(const State& value) { SetState(value); return *this;}
125 inline JobEntry& WithState(State&& value) { SetState(std::move(value)); return *this;}
127
129
132 inline const Type& GetType() const{ return m_type; }
133 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
135 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
136 inline JobEntry& WithType(const Type& value) { SetType(value); return *this;}
137 inline JobEntry& WithType(Type&& value) { SetType(std::move(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
145 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
146 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
147 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
148 inline JobEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
149 inline JobEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
151 private:
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::Utils::DateTime m_createdAt;
157 bool m_createdAtHasBeenSet = false;
158
159 ResponseDetails m_details;
160 bool m_detailsHasBeenSet = false;
161
162 Aws::Vector<JobError> m_errors;
163 bool m_errorsHasBeenSet = false;
164
165 Aws::String m_id;
166 bool m_idHasBeenSet = false;
167
168 State m_state;
169 bool m_stateHasBeenSet = false;
170
171 Type m_type;
172 bool m_typeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_updatedAt;
175 bool m_updatedAtHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace DataExchange
180} // namespace Aws
Definition JobEntry.h:41
JobEntry & WithState(State &&value)
Definition JobEntry.h:125
void SetArn(const char *value)
Definition JobEntry.h:57
bool IdHasBeenSet() const
Definition JobEntry.h:107
bool TypeHasBeenSet() const
Definition JobEntry.h:133
JobEntry & WithId(const Aws::String &value)
Definition JobEntry.h:111
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobEntry.h:67
const State & GetState() const
Definition JobEntry.h:120
JobEntry & WithArn(const Aws::String &value)
Definition JobEntry.h:58
void SetType(const Type &value)
Definition JobEntry.h:134
void SetDetails(const ResponseDetails &value)
Definition JobEntry.h:82
JobEntry & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition JobEntry.h:71
bool CreatedAtHasBeenSet() const
Definition JobEntry.h:68
void SetState(const State &value)
Definition JobEntry.h:122
bool UpdatedAtHasBeenSet() const
Definition JobEntry.h:145
const Type & GetType() const
Definition JobEntry.h:132
void SetArn(Aws::String &&value)
Definition JobEntry.h:56
void SetId(const char *value)
Definition JobEntry.h:110
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ErrorsHasBeenSet() const
Definition JobEntry.h:93
void SetId(Aws::String &&value)
Definition JobEntry.h:109
JobEntry & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition JobEntry.h:72
JobEntry & WithState(const State &value)
Definition JobEntry.h:124
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition JobEntry.h:144
AWS_DATAEXCHANGE_API JobEntry(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition JobEntry.h:69
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition JobEntry.h:147
JobEntry & WithId(const char *value)
Definition JobEntry.h:113
AWS_DATAEXCHANGE_API JobEntry()
JobEntry & AddErrors(const JobError &value)
Definition JobEntry.h:98
AWS_DATAEXCHANGE_API JobEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
JobEntry & WithDetails(const ResponseDetails &value)
Definition JobEntry.h:84
JobEntry & WithArn(const char *value)
Definition JobEntry.h:60
JobEntry & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition JobEntry.h:149
JobEntry & WithArn(Aws::String &&value)
Definition JobEntry.h:59
JobEntry & AddErrors(JobError &&value)
Definition JobEntry.h:99
void SetDetails(ResponseDetails &&value)
Definition JobEntry.h:83
JobEntry & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition JobEntry.h:148
void SetState(State &&value)
Definition JobEntry.h:123
void SetId(const Aws::String &value)
Definition JobEntry.h:108
JobEntry & WithId(Aws::String &&value)
Definition JobEntry.h:112
JobEntry & WithType(Type &&value)
Definition JobEntry.h:137
JobEntry & WithErrors(const Aws::Vector< JobError > &value)
Definition JobEntry.h:96
void SetType(Type &&value)
Definition JobEntry.h:135
void SetErrors(const Aws::Vector< JobError > &value)
Definition JobEntry.h:94
const Aws::String & GetId() const
Definition JobEntry.h:106
void SetErrors(Aws::Vector< JobError > &&value)
Definition JobEntry.h:95
bool DetailsHasBeenSet() const
Definition JobEntry.h:81
bool StateHasBeenSet() const
Definition JobEntry.h:121
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition JobEntry.h:146
bool ArnHasBeenSet() const
Definition JobEntry.h:54
void SetArn(const Aws::String &value)
Definition JobEntry.h:55
JobEntry & WithType(const Type &value)
Definition JobEntry.h:136
const ResponseDetails & GetDetails() const
Definition JobEntry.h:80
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition JobEntry.h:70
const Aws::String & GetArn() const
Definition JobEntry.h:53
const Aws::Vector< JobError > & GetErrors() const
Definition JobEntry.h:92
JobEntry & WithErrors(Aws::Vector< JobError > &&value)
Definition JobEntry.h:97
JobEntry & WithDetails(ResponseDetails &&value)
Definition JobEntry.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue