AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateServerlessCacheSnapshotRequest.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 CreateServerlessCacheSnapshotRequest() = 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 "CreateServerlessCacheSnapshot"; }
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
47 inline const Aws::String& GetServerlessCacheSnapshotName() const { return m_serverlessCacheSnapshotName; }
48 inline bool ServerlessCacheSnapshotNameHasBeenSet() const { return m_serverlessCacheSnapshotNameHasBeenSet; }
49 template<typename ServerlessCacheSnapshotNameT = Aws::String>
50 void SetServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = std::forward<ServerlessCacheSnapshotNameT>(value); }
51 template<typename ServerlessCacheSnapshotNameT = Aws::String>
52 CreateServerlessCacheSnapshotRequest& WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) { SetServerlessCacheSnapshotName(std::forward<ServerlessCacheSnapshotNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
61 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
62 template<typename ServerlessCacheNameT = Aws::String>
63 void SetServerlessCacheName(ServerlessCacheNameT&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value); }
64 template<typename ServerlessCacheNameT = Aws::String>
65 CreateServerlessCacheSnapshotRequest& WithServerlessCacheName(ServerlessCacheNameT&& value) { SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value)); return *this;}
67
69
73 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
74 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
75 template<typename KmsKeyIdT = Aws::String>
76 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
77 template<typename KmsKeyIdT = Aws::String>
78 CreateServerlessCacheSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
80
82
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 CreateServerlessCacheSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Tag>
93 CreateServerlessCacheSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95 private:
96
97 Aws::String m_serverlessCacheSnapshotName;
98 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
99
100 Aws::String m_serverlessCacheName;
101 bool m_serverlessCacheNameHasBeenSet = 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 Aws::String SerializePayload() const override
CreateServerlessCacheSnapshotRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateServerlessCacheSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_ELASTICACHE_API CreateServerlessCacheSnapshotRequest()=default
CreateServerlessCacheSnapshotRequest & WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector