AWS SDK for C++  1.8.154
AWS SDK for C++
JobFailure.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 Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
45 
49  inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
50 
54  inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
55 
59  inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
60 
64  inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
65 
69  inline JobFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
70 
74  inline JobFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
75 
79  inline JobFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
86 
90  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
91 
95  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
96 
100  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
101 
105  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
106 
110  inline JobFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
111 
115  inline JobFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
116 
120  inline JobFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
121 
122  private:
123 
124  Aws::String m_failureCode;
125  bool m_failureCodeHasBeenSet;
126 
127  Aws::String m_failureReason;
128  bool m_failureReasonHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace S3Control
133 } // namespace Aws
Aws::S3Control::Model::JobFailure::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: JobFailure.h:100
Aws::S3Control::Model::JobFailure::WithFailureReason
JobFailure & WithFailureReason(const char *value)
Definition: JobFailure.h:120
Aws::S3Control::Model::JobFailure::GetFailureCode
const Aws::String & GetFailureCode() const
Definition: JobFailure.h:44
Aws::S3Control::Model::JobFailure::WithFailureReason
JobFailure & WithFailureReason(const Aws::String &value)
Definition: JobFailure.h:110
Aws::S3Control::Model::JobFailure::SetFailureReason
void SetFailureReason(const char *value)
Definition: JobFailure.h:105
Aws::S3Control::Model::JobFailure::SetFailureCode
void SetFailureCode(const Aws::String &value)
Definition: JobFailure.h:54
Aws::S3Control::Model::JobFailure::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::JobFailure::WithFailureCode
JobFailure & WithFailureCode(const Aws::String &value)
Definition: JobFailure.h:69
S3Control_EXPORTS.h
Aws::S3Control::Model::JobFailure::SetFailureCode
void SetFailureCode(const char *value)
Definition: JobFailure.h:64
Aws::S3Control::Model::JobFailure::WithFailureReason
JobFailure & WithFailureReason(Aws::String &&value)
Definition: JobFailure.h:115
Aws::S3Control::Model::JobFailure
Definition: JobFailure.h:32
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::JobFailure::JobFailure
JobFailure()
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::JobFailure::operator=
JobFailure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::S3Control::Model::JobFailure::SetFailureCode
void SetFailureCode(Aws::String &&value)
Definition: JobFailure.h:59
Aws::S3Control::Model::JobFailure::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: JobFailure.h:85
Aws::S3Control::Model::JobFailure::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: JobFailure.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::JobFailure::WithFailureCode
JobFailure & WithFailureCode(const char *value)
Definition: JobFailure.h:79
Aws::S3Control::Model::JobFailure::FailureCodeHasBeenSet
bool FailureCodeHasBeenSet() const
Definition: JobFailure.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::JobFailure::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: JobFailure.h:90
Aws::S3Control::Model::JobFailure::JobFailure
JobFailure(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::JobFailure::WithFailureCode
JobFailure & WithFailureCode(Aws::String &&value)
Definition: JobFailure.h:74