AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
JobError.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/model/Code.h>
9#include <aws/dataexchange/model/Details.h>
10#include <aws/dataexchange/model/JobErrorLimitName.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dataexchange/model/JobErrorResourceTypes.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataExchange
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DATAEXCHANGE_API JobError() = default;
39 AWS_DATAEXCHANGE_API JobError(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAEXCHANGE_API JobError& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline Code GetCode() const { return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(Code value) { m_codeHasBeenSet = true; m_code = value; }
51 inline JobError& WithCode(Code value) { SetCode(value); return *this;}
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) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
62 template<typename DetailsT = Details>
63 JobError& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
65
67
70 inline JobErrorLimitName GetLimitName() const { return m_limitName; }
71 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
72 inline void SetLimitName(JobErrorLimitName value) { m_limitNameHasBeenSet = true; m_limitName = value; }
73 inline JobError& WithLimitName(JobErrorLimitName value) { SetLimitName(value); return *this;}
75
77
80 inline double GetLimitValue() const { return m_limitValue; }
81 inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
82 inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; }
83 inline JobError& WithLimitValue(double value) { SetLimitValue(value); return *this;}
85
87
90 inline const Aws::String& GetMessage() const { return m_message; }
91 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 template<typename MessageT = Aws::String>
93 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
94 template<typename MessageT = Aws::String>
95 JobError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
97
99
102 inline const Aws::String& GetResourceId() const { return m_resourceId; }
103 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
104 template<typename ResourceIdT = Aws::String>
105 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
106 template<typename ResourceIdT = Aws::String>
107 JobError& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
109
111
114 inline JobErrorResourceTypes GetResourceType() const { return m_resourceType; }
115 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
116 inline void SetResourceType(JobErrorResourceTypes value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
117 inline JobError& WithResourceType(JobErrorResourceTypes value) { SetResourceType(value); return *this;}
119 private:
120
121 Code m_code{Code::NOT_SET};
122 bool m_codeHasBeenSet = false;
123
124 Details m_details;
125 bool m_detailsHasBeenSet = false;
126
128 bool m_limitNameHasBeenSet = false;
129
130 double m_limitValue{0.0};
131 bool m_limitValueHasBeenSet = false;
132
133 Aws::String m_message;
134 bool m_messageHasBeenSet = false;
135
136 Aws::String m_resourceId;
137 bool m_resourceIdHasBeenSet = false;
138
140 bool m_resourceTypeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace DataExchange
145} // namespace Aws
JobError & WithResourceId(ResourceIdT &&value)
Definition JobError.h:107
JobError & WithMessage(MessageT &&value)
Definition JobError.h:95
JobError & WithLimitValue(double value)
Definition JobError.h:83
void SetLimitName(JobErrorLimitName value)
Definition JobError.h:72
void SetResourceId(ResourceIdT &&value)
Definition JobError.h:105
void SetResourceType(JobErrorResourceTypes value)
Definition JobError.h:116
AWS_DATAEXCHANGE_API JobError()=default
JobError & WithCode(Code value)
Definition JobError.h:51
const Aws::String & GetMessage() const
Definition JobError.h:90
const Details & GetDetails() const
Definition JobError.h:58
JobErrorLimitName GetLimitName() const
Definition JobError.h:70
JobErrorResourceTypes GetResourceType() const
Definition JobError.h:114
const Aws::String & GetResourceId() const
Definition JobError.h:102
void SetMessage(MessageT &&value)
Definition JobError.h:93
JobError & WithResourceType(JobErrorResourceTypes value)
Definition JobError.h:117
JobError & WithLimitName(JobErrorLimitName value)
Definition JobError.h:73
JobError & WithDetails(DetailsT &&value)
Definition JobError.h:63
void SetLimitValue(double value)
Definition JobError.h:82
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