AWS SDK for C++  1.9.124
AWS SDK for C++
EnableFastSnapshotRestoresResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
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 EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::Vector<EnableFastSnapshotRestoreSuccessItem>& GetSuccessful() const{ return m_successful; }
43 
48  inline void SetSuccessful(const Aws::Vector<EnableFastSnapshotRestoreSuccessItem>& value) { m_successful = value; }
49 
54  inline void SetSuccessful(Aws::Vector<EnableFastSnapshotRestoreSuccessItem>&& value) { m_successful = std::move(value); }
55 
61 
66  inline EnableFastSnapshotRestoresResponse& WithSuccessful(Aws::Vector<EnableFastSnapshotRestoreSuccessItem>&& value) { SetSuccessful(std::move(value)); return *this;}
67 
72  inline EnableFastSnapshotRestoresResponse& AddSuccessful(const EnableFastSnapshotRestoreSuccessItem& value) { m_successful.push_back(value); return *this; }
73 
78  inline EnableFastSnapshotRestoresResponse& AddSuccessful(EnableFastSnapshotRestoreSuccessItem&& value) { m_successful.push_back(std::move(value)); return *this; }
79 
80 
85  inline const Aws::Vector<EnableFastSnapshotRestoreErrorItem>& GetUnsuccessful() const{ return m_unsuccessful; }
86 
91  inline void SetUnsuccessful(const Aws::Vector<EnableFastSnapshotRestoreErrorItem>& value) { m_unsuccessful = value; }
92 
97  inline void SetUnsuccessful(Aws::Vector<EnableFastSnapshotRestoreErrorItem>&& value) { m_unsuccessful = std::move(value); }
98 
103  inline EnableFastSnapshotRestoresResponse& WithUnsuccessful(const Aws::Vector<EnableFastSnapshotRestoreErrorItem>& value) { SetUnsuccessful(value); return *this;}
104 
109  inline EnableFastSnapshotRestoresResponse& WithUnsuccessful(Aws::Vector<EnableFastSnapshotRestoreErrorItem>&& value) { SetUnsuccessful(std::move(value)); return *this;}
110 
115  inline EnableFastSnapshotRestoresResponse& AddUnsuccessful(const EnableFastSnapshotRestoreErrorItem& value) { m_unsuccessful.push_back(value); return *this; }
116 
121  inline EnableFastSnapshotRestoresResponse& AddUnsuccessful(EnableFastSnapshotRestoreErrorItem&& value) { m_unsuccessful.push_back(std::move(value)); return *this; }
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline EnableFastSnapshotRestoresResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline EnableFastSnapshotRestoresResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
142 
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
EnableFastSnapshotRestoreSuccessItem.h
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::operator=
EnableFastSnapshotRestoresResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EnableFastSnapshotRestoreErrorItem.h
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetUnsuccessful
void SetUnsuccessful(const Aws::Vector< EnableFastSnapshotRestoreErrorItem > &value)
Definition: EnableFastSnapshotRestoresResponse.h:91
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::EnableFastSnapshotRestoresResponse
EnableFastSnapshotRestoresResponse()
ResponseMetadata.h
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: EnableFastSnapshotRestoresResponse.h:125
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::GetUnsuccessful
const Aws::Vector< EnableFastSnapshotRestoreErrorItem > & GetUnsuccessful() const
Definition: EnableFastSnapshotRestoresResponse.h:85
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithUnsuccessful
EnableFastSnapshotRestoresResponse & WithUnsuccessful(Aws::Vector< EnableFastSnapshotRestoreErrorItem > &&value)
Definition: EnableFastSnapshotRestoresResponse.h:109
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetUnsuccessful
void SetUnsuccessful(Aws::Vector< EnableFastSnapshotRestoreErrorItem > &&value)
Definition: EnableFastSnapshotRestoresResponse.h:97
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetSuccessful
void SetSuccessful(const Aws::Vector< EnableFastSnapshotRestoreSuccessItem > &value)
Definition: EnableFastSnapshotRestoresResponse.h:48
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithResponseMetadata
EnableFastSnapshotRestoresResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: EnableFastSnapshotRestoresResponse.h:134
AWSVector.h
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::AddUnsuccessful
EnableFastSnapshotRestoresResponse & AddUnsuccessful(EnableFastSnapshotRestoreErrorItem &&value)
Definition: EnableFastSnapshotRestoresResponse.h:121
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: EnableFastSnapshotRestoresResponse.h:128
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem
Definition: EnableFastSnapshotRestoreErrorItem.h:35
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithUnsuccessful
EnableFastSnapshotRestoresResponse & WithUnsuccessful(const Aws::Vector< EnableFastSnapshotRestoreErrorItem > &value)
Definition: EnableFastSnapshotRestoresResponse.h:103
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::EnableFastSnapshotRestoresResponse
EnableFastSnapshotRestoresResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithSuccessful
EnableFastSnapshotRestoresResponse & WithSuccessful(const Aws::Vector< EnableFastSnapshotRestoreSuccessItem > &value)
Definition: EnableFastSnapshotRestoresResponse.h:60
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::GetSuccessful
const Aws::Vector< EnableFastSnapshotRestoreSuccessItem > & GetSuccessful() const
Definition: EnableFastSnapshotRestoresResponse.h:42
Aws::EC2::Model::EnableFastSnapshotRestoreSuccessItem
Definition: EnableFastSnapshotRestoreSuccessItem.h:35
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::AddSuccessful
EnableFastSnapshotRestoresResponse & AddSuccessful(EnableFastSnapshotRestoreSuccessItem &&value)
Definition: EnableFastSnapshotRestoresResponse.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithResponseMetadata
EnableFastSnapshotRestoresResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: EnableFastSnapshotRestoresResponse.h:137
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::WithSuccessful
EnableFastSnapshotRestoresResponse & WithSuccessful(Aws::Vector< EnableFastSnapshotRestoreSuccessItem > &&value)
Definition: EnableFastSnapshotRestoresResponse.h:66
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: EnableFastSnapshotRestoresResponse.h:131
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::AddUnsuccessful
EnableFastSnapshotRestoresResponse & AddUnsuccessful(const EnableFastSnapshotRestoreErrorItem &value)
Definition: EnableFastSnapshotRestoresResponse.h:115
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::SetSuccessful
void SetSuccessful(Aws::Vector< EnableFastSnapshotRestoreSuccessItem > &&value)
Definition: EnableFastSnapshotRestoresResponse.h:54
Aws::EC2::Model::EnableFastSnapshotRestoresResponse
Definition: EnableFastSnapshotRestoresResponse.h:31
EC2_EXPORTS.h
Aws::EC2::Model::EnableFastSnapshotRestoresResponse::AddSuccessful
EnableFastSnapshotRestoresResponse & AddSuccessful(const EnableFastSnapshotRestoreSuccessItem &value)
Definition: EnableFastSnapshotRestoresResponse.h:72