AWS SDK for C++  1.9.154
AWS SDK for C++
InvalidResourceStateException.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 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetCode() const{ return m_code; }
44 
45 
46  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 
48 
49  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
50 
51 
52  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
53 
54 
55  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
56 
57 
58  inline InvalidResourceStateException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
59 
60 
61  inline InvalidResourceStateException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
62 
63 
64  inline InvalidResourceStateException& WithCode(const char* value) { SetCode(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 InvalidResourceStateException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
84 
85 
86  inline InvalidResourceStateException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
87 
88 
89  inline InvalidResourceStateException& WithMessage(const char* value) { SetMessage(value); return *this;}
90 
91 
95  inline const Aws::String& GetType() const{ return m_type; }
96 
100  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 
105  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
106 
110  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 
115  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
116 
120  inline InvalidResourceStateException& WithType(const Aws::String& value) { SetType(value); return *this;}
121 
125  inline InvalidResourceStateException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
126 
130  inline InvalidResourceStateException& WithType(const char* value) { SetType(value); return *this;}
131 
132 
136  inline const Aws::String& GetContext() const{ return m_context; }
137 
141  inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
142 
146  inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
147 
151  inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
152 
156  inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
157 
161  inline InvalidResourceStateException& WithContext(const Aws::String& value) { SetContext(value); return *this;}
162 
166  inline InvalidResourceStateException& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
167 
171  inline InvalidResourceStateException& WithContext(const char* value) { SetContext(value); return *this;}
172 
173  private:
174 
175  Aws::String m_code;
176  bool m_codeHasBeenSet;
177 
178  Aws::String m_message;
179  bool m_messageHasBeenSet;
180 
181  Aws::String m_type;
182  bool m_typeHasBeenSet;
183 
184  Aws::String m_context;
185  bool m_contextHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace Backup
190 } // namespace Aws
Aws::Backup::Model::InvalidResourceStateException::SetContext
void SetContext(const char *value)
Definition: InvalidResourceStateException.h:156
Aws::Backup::Model::InvalidResourceStateException::WithCode
InvalidResourceStateException & WithCode(Aws::String &&value)
Definition: InvalidResourceStateException.h:61
Aws::Backup::Model::InvalidResourceStateException::InvalidResourceStateException
InvalidResourceStateException()
Aws::Backup::Model::InvalidResourceStateException::SetMessage
void SetMessage(const char *value)
Definition: InvalidResourceStateException.h:80
Aws::Backup::Model::InvalidResourceStateException::SetCode
void SetCode(Aws::String &&value)
Definition: InvalidResourceStateException.h:52
Aws::Backup::Model::InvalidResourceStateException::SetCode
void SetCode(const Aws::String &value)
Definition: InvalidResourceStateException.h:49
Aws::Backup::Model::InvalidResourceStateException::WithMessage
InvalidResourceStateException & WithMessage(Aws::String &&value)
Definition: InvalidResourceStateException.h:86
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::InvalidResourceStateException::WithCode
InvalidResourceStateException & WithCode(const Aws::String &value)
Definition: InvalidResourceStateException.h:58
Aws::Backup::Model::InvalidResourceStateException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::InvalidResourceStateException::SetContext
void SetContext(const Aws::String &value)
Definition: InvalidResourceStateException.h:146
Aws::Backup::Model::InvalidResourceStateException::WithType
InvalidResourceStateException & WithType(const Aws::String &value)
Definition: InvalidResourceStateException.h:120
Aws::Backup::Model::InvalidResourceStateException::SetCode
void SetCode(const char *value)
Definition: InvalidResourceStateException.h:55
Aws::Backup::Model::InvalidResourceStateException::SetType
void SetType(const char *value)
Definition: InvalidResourceStateException.h:115
Aws::Backup::Model::InvalidResourceStateException::SetType
void SetType(const Aws::String &value)
Definition: InvalidResourceStateException.h:105
Aws::Backup::Model::InvalidResourceStateException::InvalidResourceStateException
InvalidResourceStateException(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::InvalidResourceStateException
Definition: InvalidResourceStateException.h:34
Aws::Backup::Model::InvalidResourceStateException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidResourceStateException.h:74
Aws::Backup::Model::InvalidResourceStateException::WithCode
InvalidResourceStateException & WithCode(const char *value)
Definition: InvalidResourceStateException.h:64
Aws::Backup::Model::InvalidResourceStateException::SetContext
void SetContext(Aws::String &&value)
Definition: InvalidResourceStateException.h:151
Aws::Backup::Model::InvalidResourceStateException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InvalidResourceStateException.h:100
Aws::Backup::Model::InvalidResourceStateException::operator=
InvalidResourceStateException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::InvalidResourceStateException::WithMessage
InvalidResourceStateException & WithMessage(const char *value)
Definition: InvalidResourceStateException.h:89
Aws::Backup::Model::InvalidResourceStateException::SetType
void SetType(Aws::String &&value)
Definition: InvalidResourceStateException.h:110
Aws::Backup::Model::InvalidResourceStateException::GetContext
const Aws::String & GetContext() const
Definition: InvalidResourceStateException.h:136
Aws::Backup::Model::InvalidResourceStateException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InvalidResourceStateException.h:46
Aws::Backup::Model::InvalidResourceStateException::ContextHasBeenSet
bool ContextHasBeenSet() const
Definition: InvalidResourceStateException.h:141
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Backup::Model::InvalidResourceStateException::WithContext
InvalidResourceStateException & WithContext(Aws::String &&value)
Definition: InvalidResourceStateException.h:166
Aws::Backup::Model::InvalidResourceStateException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidResourceStateException.h:68
Backup_EXPORTS.h
Aws::Backup::Model::InvalidResourceStateException::WithType
InvalidResourceStateException & WithType(const char *value)
Definition: InvalidResourceStateException.h:130
Aws::Backup::Model::InvalidResourceStateException::WithContext
InvalidResourceStateException & WithContext(const char *value)
Definition: InvalidResourceStateException.h:171
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::InvalidResourceStateException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidResourceStateException.h:71
Aws::Backup::Model::InvalidResourceStateException::WithType
InvalidResourceStateException & WithType(Aws::String &&value)
Definition: InvalidResourceStateException.h:125
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::InvalidResourceStateException::WithMessage
InvalidResourceStateException & WithMessage(const Aws::String &value)
Definition: InvalidResourceStateException.h:83
Aws::Backup::Model::InvalidResourceStateException::GetType
const Aws::String & GetType() const
Definition: InvalidResourceStateException.h:95
Aws::Backup::Model::InvalidResourceStateException::WithContext
InvalidResourceStateException & WithContext(const Aws::String &value)
Definition: InvalidResourceStateException.h:161
Aws::Backup::Model::InvalidResourceStateException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidResourceStateException.h:77
Aws::Backup::Model::InvalidResourceStateException::GetCode
const Aws::String & GetCode() const
Definition: InvalidResourceStateException.h:43