AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SnapshotIdentifierT = Aws::String>
49 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
50 template<typename SnapshotIdentifierT = Aws::String>
51 SnapshotErrorMessage& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
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) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value); }
62 template<typename SnapshotClusterIdentifierT = Aws::String>
63 SnapshotErrorMessage& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) { SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value)); return *this;}
65
67
70 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
71 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
72 template<typename FailureCodeT = Aws::String>
73 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
74 template<typename FailureCodeT = Aws::String>
75 SnapshotErrorMessage& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
77
79
82 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
83 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
84 template<typename FailureReasonT = Aws::String>
85 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
86 template<typename FailureReasonT = Aws::String>
87 SnapshotErrorMessage& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
89 private:
90
91 Aws::String m_snapshotIdentifier;
92 bool m_snapshotIdentifierHasBeenSet = false;
93
94 Aws::String m_snapshotClusterIdentifier;
95 bool m_snapshotClusterIdentifierHasBeenSet = false;
96
97 Aws::String m_failureCode;
98 bool m_failureCodeHasBeenSet = false;
99
100 Aws::String m_failureReason;
101 bool m_failureReasonHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Redshift
106} // 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