AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteGlobalReplicationGroupRequest.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
20 public:
21 AWS_ELASTICACHE_API DeleteGlobalReplicationGroupRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteGlobalReplicationGroup"; }
28
29 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetGlobalReplicationGroupId() const { return m_globalReplicationGroupId; }
40 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
41 template <typename GlobalReplicationGroupIdT = Aws::String>
42 void SetGlobalReplicationGroupId(GlobalReplicationGroupIdT&& value) {
43 m_globalReplicationGroupIdHasBeenSet = true;
44 m_globalReplicationGroupId = std::forward<GlobalReplicationGroupIdT>(value);
45 }
46 template <typename GlobalReplicationGroupIdT = Aws::String>
48 SetGlobalReplicationGroupId(std::forward<GlobalReplicationGroupIdT>(value));
49 return *this;
50 }
52
54
58 inline bool GetRetainPrimaryReplicationGroup() const { return m_retainPrimaryReplicationGroup; }
59 inline bool RetainPrimaryReplicationGroupHasBeenSet() const { return m_retainPrimaryReplicationGroupHasBeenSet; }
60 inline void SetRetainPrimaryReplicationGroup(bool value) {
61 m_retainPrimaryReplicationGroupHasBeenSet = true;
62 m_retainPrimaryReplicationGroup = value;
63 }
66 return *this;
67 }
69 private:
70 Aws::String m_globalReplicationGroupId;
71
72 bool m_retainPrimaryReplicationGroup{false};
73 bool m_globalReplicationGroupIdHasBeenSet = false;
74 bool m_retainPrimaryReplicationGroupHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ElastiCache
79} // namespace Aws
DeleteGlobalReplicationGroupRequest & WithRetainPrimaryReplicationGroup(bool value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
AWS_ELASTICACHE_API DeleteGlobalReplicationGroupRequest()=default
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(GlobalReplicationGroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String