AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PartialFailure.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_CLOUDWATCH_API PartialFailure();
38 AWS_CLOUDWATCH_API PartialFailure(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDWATCH_API PartialFailure& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetFailureResource() const{ return m_failureResource; }
50 inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; }
51 inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; }
52 inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); }
53 inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); }
54 inline PartialFailure& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;}
55 inline PartialFailure& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;}
56 inline PartialFailure& WithFailureResource(const char* value) { SetFailureResource(value); return *this;}
58
60
63 inline const Aws::String& GetExceptionType() const{ return m_exceptionType; }
64 inline bool ExceptionTypeHasBeenSet() const { return m_exceptionTypeHasBeenSet; }
65 inline void SetExceptionType(const Aws::String& value) { m_exceptionTypeHasBeenSet = true; m_exceptionType = value; }
66 inline void SetExceptionType(Aws::String&& value) { m_exceptionTypeHasBeenSet = true; m_exceptionType = std::move(value); }
67 inline void SetExceptionType(const char* value) { m_exceptionTypeHasBeenSet = true; m_exceptionType.assign(value); }
68 inline PartialFailure& WithExceptionType(const Aws::String& value) { SetExceptionType(value); return *this;}
69 inline PartialFailure& WithExceptionType(Aws::String&& value) { SetExceptionType(std::move(value)); return *this;}
70 inline PartialFailure& WithExceptionType(const char* value) { SetExceptionType(value); return *this;}
72
74
77 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
78 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
79 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
80 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
81 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
82 inline PartialFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
83 inline PartialFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
84 inline PartialFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
86
88
91 inline const Aws::String& GetFailureDescription() const{ return m_failureDescription; }
92 inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; }
93 inline void SetFailureDescription(const Aws::String& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = value; }
94 inline void SetFailureDescription(Aws::String&& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = std::move(value); }
95 inline void SetFailureDescription(const char* value) { m_failureDescriptionHasBeenSet = true; m_failureDescription.assign(value); }
96 inline PartialFailure& WithFailureDescription(const Aws::String& value) { SetFailureDescription(value); return *this;}
97 inline PartialFailure& WithFailureDescription(Aws::String&& value) { SetFailureDescription(std::move(value)); return *this;}
98 inline PartialFailure& WithFailureDescription(const char* value) { SetFailureDescription(value); return *this;}
100 private:
101
102 Aws::String m_failureResource;
103 bool m_failureResourceHasBeenSet = false;
104
105 Aws::String m_exceptionType;
106 bool m_exceptionTypeHasBeenSet = false;
107
108 Aws::String m_failureCode;
109 bool m_failureCodeHasBeenSet = false;
110
111 Aws::String m_failureDescription;
112 bool m_failureDescriptionHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudWatch
117} // namespace Aws
void SetFailureResource(const char *value)
void SetFailureResource(Aws::String &&value)
void SetExceptionType(const char *value)
AWS_CLOUDWATCH_API PartialFailure(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFailureCode(const char *value)
PartialFailure & WithExceptionType(Aws::String &&value)
void SetExceptionType(const Aws::String &value)
PartialFailure & WithFailureResource(const Aws::String &value)
void SetFailureCode(Aws::String &&value)
PartialFailure & WithFailureCode(Aws::String &&value)
PartialFailure & WithFailureResource(const char *value)
void SetExceptionType(Aws::String &&value)
void SetFailureCode(const Aws::String &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetFailureDescription(const Aws::String &value)
const Aws::String & GetFailureCode() const
PartialFailure & WithExceptionType(const Aws::String &value)
void SetFailureDescription(Aws::String &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PartialFailure & WithFailureCode(const char *value)
const Aws::String & GetFailureResource() const
PartialFailure & WithExceptionType(const char *value)
PartialFailure & WithFailureDescription(const char *value)
AWS_CLOUDWATCH_API PartialFailure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PartialFailure & WithFailureDescription(Aws::String &&value)
const Aws::String & GetExceptionType() const
void SetFailureResource(const Aws::String &value)
void SetFailureDescription(const char *value)
PartialFailure & WithFailureResource(Aws::String &&value)
const Aws::String & GetFailureDescription() const
PartialFailure & WithFailureDescription(const Aws::String &value)
PartialFailure & WithFailureCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream