AWS SDK for C++  1.9.157
AWS SDK for C++
JobError.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AccessAnalyzer
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const JobErrorCode& GetCode() const{ return m_code; }
46 
50  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 
55  inline void SetCode(const JobErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(JobErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 
65  inline JobError& WithCode(const JobErrorCode& value) { SetCode(value); return *this;}
66 
70  inline JobError& WithCode(JobErrorCode&& value) { SetCode(std::move(value)); return *this;}
71 
72 
77  inline const Aws::String& GetMessage() const{ return m_message; }
78 
83  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 
89  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
90 
95  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
96 
101  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
102 
107  inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
108 
113  inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
114 
119  inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;}
120 
121  private:
122 
123  JobErrorCode m_code;
124  bool m_codeHasBeenSet;
125 
126  Aws::String m_message;
127  bool m_messageHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace AccessAnalyzer
132 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::JobErrorCode
JobErrorCode
Definition: JobErrorCode.h:17
Aws::AccessAnalyzer::Model::JobError::JobError
JobError()
Aws::AccessAnalyzer::Model::JobError::WithCode
JobError & WithCode(JobErrorCode &&value)
Definition: JobError.h:70
Aws::AccessAnalyzer::Model::JobError::JobError
JobError(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::JobError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::JobError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: JobError.h:83
Aws::AccessAnalyzer::Model::JobError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: JobError.h:50
Aws::AccessAnalyzer::Model::JobError::SetMessage
void SetMessage(Aws::String &&value)
Definition: JobError.h:95
Aws::AccessAnalyzer::Model::JobError::SetMessage
void SetMessage(const char *value)
Definition: JobError.h:101
Aws::AccessAnalyzer::Model::JobError::SetCode
void SetCode(JobErrorCode &&value)
Definition: JobError.h:60
Aws::AccessAnalyzer::Model::JobError
Definition: JobError.h:34
Aws::AccessAnalyzer::Model::JobError::WithMessage
JobError & WithMessage(const Aws::String &value)
Definition: JobError.h:107
Aws::AccessAnalyzer::Model::JobError::GetCode
const JobErrorCode & GetCode() const
Definition: JobError.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
JobErrorCode.h
Aws::AccessAnalyzer::Model::JobError::WithCode
JobError & WithCode(const JobErrorCode &value)
Definition: JobError.h:65
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::JobError::SetCode
void SetCode(const JobErrorCode &value)
Definition: JobError.h:55
Aws::AccessAnalyzer::Model::JobError::operator=
JobError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::JobError::SetMessage
void SetMessage(const Aws::String &value)
Definition: JobError.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::JobError::WithMessage
JobError & WithMessage(Aws::String &&value)
Definition: JobError.h:113
Aws::AccessAnalyzer::Model::JobError::GetMessage
const Aws::String & GetMessage() const
Definition: JobError.h:77
Aws::AccessAnalyzer::Model::JobError::WithMessage
JobError & WithMessage(const char *value)
Definition: JobError.h:119