AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RestoreFromSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DirectoryService {
15namespace Model {
16
24 public:
25 AWS_DIRECTORYSERVICE_API RestoreFromSnapshotRequest() = 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 "RestoreFromSnapshot"; }
32
33 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
42 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
43 template <typename SnapshotIdT = Aws::String>
44 void SetSnapshotId(SnapshotIdT&& value) {
45 m_snapshotIdHasBeenSet = true;
46 m_snapshotId = std::forward<SnapshotIdT>(value);
47 }
48 template <typename SnapshotIdT = Aws::String>
50 SetSnapshotId(std::forward<SnapshotIdT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_snapshotId;
56 bool m_snapshotIdHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace DirectoryService
61} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreFromSnapshotRequest & WithSnapshotId(SnapshotIdT &&value)
AWS_DIRECTORYSERVICE_API RestoreFromSnapshotRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String