AWS SDK for C++  1.9.19
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 Glacier
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 
69  inline ResourceNotFoundException& WithType(const Aws::String& value) { SetType(value); return *this;}
70 
74  inline ResourceNotFoundException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
75 
79  inline ResourceNotFoundException& WithType(const char* value) { SetType(value); return *this;}
80 
81 
85  inline const Aws::String& GetCode() const{ return m_code; }
86 
90  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
91 
95  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
96 
100  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
101 
105  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
106 
110  inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
111 
115  inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
116 
120  inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;}
121 
122 
127  inline const Aws::String& GetMessage() const{ return m_message; }
128 
133  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
134 
139  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
140 
145  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
146 
151  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
152 
157  inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
158 
163  inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
164 
169  inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
170 
171  private:
172 
173  Aws::String m_type;
174  bool m_typeHasBeenSet;
175 
176  Aws::String m_code;
177  bool m_codeHasBeenSet;
178 
179  Aws::String m_message;
180  bool m_messageHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace Glacier
185 } // namespace Aws
Aws::Glacier::Model::ResourceNotFoundException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceNotFoundException.h:133
Aws::Glacier::Model::ResourceNotFoundException::SetMessage
void SetMessage(const char *value)
Definition: ResourceNotFoundException.h:151
Aws::Glacier::Model::ResourceNotFoundException::WithMessage
ResourceNotFoundException & WithMessage(Aws::String &&value)
Definition: ResourceNotFoundException.h:163
Aws::Glacier::Model::ResourceNotFoundException::GetType
const Aws::String & GetType() const
Definition: ResourceNotFoundException.h:44
Aws::Glacier::Model::ResourceNotFoundException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceNotFoundException.h:145
Aws::Glacier::Model::ResourceNotFoundException::WithCode
ResourceNotFoundException & WithCode(const Aws::String &value)
Definition: ResourceNotFoundException.h:110
Aws::Glacier::Model::ResourceNotFoundException::ResourceNotFoundException
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::ResourceNotFoundException::GetCode
const Aws::String & GetCode() const
Definition: ResourceNotFoundException.h:85
Aws::Glacier::Model::ResourceNotFoundException::SetCode
void SetCode(Aws::String &&value)
Definition: ResourceNotFoundException.h:100
Aws::Glacier::Model::ResourceNotFoundException
Definition: ResourceNotFoundException.h:33
Aws::Glacier::Model::ResourceNotFoundException::WithType
ResourceNotFoundException & WithType(Aws::String &&value)
Definition: ResourceNotFoundException.h:74
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::ResourceNotFoundException::SetType
void SetType(const char *value)
Definition: ResourceNotFoundException.h:64
Aws::Glacier::Model::ResourceNotFoundException::SetCode
void SetCode(const Aws::String &value)
Definition: ResourceNotFoundException.h:95
Aws::Glacier::Model::ResourceNotFoundException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceNotFoundException.h:139
Aws::Glacier::Model::ResourceNotFoundException::WithType
ResourceNotFoundException & WithType(const Aws::String &value)
Definition: ResourceNotFoundException.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Glacier::Model::ResourceNotFoundException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ResourceNotFoundException.h:90
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Glacier::Model::ResourceNotFoundException::WithCode
ResourceNotFoundException & WithCode(Aws::String &&value)
Definition: ResourceNotFoundException.h:115
Aws::Glacier::Model::ResourceNotFoundException::WithType
ResourceNotFoundException & WithType(const char *value)
Definition: ResourceNotFoundException.h:79
Aws::Glacier::Model::ResourceNotFoundException::ResourceNotFoundException
ResourceNotFoundException()
Aws::Glacier::Model::ResourceNotFoundException::WithMessage
ResourceNotFoundException & WithMessage(const Aws::String &value)
Definition: ResourceNotFoundException.h:157
Aws::Glacier::Model::ResourceNotFoundException::operator=
ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::ResourceNotFoundException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceNotFoundException.h:127
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::ResourceNotFoundException::WithMessage
ResourceNotFoundException & WithMessage(const char *value)
Definition: ResourceNotFoundException.h:169
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::ResourceNotFoundException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::ResourceNotFoundException::SetCode
void SetCode(const char *value)
Definition: ResourceNotFoundException.h:105
Aws::Glacier::Model::ResourceNotFoundException::SetType
void SetType(const Aws::String &value)
Definition: ResourceNotFoundException.h:54
Aws::Glacier::Model::ResourceNotFoundException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ResourceNotFoundException.h:49
Aws::Glacier::Model::ResourceNotFoundException::SetType
void SetType(Aws::String &&value)
Definition: ResourceNotFoundException.h:59
Aws::Glacier::Model::ResourceNotFoundException::WithCode
ResourceNotFoundException & WithCode(const char *value)
Definition: ResourceNotFoundException.h:120
Glacier_EXPORTS.h