AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IncreaseReplicationFactorRequest.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 "IncreaseReplicationFactor"; }
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 IncreaseReplicationFactorRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
48 inline IncreaseReplicationFactorRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
49 inline IncreaseReplicationFactorRequest& 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
68 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
69 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
70 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
71 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
74 inline IncreaseReplicationFactorRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
75 inline IncreaseReplicationFactorRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
76 inline IncreaseReplicationFactorRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
78 private:
79
80 Aws::String m_clusterName;
81 bool m_clusterNameHasBeenSet = false;
82
83 int m_newReplicationFactor;
84 bool m_newReplicationFactorHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_availabilityZones;
87 bool m_availabilityZonesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DAX
92} // namespace Aws
IncreaseReplicationFactorRequest & WithClusterName(const Aws::String &value)
IncreaseReplicationFactorRequest & WithClusterName(Aws::String &&value)
IncreaseReplicationFactorRequest & AddAvailabilityZones(const char *value)
IncreaseReplicationFactorRequest & WithClusterName(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
AWS_DAX_API Aws::String SerializePayload() const override
IncreaseReplicationFactorRequest & WithNewReplicationFactor(int value)
IncreaseReplicationFactorRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
IncreaseReplicationFactorRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
IncreaseReplicationFactorRequest & AddAvailabilityZones(const Aws::String &value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IncreaseReplicationFactorRequest & AddAvailabilityZones(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