AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
51 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
52 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
53 inline CreateBackupRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
54 inline CreateBackupRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
55 inline CreateBackupRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
57
59
64 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
67 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
68 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
69 inline CreateBackupRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
70 inline CreateBackupRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
71 inline CreateBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
73
75
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 CreateBackupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
87 inline CreateBackupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
89 inline CreateBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
91
93
96 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
97 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
98 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
99 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
100 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
101 inline CreateBackupRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
102 inline CreateBackupRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
103 inline CreateBackupRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
105 private:
106
107 Aws::String m_fileSystemId;
108 bool m_fileSystemIdHasBeenSet = false;
109
110 Aws::String m_clientRequestToken;
111 bool m_clientRequestTokenHasBeenSet = false;
112
113 Aws::Vector<Tag> m_tags;
114 bool m_tagsHasBeenSet = false;
115
116 Aws::String m_volumeId;
117 bool m_volumeIdHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace FSx
122} // namespace Aws
const Aws::String & GetFileSystemId() const
void SetTags(const Aws::Vector< Tag > &value)
void SetFileSystemId(Aws::String &&value)
CreateBackupRequest & WithClientRequestToken(Aws::String &&value)
CreateBackupRequest & WithClientRequestToken(const char *value)
void SetClientRequestToken(Aws::String &&value)
const Aws::String & GetVolumeId() const
CreateBackupRequest & WithVolumeId(const char *value)
CreateBackupRequest & WithFileSystemId(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
CreateBackupRequest & WithFileSystemId(const char *value)
void SetClientRequestToken(const Aws::String &value)
void SetFileSystemId(const Aws::String &value)
CreateBackupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateBackupRequest & WithVolumeId(const Aws::String &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBackupRequest & AddTags(Tag &&value)
CreateBackupRequest & WithFileSystemId(Aws::String &&value)
const Aws::String & GetClientRequestToken() const
void SetClientRequestToken(const char *value)
CreateBackupRequest & WithClientRequestToken(const Aws::String &value)
CreateBackupRequest & WithVolumeId(Aws::String &&value)
void SetVolumeId(const Aws::String &value)
CreateBackupRequest & AddTags(const Tag &value)
CreateBackupRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API Aws::String SerializePayload() 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