AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteReplicationGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElastiCache {
15namespace Model {
16
24 public:
25 AWS_ELASTICACHE_API DeleteReplicationGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DeleteReplicationGroup"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
44 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
45 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
46 template <typename ReplicationGroupIdT = Aws::String>
47 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
48 m_replicationGroupIdHasBeenSet = true;
49 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
50 }
51 template <typename ReplicationGroupIdT = Aws::String>
53 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
54 return *this;
55 }
57
59
63 inline bool GetRetainPrimaryCluster() const { return m_retainPrimaryCluster; }
64 inline bool RetainPrimaryClusterHasBeenSet() const { return m_retainPrimaryClusterHasBeenSet; }
65 inline void SetRetainPrimaryCluster(bool value) {
66 m_retainPrimaryClusterHasBeenSet = true;
67 m_retainPrimaryCluster = value;
68 }
71 return *this;
72 }
74
76
82 inline const Aws::String& GetFinalSnapshotIdentifier() const { return m_finalSnapshotIdentifier; }
83 inline bool FinalSnapshotIdentifierHasBeenSet() const { return m_finalSnapshotIdentifierHasBeenSet; }
84 template <typename FinalSnapshotIdentifierT = Aws::String>
85 void SetFinalSnapshotIdentifier(FinalSnapshotIdentifierT&& value) {
86 m_finalSnapshotIdentifierHasBeenSet = true;
87 m_finalSnapshotIdentifier = std::forward<FinalSnapshotIdentifierT>(value);
88 }
89 template <typename FinalSnapshotIdentifierT = Aws::String>
91 SetFinalSnapshotIdentifier(std::forward<FinalSnapshotIdentifierT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_replicationGroupId;
97
98 bool m_retainPrimaryCluster{false};
99
100 Aws::String m_finalSnapshotIdentifier;
101 bool m_replicationGroupIdHasBeenSet = false;
102 bool m_retainPrimaryClusterHasBeenSet = false;
103 bool m_finalSnapshotIdentifierHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ElastiCache
108} // namespace Aws
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API DeleteReplicationGroupRequest()=default
DeleteReplicationGroupRequest & WithFinalSnapshotIdentifier(FinalSnapshotIdentifierT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DeleteReplicationGroupRequest & WithRetainPrimaryCluster(bool value)
DeleteReplicationGroupRequest & WithReplicationGroupId(ReplicationGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String