diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-04-06 21:25:41 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-04-06 21:26:19 -0700 |
commit | 624e5d995c2fa593fb517a99e4b8b5f775afbeaf (patch) | |
tree | c6080ebbf909fb45fb055930abe64bbfb62a41f0 /src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java | |
parent | 7367968483e4ddfedfa47598c508b343b44fc852 (diff) |
Adding getLookupTable API.
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java')
-rw-r--r-- | src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java | 27 |
1 files changed, 27 insertions, 0 deletions
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; + } +} |