75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/securityhub/model/AwsDynamoDbTableReplicaGlobalSecondaryIndex.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SecurityHub
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
AwsDynamoDbTableReplicaGlobalSecondaryIndex::AwsDynamoDbTableReplicaGlobalSecondaryIndex() :
|
|
m_indexNameHasBeenSet(false),
|
|
m_provisionedThroughputOverrideHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
AwsDynamoDbTableReplicaGlobalSecondaryIndex::AwsDynamoDbTableReplicaGlobalSecondaryIndex(JsonView jsonValue) :
|
|
m_indexNameHasBeenSet(false),
|
|
m_provisionedThroughputOverrideHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
AwsDynamoDbTableReplicaGlobalSecondaryIndex& AwsDynamoDbTableReplicaGlobalSecondaryIndex::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("IndexName"))
|
|
{
|
|
m_indexName = jsonValue.GetString("IndexName");
|
|
|
|
m_indexNameHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("ProvisionedThroughputOverride"))
|
|
{
|
|
m_provisionedThroughputOverride = jsonValue.GetObject("ProvisionedThroughputOverride");
|
|
|
|
m_provisionedThroughputOverrideHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue AwsDynamoDbTableReplicaGlobalSecondaryIndex::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_indexNameHasBeenSet)
|
|
{
|
|
payload.WithString("IndexName", m_indexName);
|
|
|
|
}
|
|
|
|
if(m_provisionedThroughputOverrideHasBeenSet)
|
|
{
|
|
payload.WithObject("ProvisionedThroughputOverride", m_provisionedThroughputOverride.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace SecurityHub
|
|
} // namespace Aws
|