// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 using Amazon.DynamoDBv2.DataModel; using System.Text.Json.Serialization; /// /// A class representing book information to be added to the Amazon DynamoDB /// ProductCatalog table. /// [DynamoDBTable("BooksCatalog")] public class Book { [DynamoDBHashKey] // Partition key public Guid Id { get; set; } [DynamoDBProperty] public string Title { get; set; } [DynamoDBProperty] public string Isbn { get; set; } [JsonPropertyName("Authors")] [DynamoDBProperty("Authors")] // String Set datatype public List BookAuthors { get; set; } }