AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobResult.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 CreateJobResult();
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 CreateJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
50 inline CreateJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
51 inline CreateJobResult& 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 CreateJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
62 inline CreateJobResult& 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 CreateJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
73 inline CreateJobResult& 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 CreateJobResult& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
84 inline CreateJobResult& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
85 inline CreateJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; }
86 inline CreateJobResult& 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 CreateJobResult& WithId(const Aws::String& value) { SetId(value); return *this;}
98 inline CreateJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
99 inline CreateJobResult& 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 CreateJobResult& WithState(const State& value) { SetState(value); return *this;}
110 inline CreateJobResult& 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 CreateJobResult& WithType(const Type& value) { SetType(value); return *this;}
121 inline CreateJobResult& 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 CreateJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
132 inline CreateJobResult& 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 CreateJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
142 inline CreateJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
143 inline CreateJobResult& 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
CreateJobResult & WithCreatedAt(const Aws::Utils::DateTime &value)
CreateJobResult & AddErrors(const JobError &value)
CreateJobResult & WithId(Aws::String &&value)
CreateJobResult & WithRequestId(const char *value)
CreateJobResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
CreateJobResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetDetails(ResponseDetails &&value)
const Aws::Vector< JobError > & GetErrors() const
CreateJobResult & WithId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
CreateJobResult & WithState(const State &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AWS_DATAEXCHANGE_API CreateJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateJobResult & WithArn(const char *value)
CreateJobResult & WithType(const Type &value)
CreateJobResult & WithDetails(ResponseDetails &&value)
CreateJobResult & WithArn(const Aws::String &value)
CreateJobResult & WithDetails(const ResponseDetails &value)
void SetErrors(const Aws::Vector< JobError > &value)
void SetDetails(const ResponseDetails &value)
CreateJobResult & WithId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetErrors(Aws::Vector< JobError > &&value)
CreateJobResult & WithRequestId(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
CreateJobResult & AddErrors(JobError &&value)
CreateJobResult & WithArn(Aws::String &&value)
CreateJobResult & WithErrors(const Aws::Vector< JobError > &value)
void SetId(const Aws::String &value)
const ResponseDetails & GetDetails() const
AWS_DATAEXCHANGE_API CreateJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateJobResult & WithState(State &&value)
void SetArn(const Aws::String &value)
CreateJobResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetRequestId() const
CreateJobResult & WithType(Type &&value)
CreateJobResult & WithRequestId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
CreateJobResult & WithErrors(Aws::Vector< JobError > &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue