AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
43 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
44 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
46 inline UpdateSnapshotRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
47 inline UpdateSnapshotRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline UpdateSnapshotRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline UpdateSnapshotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline UpdateSnapshotRequest& WithName(const char* value) { SetName(value); return *this;}
63
65
69 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
70 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
71 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
72 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
73 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
74 inline UpdateSnapshotRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
75 inline UpdateSnapshotRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
76 inline UpdateSnapshotRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
78 private:
79
80 Aws::String m_clientRequestToken;
81 bool m_clientRequestTokenHasBeenSet = false;
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 Aws::String m_snapshotId;
87 bool m_snapshotIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace FSx
92} // namespace Aws
UpdateSnapshotRequest & WithName(Aws::String &&value)
void SetSnapshotId(const Aws::String &value)
UpdateSnapshotRequest & WithClientRequestToken(Aws::String &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetName(const Aws::String &value)
UpdateSnapshotRequest & WithSnapshotId(Aws::String &&value)
UpdateSnapshotRequest & WithSnapshotId(const char *value)
UpdateSnapshotRequest & WithName(const Aws::String &value)
const Aws::String & GetClientRequestToken() const
void SetClientRequestToken(Aws::String &&value)
UpdateSnapshotRequest & WithName(const char *value)
UpdateSnapshotRequest & WithSnapshotId(const Aws::String &value)
UpdateSnapshotRequest & WithClientRequestToken(const Aws::String &value)
UpdateSnapshotRequest & WithClientRequestToken(const char *value)
void SetClientRequestToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String