AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyServerlessCacheSnapshotRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICACHE_API CopyServerlessCacheSnapshotRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CopyServerlessCacheSnapshot"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetSourceServerlessCacheSnapshotName() const { return m_sourceServerlessCacheSnapshotName; }
47 inline bool SourceServerlessCacheSnapshotNameHasBeenSet() const { return m_sourceServerlessCacheSnapshotNameHasBeenSet; }
48 template<typename SourceServerlessCacheSnapshotNameT = Aws::String>
49 void SetSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT&& value) { m_sourceServerlessCacheSnapshotNameHasBeenSet = true; m_sourceServerlessCacheSnapshotName = std::forward<SourceServerlessCacheSnapshotNameT>(value); }
50 template<typename SourceServerlessCacheSnapshotNameT = Aws::String>
51 CopyServerlessCacheSnapshotRequest& WithSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT&& value) { SetSourceServerlessCacheSnapshotName(std::forward<SourceServerlessCacheSnapshotNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetTargetServerlessCacheSnapshotName() const { return m_targetServerlessCacheSnapshotName; }
60 inline bool TargetServerlessCacheSnapshotNameHasBeenSet() const { return m_targetServerlessCacheSnapshotNameHasBeenSet; }
61 template<typename TargetServerlessCacheSnapshotNameT = Aws::String>
62 void SetTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT&& value) { m_targetServerlessCacheSnapshotNameHasBeenSet = true; m_targetServerlessCacheSnapshotName = std::forward<TargetServerlessCacheSnapshotNameT>(value); }
63 template<typename TargetServerlessCacheSnapshotNameT = Aws::String>
64 CopyServerlessCacheSnapshotRequest& WithTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT&& value) { SetTargetServerlessCacheSnapshotName(std::forward<TargetServerlessCacheSnapshotNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
73 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
74 template<typename KmsKeyIdT = Aws::String>
75 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
76 template<typename KmsKeyIdT = Aws::String>
77 CopyServerlessCacheSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
79
81
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Vector<Tag>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Vector<Tag>>
91 CopyServerlessCacheSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Tag>
93 CopyServerlessCacheSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95 private:
96
97 Aws::String m_sourceServerlessCacheSnapshotName;
98 bool m_sourceServerlessCacheSnapshotNameHasBeenSet = false;
99
100 Aws::String m_targetServerlessCacheSnapshotName;
101 bool m_targetServerlessCacheSnapshotNameHasBeenSet = false;
102
103 Aws::String m_kmsKeyId;
104 bool m_kmsKeyIdHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ElastiCache
112} // namespace Aws
AWS_ELASTICACHE_API CopyServerlessCacheSnapshotRequest()=default
void SetSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CopyServerlessCacheSnapshotRequest & WithTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT &&value)
void SetTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT &&value)
CopyServerlessCacheSnapshotRequest & WithSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyServerlessCacheSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector