AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SnapshotErrorMessage.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
32 {
33 public:
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
45 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
46
50 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
51
55 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
56
60 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
61
65 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
66
71
75 inline SnapshotErrorMessage& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
76
80 inline SnapshotErrorMessage& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
81
82
86 inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
87
91 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
92
96 inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
97
101 inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
102
106 inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
107
112
117
121 inline SnapshotErrorMessage& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;}
122
123
127 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
128
132 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
133
137 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
138
142 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
143
147 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
148
152 inline SnapshotErrorMessage& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
153
157 inline SnapshotErrorMessage& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
158
162 inline SnapshotErrorMessage& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
163
164
168 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
169
173 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
174
178 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
179
183 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
184
188 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
189
193 inline SnapshotErrorMessage& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
194
198 inline SnapshotErrorMessage& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
199
203 inline SnapshotErrorMessage& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
204
205 private:
206
207 Aws::String m_snapshotIdentifier;
208 bool m_snapshotIdentifierHasBeenSet = false;
209
210 Aws::String m_snapshotClusterIdentifier;
211 bool m_snapshotClusterIdentifierHasBeenSet = false;
212
213 Aws::String m_failureCode;
214 bool m_failureCodeHasBeenSet = false;
215
216 Aws::String m_failureReason;
217 bool m_failureReasonHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Redshift
222} // namespace Aws
#define AWS_REDSHIFT_API
SnapshotErrorMessage & WithSnapshotClusterIdentifier(Aws::String &&value)
const Aws::String & GetSnapshotClusterIdentifier() const
SnapshotErrorMessage & WithFailureReason(const Aws::String &value)
SnapshotErrorMessage & WithFailureReason(Aws::String &&value)
SnapshotErrorMessage & WithSnapshotIdentifier(const Aws::String &value)
SnapshotErrorMessage & WithFailureCode(const char *value)
void SetFailureReason(const Aws::String &value)
SnapshotErrorMessage & WithFailureCode(const Aws::String &value)
SnapshotErrorMessage & WithSnapshotIdentifier(const char *value)
void SetSnapshotClusterIdentifier(const Aws::String &value)
SnapshotErrorMessage & WithSnapshotClusterIdentifier(const char *value)
SnapshotErrorMessage & WithFailureCode(Aws::String &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSnapshotIdentifier() const
void SetSnapshotIdentifier(const Aws::String &value)
SnapshotErrorMessage & WithFailureReason(const char *value)
AWS_REDSHIFT_API SnapshotErrorMessage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotClusterIdentifier(Aws::String &&value)
SnapshotErrorMessage & WithSnapshotClusterIdentifier(const Aws::String &value)
SnapshotErrorMessage & WithSnapshotIdentifier(Aws::String &&value)
AWS_REDSHIFT_API SnapshotErrorMessage(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFailureCode(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream