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/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/JobErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ACCESSANALYZER_API JobError();
37 AWS_ACCESSANALYZER_API JobError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API JobError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const JobErrorCode& GetCode() const{ return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(const JobErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(JobErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline JobError& WithCode(const JobErrorCode& value) { SetCode(value); return *this;}
51 inline JobError& WithCode(JobErrorCode&& value) { SetCode(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;}
68 private:
69
70 JobErrorCode m_code;
71 bool m_codeHasBeenSet = false;
72
73 Aws::String m_message;
74 bool m_messageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AccessAnalyzer
79} // namespace Aws
const JobErrorCode & GetCode() const
Definition JobError.h:46
AWS_ACCESSANALYZER_API JobError(Aws::Utils::Json::JsonView jsonValue)
JobError & WithMessage(const char *value)
Definition JobError.h:66
void SetMessage(Aws::String &&value)
Definition JobError.h:62
JobError & WithMessage(const Aws::String &value)
Definition JobError.h:64
JobError & WithMessage(Aws::String &&value)
Definition JobError.h:65
JobError & WithCode(const JobErrorCode &value)
Definition JobError.h:50
void SetMessage(const char *value)
Definition JobError.h:63
void SetCode(const JobErrorCode &value)
Definition JobError.h:48
const Aws::String & GetMessage() const
Definition JobError.h:59
void SetMessage(const Aws::String &value)
Definition JobError.h:61
JobError & WithCode(JobErrorCode &&value)
Definition JobError.h:51
AWS_ACCESSANALYZER_API JobError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(JobErrorCode &&value)
Definition JobError.h:49
AWS_ACCESSANALYZER_API JobError()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue