AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ModifyGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/docdb/DocDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DocDB {
15namespace Model {
16
24 public:
25 AWS_DOCDB_API ModifyGlobalClusterRequest() = 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 "ModifyGlobalCluster"; }
32
33 AWS_DOCDB_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
45 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
46 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
47 template <typename GlobalClusterIdentifierT = Aws::String>
48 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
49 m_globalClusterIdentifierHasBeenSet = true;
50 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
51 }
52 template <typename GlobalClusterIdentifierT = Aws::String>
53 ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
54 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::String& GetNewGlobalClusterIdentifier() const { return m_newGlobalClusterIdentifier; }
68 inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
69 template <typename NewGlobalClusterIdentifierT = Aws::String>
70 void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) {
71 m_newGlobalClusterIdentifierHasBeenSet = true;
72 m_newGlobalClusterIdentifier = std::forward<NewGlobalClusterIdentifierT>(value);
73 }
74 template <typename NewGlobalClusterIdentifierT = Aws::String>
75 ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) {
76 SetNewGlobalClusterIdentifier(std::forward<NewGlobalClusterIdentifierT>(value));
77 return *this;
78 }
80
82
86 inline bool GetDeletionProtection() const { return m_deletionProtection; }
87 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
88 inline void SetDeletionProtection(bool value) {
89 m_deletionProtectionHasBeenSet = true;
90 m_deletionProtection = value;
91 }
94 return *this;
95 }
97 private:
98 Aws::String m_globalClusterIdentifier;
99
100 Aws::String m_newGlobalClusterIdentifier;
101
102 bool m_deletionProtection{false};
103 bool m_globalClusterIdentifierHasBeenSet = false;
104 bool m_newGlobalClusterIdentifierHasBeenSet = false;
105 bool m_deletionProtectionHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace DocDB
110} // 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