AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
JobError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dataexchange/DataExchange_EXPORTS.h>
9#include <aws/dataexchange/model/Code.h>
10#include <aws/dataexchange/model/Details.h>
11#include <aws/dataexchange/model/JobErrorLimitName.h>
12#include <aws/dataexchange/model/JobErrorResourceTypes.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataExchange {
24namespace Model {
25
31class JobError {
32 public:
33 AWS_DATAEXCHANGE_API JobError() = default;
34 AWS_DATAEXCHANGE_API JobError(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAEXCHANGE_API JobError& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline Code GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 inline void SetCode(Code value) {
45 m_codeHasBeenSet = true;
46 m_code = value;
47 }
48 inline JobError& WithCode(Code value) {
49 SetCode(value);
50 return *this;
51 }
53
55
58 inline const Details& GetDetails() const { return m_details; }
59 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
60 template <typename DetailsT = Details>
61 void SetDetails(DetailsT&& value) {
62 m_detailsHasBeenSet = true;
63 m_details = std::forward<DetailsT>(value);
64 }
65 template <typename DetailsT = Details>
66 JobError& WithDetails(DetailsT&& value) {
67 SetDetails(std::forward<DetailsT>(value));
68 return *this;
69 }
71
73
76 inline JobErrorLimitName GetLimitName() const { return m_limitName; }
77 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
78 inline void SetLimitName(JobErrorLimitName value) {
79 m_limitNameHasBeenSet = true;
80 m_limitName = value;
81 }
83 SetLimitName(value);
84 return *this;
85 }
87
89
92 inline double GetLimitValue() const { return m_limitValue; }
93 inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
94 inline void SetLimitValue(double value) {
95 m_limitValueHasBeenSet = true;
96 m_limitValue = value;
97 }
98 inline JobError& WithLimitValue(double value) {
99 SetLimitValue(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetMessage() const { return m_message; }
109 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
110 template <typename MessageT = Aws::String>
111 void SetMessage(MessageT&& value) {
112 m_messageHasBeenSet = true;
113 m_message = std::forward<MessageT>(value);
114 }
115 template <typename MessageT = Aws::String>
116 JobError& WithMessage(MessageT&& value) {
117 SetMessage(std::forward<MessageT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetResourceId() const { return m_resourceId; }
127 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
128 template <typename ResourceIdT = Aws::String>
129 void SetResourceId(ResourceIdT&& value) {
130 m_resourceIdHasBeenSet = true;
131 m_resourceId = std::forward<ResourceIdT>(value);
132 }
133 template <typename ResourceIdT = Aws::String>
134 JobError& WithResourceId(ResourceIdT&& value) {
135 SetResourceId(std::forward<ResourceIdT>(value));
136 return *this;
137 }
139
141
144 inline JobErrorResourceTypes GetResourceType() const { return m_resourceType; }
145 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
147 m_resourceTypeHasBeenSet = true;
148 m_resourceType = value;
149 }
151 SetResourceType(value);
152 return *this;
153 }
155 private:
156 Code m_code{Code::NOT_SET};
157
158 Details m_details;
159
161
162 double m_limitValue{0.0};
163
164 Aws::String m_message;
165
166 Aws::String m_resourceId;
167
169 bool m_codeHasBeenSet = false;
170 bool m_detailsHasBeenSet = false;
171 bool m_limitNameHasBeenSet = false;
172 bool m_limitValueHasBeenSet = false;
173 bool m_messageHasBeenSet = false;
174 bool m_resourceIdHasBeenSet = false;
175 bool m_resourceTypeHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace DataExchange
180} // namespace Aws
JobError & WithResourceId(ResourceIdT &&value)
Definition JobError.h:134
JobError & WithMessage(MessageT &&value)
Definition JobError.h:116
JobError & WithLimitValue(double value)
Definition JobError.h:98
void SetLimitName(JobErrorLimitName value)
Definition JobError.h:78
void SetResourceId(ResourceIdT &&value)
Definition JobError.h:129
void SetResourceType(JobErrorResourceTypes value)
Definition JobError.h:146
AWS_DATAEXCHANGE_API JobError()=default
JobError & WithCode(Code value)
Definition JobError.h:48
const Aws::String & GetMessage() const
Definition JobError.h:108
const Details & GetDetails() const
Definition JobError.h:58
JobErrorLimitName GetLimitName() const
Definition JobError.h:76
JobErrorResourceTypes GetResourceType() const
Definition JobError.h:144
const Aws::String & GetResourceId() const
Definition JobError.h:126
void SetMessage(MessageT &&value)
Definition JobError.h:111
JobError & WithResourceType(JobErrorResourceTypes value)
Definition JobError.h:150
JobError & WithLimitName(JobErrorLimitName value)
Definition JobError.h:82
JobError & WithDetails(DetailsT &&value)
Definition JobError.h:66
void SetLimitValue(double value)
Definition JobError.h:94
AWS_DATAEXCHANGE_API JobError(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API JobError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetails(DetailsT &&value)
Definition JobError.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue