
gobblin.service.FlowStatusId Maven / Gradle / Ivy
The newest version!
package gobblin.service;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
import com.linkedin.data.DataMap;
import com.linkedin.data.schema.PathSpec;
import com.linkedin.data.schema.RecordDataSchema;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.GetMode;
import com.linkedin.data.template.RecordTemplate;
import com.linkedin.data.template.SetMode;
/**
* Identifier for a specific execution of a flow
*
*/
@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil", comments = "Rest.li Data Template. Generated from /Users/ibuenros/repos/gobblin/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-api/src/main/pegasus/gobblin/service/FlowStatusId.pdsc.", date = "Fri Jul 21 13:35:27 PDT 2017")
public class FlowStatusId
extends RecordTemplate
{
private final static FlowStatusId.Fields _fields = new FlowStatusId.Fields();
private final static RecordDataSchema SCHEMA = ((RecordDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"record\",\"name\":\"FlowStatusId\",\"namespace\":\"gobblin.service\",\"doc\":\"Identifier for a specific execution of a flow\",\"fields\":[{\"name\":\"flowName\",\"type\":\"string\",\"doc\":\"Name of the flow\"},{\"name\":\"flowGroup\",\"type\":\"string\",\"doc\":\"Group of the flow. This defines the namespace for the flow.\"},{\"name\":\"flowExecutionId\",\"type\":\"long\",\"doc\":\"Execution id for the flow\"}]}"));
private final static RecordDataSchema.Field FIELD_FlowName = SCHEMA.getField("flowName");
private final static RecordDataSchema.Field FIELD_FlowGroup = SCHEMA.getField("flowGroup");
private final static RecordDataSchema.Field FIELD_FlowExecutionId = SCHEMA.getField("flowExecutionId");
public FlowStatusId() {
super(new DataMap(), SCHEMA);
}
public FlowStatusId(DataMap data) {
super(data, SCHEMA);
}
public static FlowStatusId.Fields fields() {
return _fields;
}
/**
* Existence checker for flowName
*
* @see FlowStatusId.Fields#flowName
*/
public boolean hasFlowName() {
return contains(FIELD_FlowName);
}
/**
* Remover for flowName
*
* @see FlowStatusId.Fields#flowName
*/
public void removeFlowName() {
remove(FIELD_FlowName);
}
/**
* Getter for flowName
*
* @see FlowStatusId.Fields#flowName
*/
public String getFlowName(GetMode mode) {
return obtainDirect(FIELD_FlowName, String.class, mode);
}
/**
* Getter for flowName
*
* @return
* Required field. Could be null for partial record.
* @see FlowStatusId.Fields#flowName
*/
@Nonnull
public String getFlowName() {
return obtainDirect(FIELD_FlowName, String.class, GetMode.STRICT);
}
/**
* Setter for flowName
*
* @see FlowStatusId.Fields#flowName
*/
public FlowStatusId setFlowName(String value, SetMode mode) {
putDirect(FIELD_FlowName, String.class, String.class, value, mode);
return this;
}
/**
* Setter for flowName
*
* @param value
* Must not be null. For more control, use setters with mode instead.
* @see FlowStatusId.Fields#flowName
*/
public FlowStatusId setFlowName(
@Nonnull
String value) {
putDirect(FIELD_FlowName, String.class, String.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Existence checker for flowGroup
*
* @see FlowStatusId.Fields#flowGroup
*/
public boolean hasFlowGroup() {
return contains(FIELD_FlowGroup);
}
/**
* Remover for flowGroup
*
* @see FlowStatusId.Fields#flowGroup
*/
public void removeFlowGroup() {
remove(FIELD_FlowGroup);
}
/**
* Getter for flowGroup
*
* @see FlowStatusId.Fields#flowGroup
*/
public String getFlowGroup(GetMode mode) {
return obtainDirect(FIELD_FlowGroup, String.class, mode);
}
/**
* Getter for flowGroup
*
* @return
* Required field. Could be null for partial record.
* @see FlowStatusId.Fields#flowGroup
*/
@Nonnull
public String getFlowGroup() {
return obtainDirect(FIELD_FlowGroup, String.class, GetMode.STRICT);
}
/**
* Setter for flowGroup
*
* @see FlowStatusId.Fields#flowGroup
*/
public FlowStatusId setFlowGroup(String value, SetMode mode) {
putDirect(FIELD_FlowGroup, String.class, String.class, value, mode);
return this;
}
/**
* Setter for flowGroup
*
* @param value
* Must not be null. For more control, use setters with mode instead.
* @see FlowStatusId.Fields#flowGroup
*/
public FlowStatusId setFlowGroup(
@Nonnull
String value) {
putDirect(FIELD_FlowGroup, String.class, String.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Existence checker for flowExecutionId
*
* @see FlowStatusId.Fields#flowExecutionId
*/
public boolean hasFlowExecutionId() {
return contains(FIELD_FlowExecutionId);
}
/**
* Remover for flowExecutionId
*
* @see FlowStatusId.Fields#flowExecutionId
*/
public void removeFlowExecutionId() {
remove(FIELD_FlowExecutionId);
}
/**
* Getter for flowExecutionId
*
* @see FlowStatusId.Fields#flowExecutionId
*/
public Long getFlowExecutionId(GetMode mode) {
return obtainDirect(FIELD_FlowExecutionId, Long.class, mode);
}
/**
* Getter for flowExecutionId
*
* @return
* Required field. Could be null for partial record.
* @see FlowStatusId.Fields#flowExecutionId
*/
@Nonnull
public Long getFlowExecutionId() {
return obtainDirect(FIELD_FlowExecutionId, Long.class, GetMode.STRICT);
}
/**
* Setter for flowExecutionId
*
* @see FlowStatusId.Fields#flowExecutionId
*/
public FlowStatusId setFlowExecutionId(Long value, SetMode mode) {
putDirect(FIELD_FlowExecutionId, Long.class, Long.class, value, mode);
return this;
}
/**
* Setter for flowExecutionId
*
* @param value
* Must not be null. For more control, use setters with mode instead.
* @see FlowStatusId.Fields#flowExecutionId
*/
public FlowStatusId setFlowExecutionId(
@Nonnull
Long value) {
putDirect(FIELD_FlowExecutionId, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Setter for flowExecutionId
*
* @see FlowStatusId.Fields#flowExecutionId
*/
public FlowStatusId setFlowExecutionId(long value) {
putDirect(FIELD_FlowExecutionId, Long.class, Long.class, value, SetMode.DISALLOW_NULL);
return this;
}
@Override
public FlowStatusId clone()
throws CloneNotSupportedException
{
return ((FlowStatusId) super.clone());
}
@Override
public FlowStatusId copy()
throws CloneNotSupportedException
{
return ((FlowStatusId) super.copy());
}
public static class Fields
extends PathSpec
{
public Fields(List path, String name) {
super(path, name);
}
public Fields() {
super();
}
/**
* Name of the flow
*
*/
public PathSpec flowName() {
return new PathSpec(getPathComponents(), "flowName");
}
/**
* Group of the flow. This defines the namespace for the flow.
*
*/
public PathSpec flowGroup() {
return new PathSpec(getPathComponents(), "flowGroup");
}
/**
* Execution id for the flow
*
*/
public PathSpec flowExecutionId() {
return new PathSpec(getPathComponents(), "flowExecutionId");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy