Work.java - AWS Code Sample

Work.java

/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * This file is licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. A copy of * the License is located at * * http://aws.amazon.com/apache2.0/ * * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * */ package com.example.services; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbSortKey; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbPartitionKey; @DynamoDbBean public class Work { private String id; private String date; private String description ; private String guide; private String username ; private String status ; private String archive ; @DynamoDbPartitionKey public String getId() { return this.id; }; public void setId(String id) { this.id = id; } @DynamoDbSortKey public String getName() { return this.username; } public void setArchive(String archive) { this.archive = archive; } public String getArchive() { return this.archive; } public void setStatus(String status) { this.status = status; } public String getStatus() { return this.status; } public void setUsername(String username) { this.username = username; } public String getUsername() { return this.username; } public void setGuide(String guide) { this.guide = guide; } public String getGuide() { return this.guide; } public String getDate() { return this.date; } public void setDate(String date) { this.date = date; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }