AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotErrorMessage.h
1
6#pragma once
7#include <aws/redshift/Redshift_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 Redshift
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_REDSHIFT_API SnapshotErrorMessage();
35 AWS_REDSHIFT_API SnapshotErrorMessage(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API SnapshotErrorMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
43
46 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
47 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
48 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
49 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
50 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
52 inline SnapshotErrorMessage& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
53 inline SnapshotErrorMessage& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
55
57
60 inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
61 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
62 inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
63 inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
64 inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
67 inline SnapshotErrorMessage& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;}
69
71
74 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
75 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
76 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
77 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
78 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
79 inline SnapshotErrorMessage& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
80 inline SnapshotErrorMessage& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
81 inline SnapshotErrorMessage& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
83
85
88 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
89 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
90 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
91 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
92 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
93 inline SnapshotErrorMessage& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
94 inline SnapshotErrorMessage& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
95 inline SnapshotErrorMessage& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
97 private:
98
99 Aws::String m_snapshotIdentifier;
100 bool m_snapshotIdentifierHasBeenSet = false;
101
102 Aws::String m_snapshotClusterIdentifier;
103 bool m_snapshotClusterIdentifierHasBeenSet = false;
104
105 Aws::String m_failureCode;
106 bool m_failureCodeHasBeenSet = false;
107
108 Aws::String m_failureReason;
109 bool m_failureReasonHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Redshift
114} // namespace Aws
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