AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename FailureResourceT = Aws::String>
52 void SetFailureResource(FailureResourceT&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::forward<FailureResourceT>(value); }
53 template<typename FailureResourceT = Aws::String>
54 PartialFailure& WithFailureResource(FailureResourceT&& value) { SetFailureResource(std::forward<FailureResourceT>(value)); return *this;}
56
58
61 inline const Aws::String& GetExceptionType() const { return m_exceptionType; }
62 inline bool ExceptionTypeHasBeenSet() const { return m_exceptionTypeHasBeenSet; }
63 template<typename ExceptionTypeT = Aws::String>
64 void SetExceptionType(ExceptionTypeT&& value) { m_exceptionTypeHasBeenSet = true; m_exceptionType = std::forward<ExceptionTypeT>(value); }
65 template<typename ExceptionTypeT = Aws::String>
66 PartialFailure& WithExceptionType(ExceptionTypeT&& value) { SetExceptionType(std::forward<ExceptionTypeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
74 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
75 template<typename FailureCodeT = Aws::String>
76 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
77 template<typename FailureCodeT = Aws::String>
78 PartialFailure& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetFailureDescription() const { return m_failureDescription; }
86 inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; }
87 template<typename FailureDescriptionT = Aws::String>
88 void SetFailureDescription(FailureDescriptionT&& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = std::forward<FailureDescriptionT>(value); }
89 template<typename FailureDescriptionT = Aws::String>
90 PartialFailure& WithFailureDescription(FailureDescriptionT&& value) { SetFailureDescription(std::forward<FailureDescriptionT>(value)); return *this;}
92 private:
93
94 Aws::String m_failureResource;
95 bool m_failureResourceHasBeenSet = false;
96
97 Aws::String m_exceptionType;
98 bool m_exceptionTypeHasBeenSet = false;
99
100 Aws::String m_failureCode;
101 bool m_failureCodeHasBeenSet = false;
102
103 Aws::String m_failureDescription;
104 bool m_failureDescriptionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CloudWatch
109} // namespace Aws
AWS_CLOUDWATCH_API PartialFailure(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetFailureCode() const
PartialFailure & WithFailureResource(FailureResourceT &&value)
void SetExceptionType(ExceptionTypeT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetFailureResource() const
PartialFailure & WithExceptionType(ExceptionTypeT &&value)
void SetFailureResource(FailureResourceT &&value)
void SetFailureDescription(FailureDescriptionT &&value)
AWS_CLOUDWATCH_API PartialFailure & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetExceptionType() const
AWS_CLOUDWATCH_API PartialFailure()=default
void SetFailureCode(FailureCodeT &&value)
PartialFailure & WithFailureDescription(FailureDescriptionT &&value)
const Aws::String & GetFailureDescription() const
PartialFailure & WithFailureCode(FailureCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream