content: /*
   * Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * 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
   *
   * or in the "license" file accompanying this file. 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.amazonaws.services.dynamodb.sessionmanager;
  
  import java.nio.ByteBuffer;
  
  import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
  import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
  import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;
  
  @DynamoDBTable(tableName = DynamoDBSessionManager.DEFAULT_TABLE_NAME)
  public class DynamoSessionItem {
  
      public static final String SESSION_ID_ATTRIBUTE_NAME = "sessionId";
      public static final String SESSION_DATA_ATTRIBUTE_NAME = "sessionData";
  
      private String sessionId;
      private ByteBuffer sessionData;
  
      public DynamoSessionItem() {
      }
  
      public DynamoSessionItem(String id) {
          this.sessionId = id;
      }
  
      @DynamoDBHashKey(attributeName = SESSION_ID_ATTRIBUTE_NAME)
      public String getSessionId() {
          return sessionId;
      }
  
      public void setSessionId(String sessionId) {
          this.sessionId = sessionId;
      }
  
      @DynamoDBAttribute(attributeName = SESSION_DATA_ATTRIBUTE_NAME)
      public ByteBuffer getSessionData() {
          return sessionData;
      }
  
      public void setSessionData(ByteBuffer sessionData) {
          this.sessionData = sessionData;
      }
  
  }
  