This repository was archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathAttributeValueMixIn.java
50 lines (46 loc) · 2.26 KB
/
AttributeValueMixIn.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Amazon Software License (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/asl/
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.dynamodb.bootstrap;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Mixin for attribute values to stay all capital when mapping them as strings.
*
*/
public abstract class AttributeValueMixIn {
@JsonProperty("S") public abstract String getS();
@JsonProperty("S") public abstract void setS(String s);
@JsonProperty("N") public abstract String getN();
@JsonProperty("N") public abstract void setN(String n);
@JsonProperty("B") public abstract ByteBuffer getB();
@JsonProperty("B") public abstract void setB(ByteBuffer b);
@JsonProperty("NULL") public abstract Boolean isNULL();
@JsonProperty("NULL") public abstract void setNULL(Boolean nU);
@JsonProperty("BOOL") public abstract Boolean getBOOL();
@JsonProperty("BOOL") public abstract void setBOOL(Boolean bO);
@JsonProperty("SS") public abstract List<String> getSS();
@JsonProperty("SS") public abstract void setSS(List<String> sS);
@JsonProperty("NS") public abstract List<String> getNS();
@JsonProperty("NS") public abstract void setNS(List<String> nS);
@JsonProperty("BS") public abstract List<String> getBS();
@JsonProperty("BS") public abstract void setBS(List<String> bS);
@JsonProperty("M") public abstract Map<String, AttributeValue> getM();
@JsonProperty("M") public abstract void setM(Map<String, AttributeValue> val);
@JsonProperty("L") public abstract List<AttributeValue> getL();
@JsonProperty("L") public abstract void setL(List<AttributeValue> val);
}