AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBackupRequest.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
29 {
30 public:
31 AWS_FSX_API CreateBackupRequest() = 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 "CreateBackup"; }
38
39 AWS_FSX_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
49 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
50 template<typename FileSystemIdT = Aws::String>
51 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
52 template<typename FileSystemIdT = Aws::String>
53 CreateBackupRequest& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
55
57
62 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
63 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
64 template<typename ClientRequestTokenT = Aws::String>
65 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
66 template<typename ClientRequestTokenT = Aws::String>
67 CreateBackupRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
69
71
78 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Vector<Tag>>
83 CreateBackupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsT = Tag>
85 CreateBackupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
87
89
92 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
93 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
94 template<typename VolumeIdT = Aws::String>
95 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
96 template<typename VolumeIdT = Aws::String>
97 CreateBackupRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
99 private:
100
101 Aws::String m_fileSystemId;
102 bool m_fileSystemIdHasBeenSet = false;
103
104 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
105 bool m_clientRequestTokenHasBeenSet = true;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109
110 Aws::String m_volumeId;
111 bool m_volumeIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace FSx
116} // namespace Aws
const Aws::String & GetFileSystemId() const
CreateBackupRequest & WithFileSystemId(FileSystemIdT &&value)
CreateBackupRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetVolumeId() const
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateBackupRequest & WithVolumeId(VolumeIdT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientRequestToken() const
AWS_FSX_API CreateBackupRequest()=default
void SetFileSystemId(FileSystemIdT &&value)
CreateBackupRequest & WithTags(TagsT &&value)
CreateBackupRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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