AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetJobResult.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{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataExchange
30{
31namespace Model
32{
34 {
35 public:
36 AWS_DATAEXCHANGE_API GetJobResult();
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline void SetArn(const Aws::String& value) { m_arn = value; }
47 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
48 inline void SetArn(const char* value) { m_arn.assign(value); }
49 inline GetJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
50 inline GetJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
51 inline GetJobResult& WithArn(const char* value) { SetArn(value); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
59 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
60 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
61 inline GetJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
62 inline GetJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
64
66
69 inline const ResponseDetails& GetDetails() const{ return m_details; }
70 inline void SetDetails(const ResponseDetails& value) { m_details = value; }
71 inline void SetDetails(ResponseDetails&& value) { m_details = std::move(value); }
72 inline GetJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
73 inline GetJobResult& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
75
77
80 inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
81 inline void SetErrors(const Aws::Vector<JobError>& value) { m_errors = value; }
82 inline void SetErrors(Aws::Vector<JobError>&& value) { m_errors = std::move(value); }
83 inline GetJobResult& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
84 inline GetJobResult& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
85 inline GetJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; }
86 inline GetJobResult& AddErrors(JobError&& value) { m_errors.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetId() const{ return m_id; }
94 inline void SetId(const Aws::String& value) { m_id = value; }
95 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
96 inline void SetId(const char* value) { m_id.assign(value); }
97 inline GetJobResult& WithId(const Aws::String& value) { SetId(value); return *this;}
98 inline GetJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
99 inline GetJobResult& WithId(const char* value) { SetId(value); return *this;}
101
103
106 inline const State& GetState() const{ return m_state; }
107 inline void SetState(const State& value) { m_state = value; }
108 inline void SetState(State&& value) { m_state = std::move(value); }
109 inline GetJobResult& WithState(const State& value) { SetState(value); return *this;}
110 inline GetJobResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
112
114
117 inline const Type& GetType() const{ return m_type; }
118 inline void SetType(const Type& value) { m_type = value; }
119 inline void SetType(Type&& value) { m_type = std::move(value); }
120 inline GetJobResult& WithType(const Type& value) { SetType(value); return *this;}
121 inline GetJobResult& WithType(Type&& value) { SetType(std::move(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
129 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
130 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
131 inline GetJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
132 inline GetJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
134
136
137 inline const Aws::String& GetRequestId() const{ return m_requestId; }
138 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
139 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
140 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
141 inline GetJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
142 inline GetJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
143 inline GetJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
145 private:
146
147 Aws::String m_arn;
148
149 Aws::Utils::DateTime m_createdAt;
150
151 ResponseDetails m_details;
152
153 Aws::Vector<JobError> m_errors;
154
155 Aws::String m_id;
156
157 State m_state;
158
159 Type m_type;
160
161 Aws::Utils::DateTime m_updatedAt;
162
163 Aws::String m_requestId;
164 };
165
166} // namespace Model
167} // namespace DataExchange
168} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetErrors(Aws::Vector< JobError > &&value)
void SetRequestId(const Aws::String &value)
GetJobResult & WithRequestId(Aws::String &&value)
GetJobResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_DATAEXCHANGE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithArn(const char *value)
GetJobResult & WithErrors(Aws::Vector< JobError > &&value)
void SetId(Aws::String &&value)
GetJobResult & WithRequestId(const char *value)
GetJobResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetJobResult & AddErrors(const JobError &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const ResponseDetails & GetDetails() const
GetJobResult & AddErrors(JobError &&value)
GetJobResult & WithErrors(const Aws::Vector< JobError > &value)
void SetArn(const Aws::String &value)
void SetDetails(const ResponseDetails &value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobResult & WithDetails(ResponseDetails &&value)
AWS_DATAEXCHANGE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithDetails(const ResponseDetails &value)
GetJobResult & WithArn(Aws::String &&value)
void SetDetails(ResponseDetails &&value)
GetJobResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetErrors(const Aws::Vector< JobError > &value)
const Aws::String & GetId() const
GetJobResult & WithType(Type &&value)
GetJobResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetState(const State &value)
const Aws::Vector< JobError > & GetErrors() const
GetJobResult & WithId(const Aws::String &value)
GetJobResult & WithId(const char *value)
void SetId(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetRequestId(const char *value)
GetJobResult & WithState(State &&value)
GetJobResult & WithId(Aws::String &&value)
GetJobResult & WithState(const State &value)
GetJobResult & WithArn(const Aws::String &value)
GetJobResult & WithType(const Type &value)
AWS_DATAEXCHANGE_API GetJobResult()
const Aws::String & GetRequestId() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetRequestId(Aws::String &&value)
void SetArn(Aws::String &&value)
const Aws::String & GetArn() const
GetJobResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue