AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DecreaseReplicationFactorRequest.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/dax/DAXRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DAX
16{
17namespace Model
18{
19
23 {
24 public:
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 "DecreaseReplicationFactor"; }
32
33 AWS_DAX_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
45 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
46 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
47 inline DecreaseReplicationFactorRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
48 inline DecreaseReplicationFactorRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
49 inline DecreaseReplicationFactorRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
51
53
56 inline int GetNewReplicationFactor() const{ return m_newReplicationFactor; }
57 inline bool NewReplicationFactorHasBeenSet() const { return m_newReplicationFactorHasBeenSet; }
58 inline void SetNewReplicationFactor(int value) { m_newReplicationFactorHasBeenSet = true; m_newReplicationFactor = value; }
61
63
66 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
67 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
68 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
69 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
72 inline DecreaseReplicationFactorRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
73 inline DecreaseReplicationFactorRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
74 inline DecreaseReplicationFactorRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
76
78
81 inline const Aws::Vector<Aws::String>& GetNodeIdsToRemove() const{ return m_nodeIdsToRemove; }
82 inline bool NodeIdsToRemoveHasBeenSet() const { return m_nodeIdsToRemoveHasBeenSet; }
83 inline void SetNodeIdsToRemove(const Aws::Vector<Aws::String>& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove = value; }
84 inline void SetNodeIdsToRemove(Aws::Vector<Aws::String>&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove = std::move(value); }
87 inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(const Aws::String& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(value); return *this; }
88 inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(Aws::String&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(std::move(value)); return *this; }
89 inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(const char* value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(value); return *this; }
91 private:
92
93 Aws::String m_clusterName;
94 bool m_clusterNameHasBeenSet = false;
95
96 int m_newReplicationFactor;
97 bool m_newReplicationFactorHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_availabilityZones;
100 bool m_availabilityZonesHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_nodeIdsToRemove;
103 bool m_nodeIdsToRemoveHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace DAX
108} // namespace Aws
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DecreaseReplicationFactorRequest & WithClusterName(Aws::String &&value)
AWS_DAX_API Aws::String SerializePayload() const override
DecreaseReplicationFactorRequest & WithClusterName(const char *value)
DecreaseReplicationFactorRequest & WithNewReplicationFactor(int value)
DecreaseReplicationFactorRequest & WithNodeIdsToRemove(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetNodeIdsToRemove() const
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
DecreaseReplicationFactorRequest & WithClusterName(const Aws::String &value)
DecreaseReplicationFactorRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
DecreaseReplicationFactorRequest & AddNodeIdsToRemove(Aws::String &&value)
DecreaseReplicationFactorRequest & AddNodeIdsToRemove(const Aws::String &value)
DecreaseReplicationFactorRequest & AddAvailabilityZones(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
DecreaseReplicationFactorRequest & WithNodeIdsToRemove(Aws::Vector< Aws::String > &&value)
DecreaseReplicationFactorRequest & AddNodeIdsToRemove(const char *value)
DecreaseReplicationFactorRequest & AddAvailabilityZones(Aws::String &&value)
void SetNodeIdsToRemove(const Aws::Vector< Aws::String > &value)
DecreaseReplicationFactorRequest & AddAvailabilityZones(const Aws::String &value)
DecreaseReplicationFactorRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector