AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSxRequest.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace FSx {
16namespace Model {
17
21 public:
22 AWS_FSX_API DeleteSnapshotRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteSnapshot"; }
29
30 AWS_FSX_API Aws::String SerializePayload() const override;
31
33
35
36 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
37 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
38 template <typename ClientRequestTokenT = Aws::String>
39 void SetClientRequestToken(ClientRequestTokenT&& value) {
40 m_clientRequestTokenHasBeenSet = true;
41 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
42 }
43 template <typename ClientRequestTokenT = Aws::String>
44 DeleteSnapshotRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
45 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
55 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
56 template <typename SnapshotIdT = Aws::String>
57 void SetSnapshotId(SnapshotIdT&& value) {
58 m_snapshotIdHasBeenSet = true;
59 m_snapshotId = std::forward<SnapshotIdT>(value);
60 }
61 template <typename SnapshotIdT = Aws::String>
62 DeleteSnapshotRequest& WithSnapshotId(SnapshotIdT&& value) {
63 SetSnapshotId(std::forward<SnapshotIdT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
69
70 Aws::String m_snapshotId;
71 bool m_clientRequestTokenHasBeenSet = true;
72 bool m_snapshotIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace FSx
77} // namespace Aws
void SetClientRequestToken(ClientRequestTokenT &&value)
DeleteSnapshotRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientRequestToken() const
AWS_FSX_API Aws::String SerializePayload() const override
DeleteSnapshotRequest & WithClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API DeleteSnapshotRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String