AWS SDK for C++  1.9.154
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 Backup
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetCode() const{ return m_code; }
43 
44 
45  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
46 
47 
48  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
49 
50 
51  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 
53 
54  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
55 
56 
57  inline InvalidRequestException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
58 
59 
60  inline InvalidRequestException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
61 
62 
63  inline InvalidRequestException& WithCode(const char* value) { SetCode(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetMessage() const{ return m_message; }
68 
69 
70  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 
72 
73  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 
75 
76  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
77 
78 
79  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 
81 
82  inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 
84 
85  inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 
87 
88  inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
89 
90 
94  inline const Aws::String& GetType() const{ return m_type; }
95 
99  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 
104  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
105 
109  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
110 
114  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
115 
119  inline InvalidRequestException& WithType(const Aws::String& value) { SetType(value); return *this;}
120 
124  inline InvalidRequestException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
125 
129  inline InvalidRequestException& WithType(const char* value) { SetType(value); return *this;}
130 
131 
135  inline const Aws::String& GetContext() const{ return m_context; }
136 
140  inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
141 
145  inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
146 
150  inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
151 
155  inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
156 
160  inline InvalidRequestException& WithContext(const Aws::String& value) { SetContext(value); return *this;}
161 
165  inline InvalidRequestException& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
166 
170  inline InvalidRequestException& WithContext(const char* value) { SetContext(value); return *this;}
171 
172  private:
173 
174  Aws::String m_code;
175  bool m_codeHasBeenSet;
176 
177  Aws::String m_message;
178  bool m_messageHasBeenSet;
179 
180  Aws::String m_type;
181  bool m_typeHasBeenSet;
182 
183  Aws::String m_context;
184  bool m_contextHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace Backup
189 } // namespace Aws
Aws::Backup::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const char *value)
Definition: InvalidRequestException.h:88
Aws::Backup::Model::InvalidRequestException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::InvalidRequestException::WithContext
InvalidRequestException & WithContext(const Aws::String &value)
Definition: InvalidRequestException.h:160
Aws::Backup::Model::InvalidRequestException::SetContext
void SetContext(Aws::String &&value)
Definition: InvalidRequestException.h:150
Aws::Backup::Model::InvalidRequestException::SetType
void SetType(const char *value)
Definition: InvalidRequestException.h:114
Aws::Backup::Model::InvalidRequestException::SetCode
void SetCode(Aws::String &&value)
Definition: InvalidRequestException.h:51
Aws::Backup::Model::InvalidRequestException::WithType
InvalidRequestException & WithType(const char *value)
Definition: InvalidRequestException.h:129
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::InvalidRequestException::SetCode
void SetCode(const Aws::String &value)
Definition: InvalidRequestException.h:48
Aws::Backup::Model::InvalidRequestException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InvalidRequestException.h:45
Aws::Backup::Model::InvalidRequestException::WithType
InvalidRequestException & WithType(const Aws::String &value)
Definition: InvalidRequestException.h:119
Aws::Backup::Model::InvalidRequestException::WithContext
InvalidRequestException & WithContext(const char *value)
Definition: InvalidRequestException.h:170
Aws::Backup::Model::InvalidRequestException::WithContext
InvalidRequestException & WithContext(Aws::String &&value)
Definition: InvalidRequestException.h:165
Aws::Backup::Model::InvalidRequestException::operator=
InvalidRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(Aws::String &&value)
Definition: InvalidRequestException.h:85
Aws::Backup::Model::InvalidRequestException::WithMessage
InvalidRequestException & WithMessage(const Aws::String &value)
Definition: InvalidRequestException.h:82
Aws::Backup::Model::InvalidRequestException::GetType
const Aws::String & GetType() const
Definition: InvalidRequestException.h:94
Aws::Backup::Model::InvalidRequestException::GetContext
const Aws::String & GetContext() const
Definition: InvalidRequestException.h:135
Aws::Backup::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::InvalidRequestException::ContextHasBeenSet
bool ContextHasBeenSet() const
Definition: InvalidRequestException.h:140
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Backup::Model::InvalidRequestException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InvalidRequestException.h:99
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Backup::Model::InvalidRequestException::WithCode
InvalidRequestException & WithCode(const Aws::String &value)
Definition: InvalidRequestException.h:57
Aws::Backup::Model::InvalidRequestException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidRequestException.h:76
Aws::Backup::Model::InvalidRequestException::WithCode
InvalidRequestException & WithCode(const char *value)
Definition: InvalidRequestException.h:63
Aws::Backup::Model::InvalidRequestException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidRequestException.h:73
Backup_EXPORTS.h
Aws::Backup::Model::InvalidRequestException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidRequestException.h:70
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::InvalidRequestException::SetContext
void SetContext(const Aws::String &value)
Definition: InvalidRequestException.h:145
Aws::Backup::Model::InvalidRequestException::SetType
void SetType(const Aws::String &value)
Definition: InvalidRequestException.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::InvalidRequestException
Definition: InvalidRequestException.h:33
Aws::Backup::Model::InvalidRequestException::InvalidRequestException
InvalidRequestException()
Aws::Backup::Model::InvalidRequestException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidRequestException.h:67
Aws::Backup::Model::InvalidRequestException::GetCode
const Aws::String & GetCode() const
Definition: InvalidRequestException.h:42
Aws::Backup::Model::InvalidRequestException::SetContext
void SetContext(const char *value)
Definition: InvalidRequestException.h:155
Aws::Backup::Model::InvalidRequestException::WithCode
InvalidRequestException & WithCode(Aws::String &&value)
Definition: InvalidRequestException.h:60
Aws::Backup::Model::InvalidRequestException::SetCode
void SetCode(const char *value)
Definition: InvalidRequestException.h:54
Aws::Backup::Model::InvalidRequestException::SetType
void SetType(Aws::String &&value)
Definition: InvalidRequestException.h:109
Aws::Backup::Model::InvalidRequestException::WithType
InvalidRequestException & WithType(Aws::String &&value)
Definition: InvalidRequestException.h:124
Aws::Backup::Model::InvalidRequestException::SetMessage
void SetMessage(const char *value)
Definition: InvalidRequestException.h:79