AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DeleteSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSx_EXPORTS.h>
10#include <aws/fsx/model/SnapshotLifecycle.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace FSx {
24namespace Model {
26 public:
27 AWS_FSX_API DeleteSnapshotResult() = default;
30
32
35 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
36 template <typename SnapshotIdT = Aws::String>
37 void SetSnapshotId(SnapshotIdT&& value) {
38 m_snapshotIdHasBeenSet = true;
39 m_snapshotId = std::forward<SnapshotIdT>(value);
40 }
41 template <typename SnapshotIdT = Aws::String>
42 DeleteSnapshotResult& WithSnapshotId(SnapshotIdT&& value) {
43 SetSnapshotId(std::forward<SnapshotIdT>(value));
44 return *this;
45 }
47
49
53 inline SnapshotLifecycle GetLifecycle() const { return m_lifecycle; }
54 inline void SetLifecycle(SnapshotLifecycle value) {
55 m_lifecycleHasBeenSet = true;
56 m_lifecycle = value;
57 }
59 SetLifecycle(value);
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 DeleteSnapshotResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
79
80 private:
81 Aws::String m_snapshotId;
82
84
85 Aws::String m_requestId;
86 Aws::Http::HttpResponseCode m_HttpResponseCode;
87 bool m_snapshotIdHasBeenSet = false;
88 bool m_lifecycleHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace FSx
94} // namespace Aws
const Aws::String & GetRequestId() const
DeleteSnapshotResult & WithSnapshotId(SnapshotIdT &&value)
AWS_FSX_API DeleteSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_FSX_API DeleteSnapshotResult()=default
const Aws::String & GetSnapshotId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DeleteSnapshotResult & WithLifecycle(SnapshotLifecycle value)
DeleteSnapshotResult & WithRequestId(RequestIdT &&value)
void SetLifecycle(SnapshotLifecycle value)
AWS_FSX_API DeleteSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue