AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotsResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10#include <aws/ec2/model/SnapshotInfo.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::Vector<SnapshotInfo>& GetSnapshots() const{ return m_snapshots; }
42 inline void SetSnapshots(const Aws::Vector<SnapshotInfo>& value) { m_snapshots = value; }
43 inline void SetSnapshots(Aws::Vector<SnapshotInfo>&& value) { m_snapshots = std::move(value); }
44 inline CreateSnapshotsResponse& WithSnapshots(const Aws::Vector<SnapshotInfo>& value) { SetSnapshots(value); return *this;}
45 inline CreateSnapshotsResponse& WithSnapshots(Aws::Vector<SnapshotInfo>&& value) { SetSnapshots(std::move(value)); return *this;}
46 inline CreateSnapshotsResponse& AddSnapshots(const SnapshotInfo& value) { m_snapshots.push_back(value); return *this; }
47 inline CreateSnapshotsResponse& AddSnapshots(SnapshotInfo&& value) { m_snapshots.push_back(std::move(value)); return *this; }
49
51
52 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
53 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
54 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
56 inline CreateSnapshotsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
58 private:
59
60 Aws::Vector<SnapshotInfo> m_snapshots;
61
62 ResponseMetadata m_responseMetadata;
63 };
64
65} // namespace Model
66} // namespace EC2
67} // namespace Aws
AWS_EC2_API CreateSnapshotsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSnapshotsResponse & WithSnapshots(Aws::Vector< SnapshotInfo > &&value)
CreateSnapshotsResponse & WithResponseMetadata(const ResponseMetadata &value)
void SetSnapshots(Aws::Vector< SnapshotInfo > &&value)
CreateSnapshotsResponse & WithResponseMetadata(ResponseMetadata &&value)
void SetSnapshots(const Aws::Vector< SnapshotInfo > &value)
void SetResponseMetadata(ResponseMetadata &&value)
CreateSnapshotsResponse & WithSnapshots(const Aws::Vector< SnapshotInfo > &value)
const Aws::Vector< SnapshotInfo > & GetSnapshots() const
CreateSnapshotsResponse & AddSnapshots(SnapshotInfo &&value)
CreateSnapshotsResponse & AddSnapshots(const SnapshotInfo &value)
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(const ResponseMetadata &value)
AWS_EC2_API CreateSnapshotsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument