summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/GetLookupTableRequest.java
blob: 4da877e7b77e2ee866999f9548144582c125bfc2 (plain)
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
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;
    }
}