211 lines
7.3 KiB
C++
211 lines
7.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/dynamodb/model/AutoScalingPolicyUpdate.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace DynamoDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the auto scaling settings to be modified for a global table or
|
|
* global secondary index.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AutoScalingSettingsUpdate">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_DYNAMODB_API AutoScalingSettingsUpdate
|
|
{
|
|
public:
|
|
AutoScalingSettingsUpdate();
|
|
AutoScalingSettingsUpdate(Aws::Utils::Json::JsonView jsonValue);
|
|
AutoScalingSettingsUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The minimum capacity units that a global table or global secondary index
|
|
* should be scaled down to.</p>
|
|
*/
|
|
inline long long GetMinimumUnits() const{ return m_minimumUnits; }
|
|
|
|
/**
|
|
* <p>The minimum capacity units that a global table or global secondary index
|
|
* should be scaled down to.</p>
|
|
*/
|
|
inline bool MinimumUnitsHasBeenSet() const { return m_minimumUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The minimum capacity units that a global table or global secondary index
|
|
* should be scaled down to.</p>
|
|
*/
|
|
inline void SetMinimumUnits(long long value) { m_minimumUnitsHasBeenSet = true; m_minimumUnits = value; }
|
|
|
|
/**
|
|
* <p>The minimum capacity units that a global table or global secondary index
|
|
* should be scaled down to.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithMinimumUnits(long long value) { SetMinimumUnits(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum capacity units that a global table or global secondary index
|
|
* should be scaled up to.</p>
|
|
*/
|
|
inline long long GetMaximumUnits() const{ return m_maximumUnits; }
|
|
|
|
/**
|
|
* <p>The maximum capacity units that a global table or global secondary index
|
|
* should be scaled up to.</p>
|
|
*/
|
|
inline bool MaximumUnitsHasBeenSet() const { return m_maximumUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum capacity units that a global table or global secondary index
|
|
* should be scaled up to.</p>
|
|
*/
|
|
inline void SetMaximumUnits(long long value) { m_maximumUnitsHasBeenSet = true; m_maximumUnits = value; }
|
|
|
|
/**
|
|
* <p>The maximum capacity units that a global table or global secondary index
|
|
* should be scaled up to.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithMaximumUnits(long long value) { SetMaximumUnits(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Disabled auto scaling for this global table or global secondary index.</p>
|
|
*/
|
|
inline bool GetAutoScalingDisabled() const{ return m_autoScalingDisabled; }
|
|
|
|
/**
|
|
* <p>Disabled auto scaling for this global table or global secondary index.</p>
|
|
*/
|
|
inline bool AutoScalingDisabledHasBeenSet() const { return m_autoScalingDisabledHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Disabled auto scaling for this global table or global secondary index.</p>
|
|
*/
|
|
inline void SetAutoScalingDisabled(bool value) { m_autoScalingDisabledHasBeenSet = true; m_autoScalingDisabled = value; }
|
|
|
|
/**
|
|
* <p>Disabled auto scaling for this global table or global secondary index.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithAutoScalingDisabled(bool value) { SetAutoScalingDisabled(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline const Aws::String& GetAutoScalingRoleArn() const{ return m_autoScalingRoleArn; }
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline bool AutoScalingRoleArnHasBeenSet() const { return m_autoScalingRoleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline void SetAutoScalingRoleArn(const Aws::String& value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn = value; }
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline void SetAutoScalingRoleArn(Aws::String&& value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline void SetAutoScalingRoleArn(const char* value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithAutoScalingRoleArn(const Aws::String& value) { SetAutoScalingRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithAutoScalingRoleArn(Aws::String&& value) { SetAutoScalingRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Role ARN used for configuring auto scaling policy.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithAutoScalingRoleArn(const char* value) { SetAutoScalingRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline const AutoScalingPolicyUpdate& GetScalingPolicyUpdate() const{ return m_scalingPolicyUpdate; }
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline bool ScalingPolicyUpdateHasBeenSet() const { return m_scalingPolicyUpdateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline void SetScalingPolicyUpdate(const AutoScalingPolicyUpdate& value) { m_scalingPolicyUpdateHasBeenSet = true; m_scalingPolicyUpdate = value; }
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline void SetScalingPolicyUpdate(AutoScalingPolicyUpdate&& value) { m_scalingPolicyUpdateHasBeenSet = true; m_scalingPolicyUpdate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithScalingPolicyUpdate(const AutoScalingPolicyUpdate& value) { SetScalingPolicyUpdate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The scaling policy to apply for scaling target global table or global
|
|
* secondary index capacity units.</p>
|
|
*/
|
|
inline AutoScalingSettingsUpdate& WithScalingPolicyUpdate(AutoScalingPolicyUpdate&& value) { SetScalingPolicyUpdate(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
long long m_minimumUnits;
|
|
bool m_minimumUnitsHasBeenSet;
|
|
|
|
long long m_maximumUnits;
|
|
bool m_maximumUnitsHasBeenSet;
|
|
|
|
bool m_autoScalingDisabled;
|
|
bool m_autoScalingDisabledHasBeenSet;
|
|
|
|
Aws::String m_autoScalingRoleArn;
|
|
bool m_autoScalingRoleArnHasBeenSet;
|
|
|
|
AutoScalingPolicyUpdate m_scalingPolicyUpdate;
|
|
bool m_scalingPolicyUpdateHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DynamoDB
|
|
} // namespace Aws
|