AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
39
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 template<typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
48 template<typename ArnT = Aws::String>
49 CreateJobResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
57 template<typename CreatedAtT = Aws::Utils::DateTime>
58 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
59 template<typename CreatedAtT = Aws::Utils::DateTime>
60 CreateJobResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
62
64
67 inline const ResponseDetails& GetDetails() const { return m_details; }
68 template<typename DetailsT = ResponseDetails>
69 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
70 template<typename DetailsT = ResponseDetails>
71 CreateJobResult& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
73
75
78 inline const Aws::Vector<JobError>& GetErrors() const { return m_errors; }
79 template<typename ErrorsT = Aws::Vector<JobError>>
80 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
81 template<typename ErrorsT = Aws::Vector<JobError>>
82 CreateJobResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
83 template<typename ErrorsT = JobError>
84 CreateJobResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 template<typename IdT = Aws::String>
93 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
94 template<typename IdT = Aws::String>
95 CreateJobResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
97
99
102 inline State GetState() const { return m_state; }
103 inline void SetState(State value) { m_stateHasBeenSet = true; m_state = value; }
104 inline CreateJobResult& WithState(State value) { SetState(value); return *this;}
106
108
111 inline Type GetType() const { return m_type; }
112 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
113 inline CreateJobResult& WithType(Type value) { SetType(value); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
121 template<typename UpdatedAtT = Aws::Utils::DateTime>
122 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
123 template<typename UpdatedAtT = Aws::Utils::DateTime>
124 CreateJobResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 CreateJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
137 Aws::String m_arn;
138 bool m_arnHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createdAt{};
141 bool m_createdAtHasBeenSet = false;
142
143 ResponseDetails m_details;
144 bool m_detailsHasBeenSet = false;
145
146 Aws::Vector<JobError> m_errors;
147 bool m_errorsHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 State m_state{State::NOT_SET};
153 bool m_stateHasBeenSet = false;
154
155 Type m_type{Type::NOT_SET};
156 bool m_typeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_updatedAt{};
159 bool m_updatedAtHasBeenSet = false;
160
161 Aws::String m_requestId;
162 bool m_requestIdHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace DataExchange
167} // namespace Aws
AWS_DATAEXCHANGE_API CreateJobResult()=default
CreateJobResult & WithErrors(ErrorsT &&value)
CreateJobResult & WithType(Type value)
CreateJobResult & WithState(State value)
const Aws::Vector< JobError > & GetErrors() const
AWS_DATAEXCHANGE_API CreateJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateJobResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateJobResult & WithCreatedAt(CreatedAtT &&value)
CreateJobResult & AddErrors(ErrorsT &&value)
CreateJobResult & WithDetails(DetailsT &&value)
CreateJobResult & WithId(IdT &&value)
const ResponseDetails & GetDetails() const
AWS_DATAEXCHANGE_API CreateJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
CreateJobResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateJobResult & WithArn(ArnT &&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