AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ModifyGlobalClusterRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace DocDB
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_DOCDB_API ModifyGlobalClusterRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyGlobalCluster"; }
35
36 AWS_DOCDB_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
49 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
50 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
51 template<typename GlobalClusterIdentifierT = Aws::String>
52 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
53 template<typename GlobalClusterIdentifierT = Aws::String>
54 ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
56
58
65 inline const Aws::String& GetNewGlobalClusterIdentifier() const { return m_newGlobalClusterIdentifier; }
66 inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
67 template<typename NewGlobalClusterIdentifierT = Aws::String>
68 void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = std::forward<NewGlobalClusterIdentifierT>(value); }
69 template<typename NewGlobalClusterIdentifierT = Aws::String>
70 ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) { SetNewGlobalClusterIdentifier(std::forward<NewGlobalClusterIdentifierT>(value)); return *this;}
72
74
78 inline bool GetDeletionProtection() const { return m_deletionProtection; }
79 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
80 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
81 inline ModifyGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
83 private:
84
85 Aws::String m_globalClusterIdentifier;
86 bool m_globalClusterIdentifierHasBeenSet = false;
87
88 Aws::String m_newGlobalClusterIdentifier;
89 bool m_newGlobalClusterIdentifierHasBeenSet = false;
90
91 bool m_deletionProtection{false};
92 bool m_deletionProtectionHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace DocDB
97} // namespace Aws
void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithDeletionProtection(bool value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_DOCDB_API ModifyGlobalClusterRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String