AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateSnapshotRequest.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 UpdateSnapshotRequest() = 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 "UpdateSnapshot"; }
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 UpdateSnapshotRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
45 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
74 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
75 template <typename SnapshotIdT = Aws::String>
76 void SetSnapshotId(SnapshotIdT&& value) {
77 m_snapshotIdHasBeenSet = true;
78 m_snapshotId = std::forward<SnapshotIdT>(value);
79 }
80 template <typename SnapshotIdT = Aws::String>
81 UpdateSnapshotRequest& WithSnapshotId(SnapshotIdT&& value) {
82 SetSnapshotId(std::forward<SnapshotIdT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
88
89 Aws::String m_name;
90
91 Aws::String m_snapshotId;
92 bool m_clientRequestTokenHasBeenSet = true;
93 bool m_nameHasBeenSet = false;
94 bool m_snapshotIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace FSx
99} // namespace Aws
AWS_FSX_API UpdateSnapshotRequest()=default
UpdateSnapshotRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateSnapshotRequest & WithName(NameT &&value)
UpdateSnapshotRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetClientRequestToken() const
void SetClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String