AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSnapshotRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/storagegateway/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace StorageGateway
17{
18namespace Model
19{
20
29 {
30 public:
31 AWS_STORAGEGATEWAY_API CreateSnapshotRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
38
39 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
40
41 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
49 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
50 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
51 template<typename VolumeARNT = Aws::String>
52 void SetVolumeARN(VolumeARNT&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::forward<VolumeARNT>(value); }
53 template<typename VolumeARNT = Aws::String>
54 CreateSnapshotRequest& WithVolumeARN(VolumeARNT&& value) { SetVolumeARN(std::forward<VolumeARNT>(value)); return *this;}
56
58
63 inline const Aws::String& GetSnapshotDescription() const { return m_snapshotDescription; }
64 inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; }
65 template<typename SnapshotDescriptionT = Aws::String>
66 void SetSnapshotDescription(SnapshotDescriptionT&& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = std::forward<SnapshotDescriptionT>(value); }
67 template<typename SnapshotDescriptionT = Aws::String>
68 CreateSnapshotRequest& WithSnapshotDescription(SnapshotDescriptionT&& value) { SetSnapshotDescription(std::forward<SnapshotDescriptionT>(value)); return *this;}
70
72
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 CreateSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_volumeARN;
91 bool m_volumeARNHasBeenSet = false;
92
93 Aws::String m_snapshotDescription;
94 bool m_snapshotDescriptionHasBeenSet = false;
95
96 Aws::Vector<Tag> m_tags;
97 bool m_tagsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace StorageGateway
102} // namespace Aws
void SetSnapshotDescription(SnapshotDescriptionT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_STORAGEGATEWAY_API CreateSnapshotRequest()=default
CreateSnapshotRequest & WithVolumeARN(VolumeARNT &&value)
CreateSnapshotRequest & AddTags(TagsT &&value)
CreateSnapshotRequest & WithSnapshotDescription(SnapshotDescriptionT &&value)
CreateSnapshotRequest & WithTags(TagsT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector