AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CopySnapshotResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API CopySnapshotResponse() = default;
32
34
37 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
38 template <typename TagsT = Aws::Vector<Tag>>
39 void SetTags(TagsT&& value) {
40 m_tagsHasBeenSet = true;
41 m_tags = std::forward<TagsT>(value);
42 }
43 template <typename TagsT = Aws::Vector<Tag>>
45 SetTags(std::forward<TagsT>(value));
46 return *this;
47 }
48 template <typename TagsT = Tag>
49 CopySnapshotResponse& AddTags(TagsT&& value) {
50 m_tagsHasBeenSet = true;
51 m_tags.emplace_back(std::forward<TagsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
61 template <typename SnapshotIdT = Aws::String>
62 void SetSnapshotId(SnapshotIdT&& value) {
63 m_snapshotIdHasBeenSet = true;
64 m_snapshotId = std::forward<SnapshotIdT>(value);
65 }
66 template <typename SnapshotIdT = Aws::String>
67 CopySnapshotResponse& WithSnapshotId(SnapshotIdT&& value) {
68 SetSnapshotId(std::forward<SnapshotIdT>(value));
69 return *this;
70 }
72
74
75 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
76 template <typename ResponseMetadataT = ResponseMetadata>
77 void SetResponseMetadata(ResponseMetadataT&& value) {
78 m_responseMetadataHasBeenSet = true;
79 m_responseMetadata = std::forward<ResponseMetadataT>(value);
80 }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 CopySnapshotResponse& WithResponseMetadata(ResponseMetadataT&& value) {
83 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
84 return *this;
85 }
87 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
88
89 private:
90 Aws::Vector<Tag> m_tags;
91
92 Aws::String m_snapshotId;
93
94 ResponseMetadata m_responseMetadata;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_tagsHasBeenSet = false;
97 bool m_snapshotIdHasBeenSet = false;
98 bool m_responseMetadataHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
AWS_EC2_API CopySnapshotResponse()=default
AWS_EC2_API CopySnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EC2_API CopySnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CopySnapshotResponse & WithSnapshotId(SnapshotIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
CopySnapshotResponse & WithTags(TagsT &&value)
const Aws::String & GetSnapshotId() const
CopySnapshotResponse & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetResponseMetadata(ResponseMetadataT &&value)
CopySnapshotResponse & WithResponseMetadata(ResponseMetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument