AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Error.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
30 class Error
31 {
32 public:
33 AWS_S3_API Error();
34 AWS_S3_API Error(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_S3_API Error& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
44 inline const Aws::String& GetKey() const{ return m_key; }
45 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
46 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
47 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
48 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
49 inline Error& WithKey(const Aws::String& value) { SetKey(value); return *this;}
50 inline Error& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
51 inline Error& WithKey(const char* value) { SetKey(value); return *this;}
53
55
59 inline const Aws::String& GetVersionId() const{ return m_versionId; }
60 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
61 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
62 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
63 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
64 inline Error& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
65 inline Error& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
66 inline Error& WithVersionId(const char* value) { SetVersionId(value); return *this;}
68
70
435 inline const Aws::String& GetCode() const{ return m_code; }
436 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
437 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
438 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
439 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
440 inline Error& WithCode(const Aws::String& value) { SetCode(value); return *this;}
441 inline Error& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
442 inline Error& WithCode(const char* value) { SetCode(value); return *this;}
444
446
454 inline const Aws::String& GetMessage() const{ return m_message; }
455 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
456 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
457 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
458 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
459 inline Error& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
460 inline Error& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
461 inline Error& WithMessage(const char* value) { SetMessage(value); return *this;}
463 private:
464
465 Aws::String m_key;
466 bool m_keyHasBeenSet = false;
467
468 Aws::String m_versionId;
469 bool m_versionIdHasBeenSet = false;
470
471 Aws::String m_code;
472 bool m_codeHasBeenSet = false;
473
474 Aws::String m_message;
475 bool m_messageHasBeenSet = false;
476 };
477
478} // namespace Model
479} // namespace S3
480} // namespace Aws
bool MessageHasBeenSet() const
Definition Error.h:455
Error & WithVersionId(const char *value)
Definition Error.h:66
void SetCode(const Aws::String &value)
Definition Error.h:437
Error & WithVersionId(Aws::String &&value)
Definition Error.h:65
void SetKey(const char *value)
Definition Error.h:48
AWS_S3_API Error & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const Aws::String &value)
Definition Error.h:456
AWS_S3_API Error(const Aws::Utils::Xml::XmlNode &xmlNode)
Error & WithMessage(Aws::String &&value)
Definition Error.h:460
Error & WithVersionId(const Aws::String &value)
Definition Error.h:64
void SetKey(const Aws::String &value)
Definition Error.h:46
Error & WithKey(const Aws::String &value)
Definition Error.h:49
void SetMessage(const char *value)
Definition Error.h:458
Error & WithCode(const char *value)
Definition Error.h:442
Error & WithKey(const char *value)
Definition Error.h:51
void SetKey(Aws::String &&value)
Definition Error.h:47
void SetVersionId(const char *value)
Definition Error.h:63
const Aws::String & GetVersionId() const
Definition Error.h:59
const Aws::String & GetMessage() const
Definition Error.h:454
Error & WithMessage(const char *value)
Definition Error.h:461
bool KeyHasBeenSet() const
Definition Error.h:45
Error & WithMessage(const Aws::String &value)
Definition Error.h:459
void SetCode(const char *value)
Definition Error.h:439
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetVersionId(const Aws::String &value)
Definition Error.h:61
Error & WithCode(const Aws::String &value)
Definition Error.h:440
const Aws::String & GetKey() const
Definition Error.h:44
void SetMessage(Aws::String &&value)
Definition Error.h:457
const Aws::String & GetCode() const
Definition Error.h:435
Error & WithKey(Aws::String &&value)
Definition Error.h:50
bool VersionIdHasBeenSet() const
Definition Error.h:60
bool CodeHasBeenSet() const
Definition Error.h:436
void SetVersionId(Aws::String &&value)
Definition Error.h:62
void SetCode(Aws::String &&value)
Definition Error.h:438
Error & WithCode(Aws::String &&value)
Definition Error.h:441
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String