/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 settings of a global secondary index for a * replica that will be modified.

See Also:

AWS * API Reference

*/ class ReplicaGlobalSecondaryIndexAutoScalingUpdate { public: AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingUpdate(); AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingUpdate& 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 ReplicaGlobalSecondaryIndexAutoScalingUpdate& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the global secondary index.

*/ inline ReplicaGlobalSecondaryIndexAutoScalingUpdate& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the global secondary index.

*/ inline ReplicaGlobalSecondaryIndexAutoScalingUpdate& WithIndexName(const char* value) { SetIndexName(value); return *this;} inline const AutoScalingSettingsUpdate& GetProvisionedReadCapacityAutoScalingUpdate() const{ return m_provisionedReadCapacityAutoScalingUpdate; } inline bool ProvisionedReadCapacityAutoScalingUpdateHasBeenSet() const { return m_provisionedReadCapacityAutoScalingUpdateHasBeenSet; } inline void SetProvisionedReadCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate& value) { m_provisionedReadCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedReadCapacityAutoScalingUpdate = value; } inline void SetProvisionedReadCapacityAutoScalingUpdate(AutoScalingSettingsUpdate&& value) { m_provisionedReadCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedReadCapacityAutoScalingUpdate = std::move(value); } inline ReplicaGlobalSecondaryIndexAutoScalingUpdate& WithProvisionedReadCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate& value) { SetProvisionedReadCapacityAutoScalingUpdate(value); return *this;} inline ReplicaGlobalSecondaryIndexAutoScalingUpdate& WithProvisionedReadCapacityAutoScalingUpdate(AutoScalingSettingsUpdate&& value) { SetProvisionedReadCapacityAutoScalingUpdate(std::move(value)); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; AutoScalingSettingsUpdate m_provisionedReadCapacityAutoScalingUpdate; bool m_provisionedReadCapacityAutoScalingUpdateHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws