AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Code& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const Code& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(Code&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline JobError& WithCode(const Code& value) { SetCode(value); return *this;}
53 inline JobError& WithCode(Code&& value) { SetCode(std::move(value)); return *this;}
55
57
60 inline const Details& GetDetails() const{ return m_details; }
61 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
62 inline void SetDetails(const Details& value) { m_detailsHasBeenSet = true; m_details = value; }
63 inline void SetDetails(Details&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
64 inline JobError& WithDetails(const Details& value) { SetDetails(value); return *this;}
65 inline JobError& WithDetails(Details&& value) { SetDetails(std::move(value)); return *this;}
67
69
72 inline const JobErrorLimitName& GetLimitName() const{ return m_limitName; }
73 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
74 inline void SetLimitName(const JobErrorLimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
75 inline void SetLimitName(JobErrorLimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
76 inline JobError& WithLimitName(const JobErrorLimitName& value) { SetLimitName(value); return *this;}
77 inline JobError& WithLimitName(JobErrorLimitName&& value) { SetLimitName(std::move(value)); return *this;}
79
81
84 inline double GetLimitValue() const{ return m_limitValue; }
85 inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
86 inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; }
87 inline JobError& WithLimitValue(double value) { SetLimitValue(value); return *this;}
89
91
94 inline const Aws::String& GetMessage() const{ return m_message; }
95 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
96 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
97 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
98 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
99 inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
100 inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
101 inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;}
103
105
108 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
109 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
110 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
111 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
112 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
113 inline JobError& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
114 inline JobError& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
115 inline JobError& WithResourceId(const char* value) { SetResourceId(value); return *this;}
117
119
122 inline const JobErrorResourceTypes& GetResourceType() const{ return m_resourceType; }
123 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
124 inline void SetResourceType(const JobErrorResourceTypes& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
125 inline void SetResourceType(JobErrorResourceTypes&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
126 inline JobError& WithResourceType(const JobErrorResourceTypes& value) { SetResourceType(value); return *this;}
127 inline JobError& WithResourceType(JobErrorResourceTypes&& value) { SetResourceType(std::move(value)); return *this;}
129 private:
130
131 Code m_code;
132 bool m_codeHasBeenSet = false;
133
134 Details m_details;
135 bool m_detailsHasBeenSet = false;
136
137 JobErrorLimitName m_limitName;
138 bool m_limitNameHasBeenSet = false;
139
140 double m_limitValue;
141 bool m_limitValueHasBeenSet = false;
142
143 Aws::String m_message;
144 bool m_messageHasBeenSet = false;
145
146 Aws::String m_resourceId;
147 bool m_resourceIdHasBeenSet = false;
148
149 JobErrorResourceTypes m_resourceType;
150 bool m_resourceTypeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace DataExchange
155} // namespace Aws
JobError & WithCode(Code &&value)
Definition JobError.h:53
JobError & WithResourceId(Aws::String &&value)
Definition JobError.h:114
JobError & WithLimitValue(double value)
Definition JobError.h:87
JobError & WithMessage(const Aws::String &value)
Definition JobError.h:99
void SetMessage(const Aws::String &value)
Definition JobError.h:96
void SetDetails(const Details &value)
Definition JobError.h:62
JobError & WithResourceType(const JobErrorResourceTypes &value)
Definition JobError.h:126
void SetCode(const Code &value)
Definition JobError.h:50
AWS_DATAEXCHANGE_API JobError()
JobError & WithLimitName(JobErrorLimitName &&value)
Definition JobError.h:77
JobError & WithDetails(const Details &value)
Definition JobError.h:64
void SetLimitName(const JobErrorLimitName &value)
Definition JobError.h:74
void SetDetails(Details &&value)
Definition JobError.h:63
const Aws::String & GetMessage() const
Definition JobError.h:94
const Details & GetDetails() const
Definition JobError.h:60
void SetResourceId(const char *value)
Definition JobError.h:112
const Aws::String & GetResourceId() const
Definition JobError.h:108
const Code & GetCode() const
Definition JobError.h:48
JobError & WithMessage(Aws::String &&value)
Definition JobError.h:100
void SetMessage(const char *value)
Definition JobError.h:98
void SetResourceId(const Aws::String &value)
Definition JobError.h:110
JobError & WithDetails(Details &&value)
Definition JobError.h:65
void SetResourceType(JobErrorResourceTypes &&value)
Definition JobError.h:125
void SetLimitName(JobErrorLimitName &&value)
Definition JobError.h:75
void SetResourceType(const JobErrorResourceTypes &value)
Definition JobError.h:124
void SetLimitValue(double value)
Definition JobError.h:86
void SetResourceId(Aws::String &&value)
Definition JobError.h:111
JobError & WithMessage(const char *value)
Definition JobError.h:101
JobError & WithCode(const Code &value)
Definition JobError.h:52
JobError & WithResourceId(const Aws::String &value)
Definition JobError.h:113
const JobErrorResourceTypes & GetResourceType() const
Definition JobError.h:122
JobError & WithResourceType(JobErrorResourceTypes &&value)
Definition JobError.h:127
AWS_DATAEXCHANGE_API JobError(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API JobError & operator=(Aws::Utils::Json::JsonView jsonValue)
const JobErrorLimitName & GetLimitName() const
Definition JobError.h:72
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
JobError & WithLimitName(const JobErrorLimitName &value)
Definition JobError.h:76
JobError & WithResourceId(const char *value)
Definition JobError.h:115
void SetMessage(Aws::String &&value)
Definition JobError.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue