AWS SDK for C++  1.9.159
AWS SDK for C++
InvalidRequestException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace EMR
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
45 
49  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 
54  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
55 
59  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
60 
64  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
65 
69  inline InvalidRequestException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
70 
74  inline InvalidRequestException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
75 
79  inline InvalidRequestException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetMessage() const{ return m_message; }
86 
90  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 
95  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
96 
100  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
101 
105  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
106 
110  inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
111 
115  inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
120  inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
121 
122  private:
123 
124  Aws::String m_errorCode;
125  bool m_errorCodeHasBeenSet;
126 
127  Aws::String m_message;
128  bool m_messageHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace EMR
133 } // namespace Aws
Aws::EMR::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const Aws::String &value)
Definition: InvalidRequestException.h:110
Aws::EMR::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InvalidRequestException::SetMessage
void SetMessage(const char *value)
Definition: InvalidRequestException.h:105
EMR_EXPORTS.h
Aws::EMR::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const char *value)
Definition: InvalidRequestException.h:120
Aws::EMR::Model::InvalidRequestException::WithErrorCode
InvalidRequestException & WithErrorCode(const Aws::String &value)
Definition: InvalidRequestException.h:69
Aws::EMR::Model::InvalidRequestException::operator=
InvalidRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InvalidRequestException::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: InvalidRequestException.h:44
Aws::EMR::Model::InvalidRequestException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InvalidRequestException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidRequestException.h:85
Aws::EMR::Model::InvalidRequestException::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: InvalidRequestException.h:49
Aws::EMR::Model::InvalidRequestException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidRequestException.h:90
Aws::EMR::Model::InvalidRequestException::WithErrorCode
InvalidRequestException & WithErrorCode(Aws::String &&value)
Definition: InvalidRequestException.h:74
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::EMR::Model::InvalidRequestException::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: InvalidRequestException.h:54
Aws::EMR::Model::InvalidRequestException
Definition: InvalidRequestException.h:33
Aws::EMR::Model::InvalidRequestException::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: InvalidRequestException.h:59
Aws::EMR::Model::InvalidRequestException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidRequestException.h:100
Aws::EMR::Model::InvalidRequestException::WithErrorCode
InvalidRequestException & WithErrorCode(const char *value)
Definition: InvalidRequestException.h:79
Aws::EMR::Model::InvalidRequestException::SetErrorCode
void SetErrorCode(const char *value)
Definition: InvalidRequestException.h:64
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(Aws::String &&value)
Definition: InvalidRequestException.h:115
Aws::EMR::Model::InvalidRequestException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidRequestException.h:95
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28