AWS SDK for C++  1.9.104
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 Athena
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetAthenaErrorCode() const{ return m_athenaErrorCode; }
44 
45 
46  inline bool AthenaErrorCodeHasBeenSet() const { return m_athenaErrorCodeHasBeenSet; }
47 
48 
49  inline void SetAthenaErrorCode(const Aws::String& value) { m_athenaErrorCodeHasBeenSet = true; m_athenaErrorCode = value; }
50 
51 
52  inline void SetAthenaErrorCode(Aws::String&& value) { m_athenaErrorCodeHasBeenSet = true; m_athenaErrorCode = std::move(value); }
53 
54 
55  inline void SetAthenaErrorCode(const char* value) { m_athenaErrorCodeHasBeenSet = true; m_athenaErrorCode.assign(value); }
56 
57 
58  inline InvalidRequestException& WithAthenaErrorCode(const Aws::String& value) { SetAthenaErrorCode(value); return *this;}
59 
60 
61  inline InvalidRequestException& WithAthenaErrorCode(Aws::String&& value) { SetAthenaErrorCode(std::move(value)); return *this;}
62 
63 
64  inline InvalidRequestException& WithAthenaErrorCode(const char* value) { SetAthenaErrorCode(value); return *this;}
65 
66 
67 
68  inline const Aws::String& GetMessage() const{ return m_message; }
69 
70 
71  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 
73 
74  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 
76 
77  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
78 
79 
80  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
81 
82 
83  inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
84 
85 
86  inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
87 
88 
89  inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
90 
91  private:
92 
93  Aws::String m_athenaErrorCode;
94  bool m_athenaErrorCodeHasBeenSet;
95 
96  Aws::String m_message;
97  bool m_messageHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace Athena
102 } // namespace Aws
Aws::Athena::Model::InvalidRequestException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidRequestException.h:68
Aws::Athena::Model::InvalidRequestException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidRequestException.h:71
Aws::Athena::Model::InvalidRequestException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidRequestException.h:77
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::InvalidRequestException::WithAthenaErrorCode
InvalidRequestException & WithAthenaErrorCode(const char *value)
Definition: InvalidRequestException.h:64
Aws::Athena::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(Aws::String &&value)
Definition: InvalidRequestException.h:86
Aws::Athena::Model::InvalidRequestException::SetAthenaErrorCode
void SetAthenaErrorCode(const char *value)
Definition: InvalidRequestException.h:55
Aws::Athena::Model::InvalidRequestException::operator=
InvalidRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::InvalidRequestException::GetAthenaErrorCode
const Aws::String & GetAthenaErrorCode() const
Definition: InvalidRequestException.h:43
Aws::Athena::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const char *value)
Definition: InvalidRequestException.h:89
Aws::Athena::Model::InvalidRequestException::SetAthenaErrorCode
void SetAthenaErrorCode(const Aws::String &value)
Definition: InvalidRequestException.h:49
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::InvalidRequestException::SetMessage
void SetMessage(const char *value)
Definition: InvalidRequestException.h:80
Aws::Athena::Model::InvalidRequestException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::InvalidRequestException::WithAthenaErrorCode
InvalidRequestException & WithAthenaErrorCode(Aws::String &&value)
Definition: InvalidRequestException.h:61
Aws::Athena::Model::InvalidRequestException
Definition: InvalidRequestException.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::InvalidRequestException::AthenaErrorCodeHasBeenSet
bool AthenaErrorCodeHasBeenSet() const
Definition: InvalidRequestException.h:46
Aws::Athena::Model::InvalidRequestException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidRequestException.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::InvalidRequestException::WithAthenaErrorCode
InvalidRequestException & WithAthenaErrorCode(const Aws::String &value)
Definition: InvalidRequestException.h:58
Aws::Athena::Model::InvalidRequestException::SetAthenaErrorCode
void SetAthenaErrorCode(Aws::String &&value)
Definition: InvalidRequestException.h:52
Aws::Athena::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException()
Aws::Athena::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const Aws::String &value)
Definition: InvalidRequestException.h:83