AWS SDK for C++  1.9.108
AWS SDK for C++
InvalidInputException.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 MachineLearning
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline InvalidInputException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline InvalidInputException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline InvalidInputException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
66 
67  inline int GetCode() const{ return m_code; }
68 
69 
70  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
71 
72 
73  inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
74 
75 
76  inline InvalidInputException& WithCode(int value) { SetCode(value); return *this;}
77 
78  private:
79 
80  Aws::String m_message;
81  bool m_messageHasBeenSet;
82 
83  int m_code;
84  bool m_codeHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace MachineLearning
89 } // namespace Aws
Aws::MachineLearning::Model::InvalidInputException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InvalidInputException.h:70
Aws::MachineLearning::Model::InvalidInputException::SetCode
void SetCode(int value)
Definition: InvalidInputException.h:73
Aws::MachineLearning::Model::InvalidInputException::InvalidInputException
InvalidInputException()
Aws::MachineLearning::Model::InvalidInputException
Definition: InvalidInputException.h:33
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::InvalidInputException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidInputException.h:42
Aws::MachineLearning::Model::InvalidInputException::GetCode
int GetCode() const
Definition: InvalidInputException.h:67
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::InvalidInputException::InvalidInputException
InvalidInputException(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::InvalidInputException::WithMessage
InvalidInputException & WithMessage(const char *value)
Definition: InvalidInputException.h:63
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MachineLearning::Model::InvalidInputException::operator=
InvalidInputException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MachineLearning::Model::InvalidInputException::WithCode
InvalidInputException & WithCode(int value)
Definition: InvalidInputException.h:76
Aws::MachineLearning::Model::InvalidInputException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidInputException.h:45
Aws::MachineLearning::Model::InvalidInputException::WithMessage
InvalidInputException & WithMessage(const Aws::String &value)
Definition: InvalidInputException.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::InvalidInputException::SetMessage
void SetMessage(const char *value)
Definition: InvalidInputException.h:54
Aws::MachineLearning::Model::InvalidInputException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidInputException.h:51
Aws::MachineLearning::Model::InvalidInputException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::InvalidInputException::WithMessage
InvalidInputException & WithMessage(Aws::String &&value)
Definition: InvalidInputException.h:60
Aws::MachineLearning::Model::InvalidInputException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidInputException.h:48