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