AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobFailure.h
1
6#pragma once
7#include <aws/s3control/S3Control_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 S3Control
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CONTROL_API JobFailure();
35 AWS_S3CONTROL_API JobFailure(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API JobFailure& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
46 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
47 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
48 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
49 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
50 inline JobFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
51 inline JobFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
52 inline JobFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
54
56
59 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
60 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
61 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
62 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
63 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
64 inline JobFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
65 inline JobFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
66 inline JobFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
68 private:
69
70 Aws::String m_failureCode;
71 bool m_failureCodeHasBeenSet = false;
72
73 Aws::String m_failureReason;
74 bool m_failureReasonHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace S3Control
79} // namespace Aws
AWS_S3CONTROL_API JobFailure()
JobFailure & WithFailureReason(const Aws::String &value)
Definition JobFailure.h:64
void SetFailureReason(Aws::String &&value)
Definition JobFailure.h:62
JobFailure & WithFailureReason(const char *value)
Definition JobFailure.h:66
const Aws::String & GetFailureReason() const
Definition JobFailure.h:59
void SetFailureReason(const char *value)
Definition JobFailure.h:63
JobFailure & WithFailureCode(const Aws::String &value)
Definition JobFailure.h:50
JobFailure & WithFailureReason(Aws::String &&value)
Definition JobFailure.h:65
AWS_S3CONTROL_API JobFailure(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFailureCode(Aws::String &&value)
Definition JobFailure.h:48
const Aws::String & GetFailureCode() const
Definition JobFailure.h:45
void SetFailureReason(const Aws::String &value)
Definition JobFailure.h:61
void SetFailureCode(const Aws::String &value)
Definition JobFailure.h:47
JobFailure & WithFailureCode(const char *value)
Definition JobFailure.h:52
AWS_S3CONTROL_API JobFailure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
JobFailure & WithFailureCode(Aws::String &&value)
Definition JobFailure.h:51
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetFailureCode(const char *value)
Definition JobFailure.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String