public class BatchProgram extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
appId |
protected String |
programId |
protected ProgramType |
programType |
| Constructor and Description |
|---|
BatchProgram(String appId,
ProgramType programType,
String programId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static BatchProgram |
from(ProgramRecord programRecord) |
String |
getAppId() |
String |
getProgramId() |
ProgramType |
getProgramType() |
int |
hashCode() |
void |
validate()
Since this is often created through gson deserialization, check that all the fields are present and valid.
|
protected final String appId
protected final ProgramType programType
protected final String programId
public BatchProgram(String appId, ProgramType programType, String programId)
public static BatchProgram from(ProgramRecord programRecord)
public String getAppId()
public ProgramType getProgramType()
public String getProgramId()
public void validate()
throws IllegalArgumentException
IllegalArgumentException - if there is a field that is null or empty or invalid.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.