This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-dynamodb/include/aws/dynamodb/model/ReplicaGlobalSecondaryIndexAutoScalingDescription.h

194 lines
8.7 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/IndexStatus.h>
#include <aws/dynamodb/model/AutoScalingSettingsDescription.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 configuration for a replica global secondary
* index.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaGlobalSecondaryIndexAutoScalingDescription">AWS
* API Reference</a></p>
*/
class AWS_DYNAMODB_API ReplicaGlobalSecondaryIndexAutoScalingDescription
{
public:
ReplicaGlobalSecondaryIndexAutoScalingDescription();
ReplicaGlobalSecondaryIndexAutoScalingDescription(Aws::Utils::Json::JsonView jsonValue);
ReplicaGlobalSecondaryIndexAutoScalingDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the global secondary index.</p>
*/
inline const Aws::String& GetIndexName() const{ return m_indexName; }
/**
* <p>The name of the global secondary index.</p>
*/
inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
/**
* <p>The name of the global secondary index.</p>
*/
inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
/**
* <p>The name of the global secondary index.</p>
*/
inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
/**
* <p>The name of the global secondary index.</p>
*/
inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
/**
* <p>The name of the global secondary index.</p>
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
/**
* <p>The name of the global secondary index.</p>
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
/**
* <p>The name of the global secondary index.</p>
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;}
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
inline const IndexStatus& GetIndexStatus() const{ return m_indexStatus; }
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
inline void SetIndexStatus(const IndexStatus& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
inline void SetIndexStatus(IndexStatus&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = std::move(value); }
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
inline ReplicaGlobalSecondaryIndexAutoScalingDescription& WithIndexStatus(const IndexStatus& value) { SetIndexStatus(value); return *this;}
/**
* <p>The current state of the replica global secondary index:</p> <ul> <li> <p>
* <code>CREATING</code> - The index is being created.</p> </li> <li> <p>
* <code>UPDATING</code> - The index is being updated.</p> </li> <li> <p>
* <code>DELETING</code> - The index is being deleted.</p> </li> <li> <p>
* <code>ACTIVE</code> - The index is ready for use.</p> </li> </ul>
*/
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;
IndexStatus m_indexStatus;
bool m_indexStatusHasBeenSet;
AutoScalingSettingsDescription m_provisionedReadCapacityAutoScalingSettings;
bool m_provisionedReadCapacityAutoScalingSettingsHasBeenSet;
AutoScalingSettingsDescription m_provisionedWriteCapacityAutoScalingSettings;
bool m_provisionedWriteCapacityAutoScalingSettingsHasBeenSet;
};
} // namespace Model
} // namespace DynamoDB
} // namespace Aws