AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSnapshotRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace FSx
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_FSX_API UpdateSnapshotRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSnapshot"; }
32
33 AWS_FSX_API Aws::String SerializePayload() const override;
34
36
37
39
40 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
41 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
42 template<typename ClientRequestTokenT = Aws::String>
43 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
44 template<typename ClientRequestTokenT = Aws::String>
45 UpdateSnapshotRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 UpdateSnapshotRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
65 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
66 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
67 template<typename SnapshotIdT = Aws::String>
68 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
69 template<typename SnapshotIdT = Aws::String>
70 UpdateSnapshotRequest& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
72 private:
73
74 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
75 bool m_clientRequestTokenHasBeenSet = true;
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
80 Aws::String m_snapshotId;
81 bool m_snapshotIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace FSx
86} // 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