1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/elasticache/ElastiCache_EXPORTS.h> 8 #include <aws/elasticache/ElastiCacheRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace ElastiCache 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_ELASTICACHE_API RebalanceSlotsInGlobalReplicationGroupRequest : public ElastiCacheRequest 22 { 23 public: 24 RebalanceSlotsInGlobalReplicationGroupRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "RebalanceSlotsInGlobalReplicationGroup"; } 31 32 Aws::String SerializePayload() const override; 33 34 protected: 35 void DumpBodyToUrl(Aws::Http::URI& uri ) const override; 36 37 public: 38 39 /** 40 * <p>The name of the Global datastore</p> 41 */ GetGlobalReplicationGroupId()42 inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; } 43 44 /** 45 * <p>The name of the Global datastore</p> 46 */ GlobalReplicationGroupIdHasBeenSet()47 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; } 48 49 /** 50 * <p>The name of the Global datastore</p> 51 */ SetGlobalReplicationGroupId(const Aws::String & value)52 inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; } 53 54 /** 55 * <p>The name of the Global datastore</p> 56 */ SetGlobalReplicationGroupId(Aws::String && value)57 inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); } 58 59 /** 60 * <p>The name of the Global datastore</p> 61 */ SetGlobalReplicationGroupId(const char * value)62 inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); } 63 64 /** 65 * <p>The name of the Global datastore</p> 66 */ WithGlobalReplicationGroupId(const Aws::String & value)67 inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const Aws::String& value) { SetGlobalReplicationGroupId(value); return *this;} 68 69 /** 70 * <p>The name of the Global datastore</p> 71 */ WithGlobalReplicationGroupId(Aws::String && value)72 inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(Aws::String&& value) { SetGlobalReplicationGroupId(std::move(value)); return *this;} 73 74 /** 75 * <p>The name of the Global datastore</p> 76 */ WithGlobalReplicationGroupId(const char * value)77 inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;} 78 79 80 /** 81 * <p>If <code>True</code>, redistribution is applied immediately.</p> 82 */ GetApplyImmediately()83 inline bool GetApplyImmediately() const{ return m_applyImmediately; } 84 85 /** 86 * <p>If <code>True</code>, redistribution is applied immediately.</p> 87 */ ApplyImmediatelyHasBeenSet()88 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; } 89 90 /** 91 * <p>If <code>True</code>, redistribution is applied immediately.</p> 92 */ SetApplyImmediately(bool value)93 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; } 94 95 /** 96 * <p>If <code>True</code>, redistribution is applied immediately.</p> 97 */ WithApplyImmediately(bool value)98 inline RebalanceSlotsInGlobalReplicationGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;} 99 100 private: 101 102 Aws::String m_globalReplicationGroupId; 103 bool m_globalReplicationGroupIdHasBeenSet; 104 105 bool m_applyImmediately; 106 bool m_applyImmediatelyHasBeenSet; 107 }; 108 109 } // namespace Model 110 } // namespace ElastiCache 111 } // namespace Aws 112