diff options
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; + } +} |