AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClientRequestTokenT = Aws::String>
45 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
46 template<typename ClientRequestTokenT = Aws::String>
47 CopyBackupRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
49
51
55 inline const Aws::String& GetSourceBackupId() const { return m_sourceBackupId; }
56 inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
57 template<typename SourceBackupIdT = Aws::String>
58 void SetSourceBackupId(SourceBackupIdT&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::forward<SourceBackupIdT>(value); }
59 template<typename SourceBackupIdT = Aws::String>
60 CopyBackupRequest& WithSourceBackupId(SourceBackupIdT&& value) { SetSourceBackupId(std::forward<SourceBackupIdT>(value)); return *this;}
62
64
71 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
72 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
73 template<typename SourceRegionT = Aws::String>
74 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
75 template<typename SourceRegionT = Aws::String>
76 CopyBackupRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
78
80
81 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
82 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
83 template<typename KmsKeyIdT = Aws::String>
84 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
85 template<typename KmsKeyIdT = Aws::String>
86 CopyBackupRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
88
90
100 inline bool GetCopyTags() const { return m_copyTags; }
101 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
102 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
103 inline CopyBackupRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
105
107
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 CopyBackupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 CopyBackupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117 private:
118
119 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
120 bool m_clientRequestTokenHasBeenSet = true;
121
122 Aws::String m_sourceBackupId;
123 bool m_sourceBackupIdHasBeenSet = false;
124
125 Aws::String m_sourceRegion;
126 bool m_sourceRegionHasBeenSet = false;
127
128 Aws::String m_kmsKeyId;
129 bool m_kmsKeyIdHasBeenSet = false;
130
131 bool m_copyTags{false};
132 bool m_copyTagsHasBeenSet = false;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_tagsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace FSx
140} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetKmsKeyId() const
const Aws::String & GetSourceBackupId() const
AWS_FSX_API CopyBackupRequest()=default
CopyBackupRequest & WithCopyTags(bool value)
void SetKmsKeyId(KmsKeyIdT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
CopyBackupRequest & WithSourceBackupId(SourceBackupIdT &&value)
const Aws::String & GetSourceRegion() const
AWS_FSX_API Aws::String SerializePayload() const override
CopyBackupRequest & WithTags(TagsT &&value)
void SetSourceBackupId(SourceBackupIdT &&value)
CopyBackupRequest & AddTags(TagsT &&value)
void SetSourceRegion(SourceRegionT &&value)
const Aws::String & GetClientRequestToken() const
virtual const char * GetServiceRequestName() const override
CopyBackupRequest & WithSourceRegion(SourceRegionT &&value)
CopyBackupRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopyBackupRequest & WithKmsKeyId(KmsKeyIdT &&value)
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