AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SnapshotErrorMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
28 public:
29 AWS_REDSHIFT_API SnapshotErrorMessage() = default;
30 AWS_REDSHIFT_API SnapshotErrorMessage(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_REDSHIFT_API SnapshotErrorMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
41 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
42 template <typename SnapshotIdentifierT = Aws::String>
43 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
44 m_snapshotIdentifierHasBeenSet = true;
45 m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
46 }
47 template <typename SnapshotIdentifierT = Aws::String>
48 SnapshotErrorMessage& WithSnapshotIdentifier(SnapshotIdentifierT&& value) {
49 SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
59 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
60 template <typename SnapshotClusterIdentifierT = Aws::String>
61 void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
62 m_snapshotClusterIdentifierHasBeenSet = true;
63 m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value);
64 }
65 template <typename SnapshotClusterIdentifierT = Aws::String>
66 SnapshotErrorMessage& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
67 SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
77 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
78 template <typename FailureCodeT = Aws::String>
79 void SetFailureCode(FailureCodeT&& value) {
80 m_failureCodeHasBeenSet = true;
81 m_failureCode = std::forward<FailureCodeT>(value);
82 }
83 template <typename FailureCodeT = Aws::String>
84 SnapshotErrorMessage& WithFailureCode(FailureCodeT&& value) {
85 SetFailureCode(std::forward<FailureCodeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
95 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
96 template <typename FailureReasonT = Aws::String>
97 void SetFailureReason(FailureReasonT&& value) {
98 m_failureReasonHasBeenSet = true;
99 m_failureReason = std::forward<FailureReasonT>(value);
100 }
101 template <typename FailureReasonT = Aws::String>
102 SnapshotErrorMessage& WithFailureReason(FailureReasonT&& value) {
103 SetFailureReason(std::forward<FailureReasonT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_snapshotIdentifier;
109
110 Aws::String m_snapshotClusterIdentifier;
111
112 Aws::String m_failureCode;
113
114 Aws::String m_failureReason;
115 bool m_snapshotIdentifierHasBeenSet = false;
116 bool m_snapshotClusterIdentifierHasBeenSet = false;
117 bool m_failureCodeHasBeenSet = false;
118 bool m_failureReasonHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Redshift
123} // namespace Aws
const Aws::String & GetSnapshotClusterIdentifier() const
void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
void SetSnapshotIdentifier(SnapshotIdentifierT &&value)
SnapshotErrorMessage & WithFailureReason(FailureReasonT &&value)
AWS_REDSHIFT_API SnapshotErrorMessage()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSnapshotIdentifier() const
AWS_REDSHIFT_API SnapshotErrorMessage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotErrorMessage & WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT &&value)
AWS_REDSHIFT_API SnapshotErrorMessage(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotErrorMessage & WithFailureCode(FailureCodeT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotErrorMessage & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream