AWS SDK for C++  1.9.103
AWS SDK for C++
BatchModifyClusterSnapshotsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace Redshift
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
42 
46  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resources = value; }
47 
51  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resources = std::move(value); }
52 
56  inline BatchModifyClusterSnapshotsResult& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
57 
61  inline BatchModifyClusterSnapshotsResult& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
62 
66  inline BatchModifyClusterSnapshotsResult& AddResources(const Aws::String& value) { m_resources.push_back(value); return *this; }
67 
71  inline BatchModifyClusterSnapshotsResult& AddResources(Aws::String&& value) { m_resources.push_back(std::move(value)); return *this; }
72 
76  inline BatchModifyClusterSnapshotsResult& AddResources(const char* value) { m_resources.push_back(value); return *this; }
77 
78 
82  inline const Aws::Vector<SnapshotErrorMessage>& GetErrors() const{ return m_errors; }
83 
87  inline void SetErrors(const Aws::Vector<SnapshotErrorMessage>& value) { m_errors = value; }
88 
92  inline void SetErrors(Aws::Vector<SnapshotErrorMessage>&& value) { m_errors = std::move(value); }
93 
97  inline BatchModifyClusterSnapshotsResult& WithErrors(const Aws::Vector<SnapshotErrorMessage>& value) { SetErrors(value); return *this;}
98 
102  inline BatchModifyClusterSnapshotsResult& WithErrors(Aws::Vector<SnapshotErrorMessage>&& value) { SetErrors(std::move(value)); return *this;}
103 
107  inline BatchModifyClusterSnapshotsResult& AddErrors(const SnapshotErrorMessage& value) { m_errors.push_back(value); return *this; }
108 
112  inline BatchModifyClusterSnapshotsResult& AddErrors(SnapshotErrorMessage&& value) { m_errors.push_back(std::move(value)); return *this; }
113 
114 
115 
116  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
117 
118 
119  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
120 
121 
122  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
123 
124 
125  inline BatchModifyClusterSnapshotsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
126 
127 
128  inline BatchModifyClusterSnapshotsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
129 
130  private:
131 
132  Aws::Vector<Aws::String> m_resources;
133 
135 
136  ResponseMetadata m_responseMetadata;
137  };
138 
139 } // namespace Model
140 } // namespace Redshift
141 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::AddResources
BatchModifyClusterSnapshotsResult & AddResources(const Aws::String &value)
Definition: BatchModifyClusterSnapshotsResult.h:66
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::GetErrors
const Aws::Vector< SnapshotErrorMessage > & GetErrors() const
Definition: BatchModifyClusterSnapshotsResult.h:82
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::AddResources
BatchModifyClusterSnapshotsResult & AddResources(const char *value)
Definition: BatchModifyClusterSnapshotsResult.h:76
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: BatchModifyClusterSnapshotsResult.h:116
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetErrors
void SetErrors(const Aws::Vector< SnapshotErrorMessage > &value)
Definition: BatchModifyClusterSnapshotsResult.h:87
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithResponseMetadata
BatchModifyClusterSnapshotsResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: BatchModifyClusterSnapshotsResult.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithResources
BatchModifyClusterSnapshotsResult & WithResources(Aws::Vector< Aws::String > &&value)
Definition: BatchModifyClusterSnapshotsResult.h:61
AWSVector.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: BatchModifyClusterSnapshotsResult.h:119
SnapshotErrorMessage.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: BatchModifyClusterSnapshotsResult.h:51
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::AddErrors
BatchModifyClusterSnapshotsResult & AddErrors(SnapshotErrorMessage &&value)
Definition: BatchModifyClusterSnapshotsResult.h:112
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetErrors
void SetErrors(Aws::Vector< SnapshotErrorMessage > &&value)
Definition: BatchModifyClusterSnapshotsResult.h:92
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithErrors
BatchModifyClusterSnapshotsResult & WithErrors(Aws::Vector< SnapshotErrorMessage > &&value)
Definition: BatchModifyClusterSnapshotsResult.h:102
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::AddErrors
BatchModifyClusterSnapshotsResult & AddErrors(const SnapshotErrorMessage &value)
Definition: BatchModifyClusterSnapshotsResult.h:107
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::AddResources
BatchModifyClusterSnapshotsResult & AddResources(Aws::String &&value)
Definition: BatchModifyClusterSnapshotsResult.h:71
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::BatchModifyClusterSnapshotsResult
BatchModifyClusterSnapshotsResult()
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::operator=
BatchModifyClusterSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::BatchModifyClusterSnapshotsResult
BatchModifyClusterSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithResources
BatchModifyClusterSnapshotsResult & WithResources(const Aws::Vector< Aws::String > &value)
Definition: BatchModifyClusterSnapshotsResult.h:56
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithErrors
BatchModifyClusterSnapshotsResult & WithErrors(const Aws::Vector< SnapshotErrorMessage > &value)
Definition: BatchModifyClusterSnapshotsResult.h:97
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult
Definition: BatchModifyClusterSnapshotsResult.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: BatchModifyClusterSnapshotsResult.h:41
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: BatchModifyClusterSnapshotsResult.h:46
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: BatchModifyClusterSnapshotsResult.h:122
Aws::Redshift::Model::BatchModifyClusterSnapshotsResult::WithResponseMetadata
BatchModifyClusterSnapshotsResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: BatchModifyClusterSnapshotsResult.h:125
Aws::Redshift::Model::SnapshotErrorMessage
Definition: SnapshotErrorMessage.h:32