AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace StorageGateway {
23namespace Model {
30 public:
31 AWS_STORAGEGATEWAY_API CreateSnapshotResult() = default;
34
36
40 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
41 template <typename VolumeARNT = Aws::String>
42 void SetVolumeARN(VolumeARNT&& value) {
43 m_volumeARNHasBeenSet = true;
44 m_volumeARN = std::forward<VolumeARNT>(value);
45 }
46 template <typename VolumeARNT = Aws::String>
47 CreateSnapshotResult& WithVolumeARN(VolumeARNT&& value) {
48 SetVolumeARN(std::forward<VolumeARNT>(value));
49 return *this;
50 }
52
54
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 CreateSnapshotResult& WithSnapshotId(SnapshotIdT&& value) {
68 SetSnapshotId(std::forward<SnapshotIdT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
82 CreateSnapshotResult& WithRequestId(RequestIdT&& value) {
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
88
89 private:
90 Aws::String m_volumeARN;
91
92 Aws::String m_snapshotId;
93
94 Aws::String m_requestId;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_volumeARNHasBeenSet = false;
97 bool m_snapshotIdHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace StorageGateway
103} // namespace Aws
CreateSnapshotResult & WithSnapshotId(SnapshotIdT &&value)
AWS_STORAGEGATEWAY_API CreateSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_STORAGEGATEWAY_API CreateSnapshotResult()=default
CreateSnapshotResult & WithRequestId(RequestIdT &&value)
AWS_STORAGEGATEWAY_API CreateSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateSnapshotResult & WithVolumeARN(VolumeARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue