AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
52 inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
53 inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
54 inline CreateSnapshotRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
55 inline CreateSnapshotRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
56 inline CreateSnapshotRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
58
60
65 inline const Aws::String& GetSnapshotDescription() const{ return m_snapshotDescription; }
66 inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; }
67 inline void SetSnapshotDescription(const Aws::String& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = value; }
68 inline void SetSnapshotDescription(Aws::String&& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = std::move(value); }
69 inline void SetSnapshotDescription(const char* value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription.assign(value); }
71 inline CreateSnapshotRequest& WithSnapshotDescription(Aws::String&& value) { SetSnapshotDescription(std::move(value)); return *this;}
72 inline CreateSnapshotRequest& WithSnapshotDescription(const char* value) { SetSnapshotDescription(value); return *this;}
74
76
83 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
88 inline CreateSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
90 inline CreateSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_volumeARN;
95 bool m_volumeARNHasBeenSet = false;
96
97 Aws::String m_snapshotDescription;
98 bool m_snapshotDescriptionHasBeenSet = false;
99
100 Aws::Vector<Tag> m_tags;
101 bool m_tagsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace StorageGateway
106} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithSnapshotDescription(const char *value)
CreateSnapshotRequest & WithSnapshotDescription(const Aws::String &value)
CreateSnapshotRequest & WithSnapshotDescription(Aws::String &&value)
CreateSnapshotRequest & WithVolumeARN(Aws::String &&value)
CreateSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & AddTags(const Tag &value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSnapshotRequest & WithVolumeARN(const Aws::String &value)
CreateSnapshotRequest & WithVolumeARN(const char *value)
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