/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DynamoDB
{
namespace Model
{
/**
* Represents the auto scaling configuration for a replica global secondary
* index.
See Also:
AWS
* API Reference
*/
class ReplicaGlobalSecondaryIndexAutoScalingDescription
{
public:
AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingDescription();
AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingDescription(Aws::Utils::Json::JsonView jsonValue);
AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The name of the global secondary index.
*/
inline const Aws::String& GetIndexName() const{ return m_indexName; }
/**
* The name of the global secondary index.
*/
inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
/**
* The name of the global secondary index.
*/
inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
/**
* The name of the global secondary index.
*/
inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
/**
* The name of the global secondary index.
*/
inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
/**
* The name of the global secondary index.
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
/**
* The name of the global secondary index.
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
/**
* The name of the global secondary index.
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;}
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline const IndexStatus& GetIndexStatus() const{ return m_indexStatus; }
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline void SetIndexStatus(const IndexStatus& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline void SetIndexStatus(IndexStatus&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = std::move(value); }
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexStatus(const IndexStatus& value) { SetIndexStatus(value); return *this;}
/**
* The current state of the replica global secondary index:
-
* CREATING
- The index is being created.
-
* UPDATING
- The table/index configuration is being updated. The
* table/index remains available for data operations when UPDATING
*
-
DELETING
- The index is being deleted.
* -
ACTIVE
- The index is ready for use.
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexStatus(IndexStatus&& value) { SetIndexStatus(std::move(value)); return *this;}
inline const AutoScalingSettingsDescription& GetProvisionedReadCapacityAutoScalingSettings() const{ return m_provisionedReadCapacityAutoScalingSettings; }
inline bool ProvisionedReadCapacityAutoScalingSettingsHasBeenSet() const { return m_provisionedReadCapacityAutoScalingSettingsHasBeenSet; }
inline void SetProvisionedReadCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { m_provisionedReadCapacityAutoScalingSettingsHasBeenSet = true; m_provisionedReadCapacityAutoScalingSettings = value; }
inline void SetProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { m_provisionedReadCapacityAutoScalingSettingsHasBeenSet = true; m_provisionedReadCapacityAutoScalingSettings = std::move(value); }
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithProvisionedReadCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { SetProvisionedReadCapacityAutoScalingSettings(value); return *this;}
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { SetProvisionedReadCapacityAutoScalingSettings(std::move(value)); return *this;}
inline const AutoScalingSettingsDescription& GetProvisionedWriteCapacityAutoScalingSettings() const{ return m_provisionedWriteCapacityAutoScalingSettings; }
inline bool ProvisionedWriteCapacityAutoScalingSettingsHasBeenSet() const { return m_provisionedWriteCapacityAutoScalingSettingsHasBeenSet; }
inline void SetProvisionedWriteCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { m_provisionedWriteCapacityAutoScalingSettingsHasBeenSet = true; m_provisionedWriteCapacityAutoScalingSettings = value; }
inline void SetProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { m_provisionedWriteCapacityAutoScalingSettingsHasBeenSet = true; m_provisionedWriteCapacityAutoScalingSettings = std::move(value); }
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithProvisionedWriteCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { SetProvisionedWriteCapacityAutoScalingSettings(value); return *this;}
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { SetProvisionedWriteCapacityAutoScalingSettings(std::move(value)); return *this;}
private:
Aws::String m_indexName;
bool m_indexNameHasBeenSet = false;
IndexStatus m_indexStatus;
bool m_indexStatusHasBeenSet = false;
AutoScalingSettingsDescription m_provisionedReadCapacityAutoScalingSettings;
bool m_provisionedReadCapacityAutoScalingSettingsHasBeenSet = false;
AutoScalingSettingsDescription m_provisionedWriteCapacityAutoScalingSettings;
bool m_provisionedWriteCapacityAutoScalingSettingsHasBeenSet = false;
};
} // namespace Model
} // namespace DynamoDB
} // namespace Aws