From 624e5d995c2fa593fb517a99e4b8b5f775afbeaf Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 6 Apr 2016 21:25:41 -0700 Subject: Adding getLookupTable API. --- .../ccbapi/model/GetLookupTableRequest.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java (limited to 'src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java') diff --git a/src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java b/src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java new file mode 100644 index 0000000..4da877e --- /dev/null +++ b/src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java @@ -0,0 +1,27 @@ +package com.p4square.ccbapi.model; + +/** + * GetLookupTableRequest contains the information necessary to get a list of lookup table values. + */ +public class GetLookupTableRequest { + + private LookupTableType type; + + public LookupTableType getType() { + return type; + } + + /** + * Specify the type of lookup table to query. + * + * @param type A non-null lookup table type. + * @return this + */ + public GetLookupTableRequest withType(final LookupTableType type) { + if (type == null) { + throw new IllegalArgumentException("type may not be null."); + } + this.type = type; + return this; + } +} -- cgit v1.2.3