112 lines
3.8 KiB
C
112 lines
3.8 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|||
|
|
#include <aws/elasticache/ElastiCacheRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace ElastiCache
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICACHE_API RebalanceSlotsInGlobalReplicationGroupRequest : public ElastiCacheRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
RebalanceSlotsInGlobalReplicationGroupRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "RebalanceSlotsInGlobalReplicationGroup"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const Aws::String& value) { SetGlobalReplicationGroupId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(Aws::String&& value) { SetGlobalReplicationGroupId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the Global Datastore</p>
|
|||
|
|
*/
|
|||
|
|
inline RebalanceSlotsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>True</code>, redistribution is applied immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetApplyImmediately() const{ return m_applyImmediately; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>True</code>, redistribution is applied immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>True</code>, redistribution is applied immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>True</code>, redistribution is applied immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline RebalanceSlotsInGlobalReplicationGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_globalReplicationGroupId;
|
|||
|
|
bool m_globalReplicationGroupIdHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_applyImmediately;
|
|||
|
|
bool m_applyImmediatelyHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElastiCache
|
|||
|
|
} // namespace Aws
|