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/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fsx/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace FSx
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FSX_API CreateSnapshotRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
34
35 AWS_FSX_API Aws::String SerializePayload() const override;
36
38
39
41
42 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
43 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
44 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
45 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
46 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
48 inline CreateSnapshotRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
49 inline CreateSnapshotRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateSnapshotRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateSnapshotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateSnapshotRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
71 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
72 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
73 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
74 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
75 inline CreateSnapshotRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
76 inline CreateSnapshotRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
77 inline CreateSnapshotRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
79
81
82 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
86 inline CreateSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
87 inline CreateSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
89 inline CreateSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
91 private:
92
93 Aws::String m_clientRequestToken;
94 bool m_clientRequestTokenHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_volumeId;
100 bool m_volumeIdHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace FSx
108} // namespace Aws
CreateSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & WithName(const char *value)
CreateSnapshotRequest & WithVolumeId(Aws::String &&value)
CreateSnapshotRequest & WithClientRequestToken(Aws::String &&value)
CreateSnapshotRequest & WithVolumeId(const char *value)
CreateSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSnapshotRequest & WithName(const Aws::String &value)
AWS_FSX_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithClientRequestToken(const char *value)
void SetVolumeId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateSnapshotRequest & WithClientRequestToken(const Aws::String &value)
CreateSnapshotRequest & WithVolumeId(const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
CreateSnapshotRequest & AddTags(const Tag &value)
void SetClientRequestToken(Aws::String &&value)
CreateSnapshotRequest & AddTags(Tag &&value)
CreateSnapshotRequest & WithName(Aws::String &&value)
const Aws::String & GetClientRequestToken() const
void SetName(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&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