/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SecurityHub { namespace Model { AwsDynamoDbTableRestoreSummary::AwsDynamoDbTableRestoreSummary() : m_sourceBackupArnHasBeenSet(false), m_sourceTableArnHasBeenSet(false), m_restoreDateTimeHasBeenSet(false), m_restoreInProgress(false), m_restoreInProgressHasBeenSet(false) { } AwsDynamoDbTableRestoreSummary::AwsDynamoDbTableRestoreSummary(JsonView jsonValue) : m_sourceBackupArnHasBeenSet(false), m_sourceTableArnHasBeenSet(false), m_restoreDateTimeHasBeenSet(false), m_restoreInProgress(false), m_restoreInProgressHasBeenSet(false) { *this = jsonValue; } AwsDynamoDbTableRestoreSummary& AwsDynamoDbTableRestoreSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SourceBackupArn")) { m_sourceBackupArn = jsonValue.GetString("SourceBackupArn"); m_sourceBackupArnHasBeenSet = true; } if(jsonValue.ValueExists("SourceTableArn")) { m_sourceTableArn = jsonValue.GetString("SourceTableArn"); m_sourceTableArnHasBeenSet = true; } if(jsonValue.ValueExists("RestoreDateTime")) { m_restoreDateTime = jsonValue.GetString("RestoreDateTime"); m_restoreDateTimeHasBeenSet = true; } if(jsonValue.ValueExists("RestoreInProgress")) { m_restoreInProgress = jsonValue.GetBool("RestoreInProgress"); m_restoreInProgressHasBeenSet = true; } return *this; } JsonValue AwsDynamoDbTableRestoreSummary::Jsonize() const { JsonValue payload; if(m_sourceBackupArnHasBeenSet) { payload.WithString("SourceBackupArn", m_sourceBackupArn); } if(m_sourceTableArnHasBeenSet) { payload.WithString("SourceTableArn", m_sourceTableArn); } if(m_restoreDateTimeHasBeenSet) { payload.WithString("RestoreDateTime", m_restoreDateTime); } if(m_restoreInProgressHasBeenSet) { payload.WithBool("RestoreInProgress", m_restoreInProgress); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws