AWS SDK for C++  1.9.104
AWS SDK for C++
SnapshotErrorMessage.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  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 
70  inline SnapshotErrorMessage& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
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 
111  inline SnapshotErrorMessage& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;}
112 
116  inline SnapshotErrorMessage& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(std::move(value)); return *this;}
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;
209 
210  Aws::String m_snapshotClusterIdentifier;
211  bool m_snapshotClusterIdentifierHasBeenSet;
212 
213  Aws::String m_failureCode;
214  bool m_failureCodeHasBeenSet;
215 
216  Aws::String m_failureReason;
217  bool m_failureReasonHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace Redshift
222 } // namespace Aws
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureCode
void SetFailureCode(const char *value)
Definition: SnapshotErrorMessage.h:147
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotClusterIdentifier
SnapshotErrorMessage & WithSnapshotClusterIdentifier(const Aws::String &value)
Definition: SnapshotErrorMessage.h:111
Aws::Redshift::Model::SnapshotErrorMessage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::SnapshotErrorMessage::operator=
SnapshotErrorMessage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: SnapshotErrorMessage.h:183
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureCode
SnapshotErrorMessage & WithFailureCode(const char *value)
Definition: SnapshotErrorMessage.h:162
Aws::Redshift::Model::SnapshotErrorMessage::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: SnapshotErrorMessage.h:168
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotIdentifier
SnapshotErrorMessage & WithSnapshotIdentifier(const char *value)
Definition: SnapshotErrorMessage.h:80
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureCode
void SetFailureCode(const Aws::String &value)
Definition: SnapshotErrorMessage.h:137
Aws::Redshift::Model::SnapshotErrorMessage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureCode
SnapshotErrorMessage & WithFailureCode(Aws::String &&value)
Definition: SnapshotErrorMessage.h:157
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotIdentifier
void SetSnapshotIdentifier(const char *value)
Definition: SnapshotErrorMessage.h:65
Aws::Redshift::Model::SnapshotErrorMessage::SnapshotErrorMessage
SnapshotErrorMessage()
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(Aws::String &&value)
Definition: SnapshotErrorMessage.h:101
AWSStreamFwd.h
Aws::Redshift::Model::SnapshotErrorMessage::SnapshotClusterIdentifierHasBeenSet
bool SnapshotClusterIdentifierHasBeenSet() const
Definition: SnapshotErrorMessage.h:91
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureReason
SnapshotErrorMessage & WithFailureReason(const Aws::String &value)
Definition: SnapshotErrorMessage.h:193
Aws::Redshift::Model::SnapshotErrorMessage::GetSnapshotClusterIdentifier
const Aws::String & GetSnapshotClusterIdentifier() const
Definition: SnapshotErrorMessage.h:86
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotIdentifier
SnapshotErrorMessage & WithSnapshotIdentifier(const Aws::String &value)
Definition: SnapshotErrorMessage.h:70
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureCode
void SetFailureCode(Aws::String &&value)
Definition: SnapshotErrorMessage.h:142
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotIdentifier
void SetSnapshotIdentifier(Aws::String &&value)
Definition: SnapshotErrorMessage.h:60
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const char *value)
Definition: SnapshotErrorMessage.h:106
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const Aws::String &value)
Definition: SnapshotErrorMessage.h:96
Aws::Redshift::Model::SnapshotErrorMessage::SnapshotErrorMessage
SnapshotErrorMessage(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::SnapshotErrorMessage::SnapshotIdentifierHasBeenSet
bool SnapshotIdentifierHasBeenSet() const
Definition: SnapshotErrorMessage.h:50
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: SnapshotErrorMessage.h:178
Aws::Redshift::Model::SnapshotErrorMessage::FailureCodeHasBeenSet
bool FailureCodeHasBeenSet() const
Definition: SnapshotErrorMessage.h:132
Aws::Redshift::Model::SnapshotErrorMessage::SetSnapshotIdentifier
void SetSnapshotIdentifier(const Aws::String &value)
Definition: SnapshotErrorMessage.h:55
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureCode
SnapshotErrorMessage & WithFailureCode(const Aws::String &value)
Definition: SnapshotErrorMessage.h:152
Aws::Redshift::Model::SnapshotErrorMessage::GetFailureCode
const Aws::String & GetFailureCode() const
Definition: SnapshotErrorMessage.h:127
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotIdentifier
SnapshotErrorMessage & WithSnapshotIdentifier(Aws::String &&value)
Definition: SnapshotErrorMessage.h:75
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureReason
SnapshotErrorMessage & WithFailureReason(const char *value)
Definition: SnapshotErrorMessage.h:203
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::SnapshotErrorMessage::WithFailureReason
SnapshotErrorMessage & WithFailureReason(Aws::String &&value)
Definition: SnapshotErrorMessage.h:198
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotClusterIdentifier
SnapshotErrorMessage & WithSnapshotClusterIdentifier(Aws::String &&value)
Definition: SnapshotErrorMessage.h:116
Aws::Redshift::Model::SnapshotErrorMessage::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: SnapshotErrorMessage.h:173
Aws::Redshift::Model::SnapshotErrorMessage::WithSnapshotClusterIdentifier
SnapshotErrorMessage & WithSnapshotClusterIdentifier(const char *value)
Definition: SnapshotErrorMessage.h:121
Aws::Redshift::Model::SnapshotErrorMessage::SetFailureReason
void SetFailureReason(const char *value)
Definition: SnapshotErrorMessage.h:188
Aws::Redshift::Model::SnapshotErrorMessage::GetSnapshotIdentifier
const Aws::String & GetSnapshotIdentifier() const
Definition: SnapshotErrorMessage.h:45
Aws::Redshift::Model::SnapshotErrorMessage
Definition: SnapshotErrorMessage.h:32