AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyBackupRequest.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 CopyBackupRequest();
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 "CopyBackup"; }
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); }
47 inline CopyBackupRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
48 inline CopyBackupRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
49 inline CopyBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
51
53
57 inline const Aws::String& GetSourceBackupId() const{ return m_sourceBackupId; }
58 inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
59 inline void SetSourceBackupId(const Aws::String& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = value; }
60 inline void SetSourceBackupId(Aws::String&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::move(value); }
61 inline void SetSourceBackupId(const char* value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId.assign(value); }
62 inline CopyBackupRequest& WithSourceBackupId(const Aws::String& value) { SetSourceBackupId(value); return *this;}
63 inline CopyBackupRequest& WithSourceBackupId(Aws::String&& value) { SetSourceBackupId(std::move(value)); return *this;}
64 inline CopyBackupRequest& WithSourceBackupId(const char* value) { SetSourceBackupId(value); return *this;}
66
68
75 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
76 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
77 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
78 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
79 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
80 inline CopyBackupRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
81 inline CopyBackupRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
82 inline CopyBackupRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
84
86
87 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
88 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
89 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
90 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
91 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
92 inline CopyBackupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
93 inline CopyBackupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
94 inline CopyBackupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
96
98
108 inline bool GetCopyTags() const{ return m_copyTags; }
109 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
110 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
111 inline CopyBackupRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
113
115
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CopyBackupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CopyBackupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CopyBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CopyBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_clientRequestToken;
128 bool m_clientRequestTokenHasBeenSet = false;
129
130 Aws::String m_sourceBackupId;
131 bool m_sourceBackupIdHasBeenSet = false;
132
133 Aws::String m_sourceRegion;
134 bool m_sourceRegionHasBeenSet = false;
135
136 Aws::String m_kmsKeyId;
137 bool m_kmsKeyIdHasBeenSet = false;
138
139 bool m_copyTags;
140 bool m_copyTagsHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace FSx
148} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetKmsKeyId() const
const Aws::String & GetSourceBackupId() const
void SetKmsKeyId(const Aws::String &value)
CopyBackupRequest & WithCopyTags(bool value)
void SetSourceBackupId(const Aws::String &value)
CopyBackupRequest & WithTags(const Aws::Vector< Tag > &value)
CopyBackupRequest & WithClientRequestToken(const char *value)
const Aws::String & GetSourceRegion() const
void SetSourceBackupId(Aws::String &&value)
void SetSourceRegion(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_FSX_API Aws::String SerializePayload() const override
CopyBackupRequest & WithSourceRegion(const char *value)
CopyBackupRequest & WithKmsKeyId(Aws::String &&value)
void SetSourceBackupId(const char *value)
CopyBackupRequest & WithSourceBackupId(const Aws::String &value)
void SetKmsKeyId(const char *value)
CopyBackupRequest & WithKmsKeyId(const char *value)
CopyBackupRequest & WithSourceRegion(Aws::String &&value)
CopyBackupRequest & AddTags(Tag &&value)
void SetClientRequestToken(const char *value)
CopyBackupRequest & WithKmsKeyId(const Aws::String &value)
CopyBackupRequest & WithSourceBackupId(Aws::String &&value)
CopyBackupRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetClientRequestToken() const
CopyBackupRequest & WithClientRequestToken(const Aws::String &value)
CopyBackupRequest & WithSourceBackupId(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Vector< Tag > &&value)
CopyBackupRequest & AddTags(const Tag &value)
void SetSourceRegion(const Aws::String &value)
CopyBackupRequest & WithClientRequestToken(Aws::String &&value)
void SetSourceRegion(const char *value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientRequestToken(Aws::String &&value)
void SetClientRequestToken(const Aws::String &value)
CopyBackupRequest & WithSourceRegion(const Aws::String &value)
void SetKmsKeyId(Aws::String &&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