
gobblin.service.FlowId 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 Gobblin as a Service 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/FlowId.pdsc.", date = "Fri Jul 21 13:35:27 PDT 2017")
public class FlowId
extends RecordTemplate
{
private final static FlowId.Fields _fields = new FlowId.Fields();
private final static RecordDataSchema SCHEMA = ((RecordDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"record\",\"name\":\"FlowId\",\"namespace\":\"gobblin.service\",\"doc\":\"Identifier for a Gobblin as a Service flow\",\"fields\":[{\"name\":\"flowName\",\"type\":\"string\",\"doc\":\"Name of the flow\",\"validate\":{\"strlen\":{\"min\":1,\"max\":128}}},{\"name\":\"flowGroup\",\"type\":\"string\",\"doc\":\"Group of the flow. This defines the namespace for the flow.\",\"validate\":{\"strlen\":{\"min\":1,\"max\":128}}}]}"));
private final static RecordDataSchema.Field FIELD_FlowName = SCHEMA.getField("flowName");
private final static RecordDataSchema.Field FIELD_FlowGroup = SCHEMA.getField("flowGroup");
public FlowId() {
super(new DataMap(), SCHEMA);
}
public FlowId(DataMap data) {
super(data, SCHEMA);
}
public static FlowId.Fields fields() {
return _fields;
}
/**
* Existence checker for flowName
*
* @see FlowId.Fields#flowName
*/
public boolean hasFlowName() {
return contains(FIELD_FlowName);
}
/**
* Remover for flowName
*
* @see FlowId.Fields#flowName
*/
public void removeFlowName() {
remove(FIELD_FlowName);
}
/**
* Getter for flowName
*
* @see FlowId.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 FlowId.Fields#flowName
*/
@Nonnull
public String getFlowName() {
return obtainDirect(FIELD_FlowName, String.class, GetMode.STRICT);
}
/**
* Setter for flowName
*
* @see FlowId.Fields#flowName
*/
public FlowId 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 FlowId.Fields#flowName
*/
public FlowId setFlowName(
@Nonnull
String value) {
putDirect(FIELD_FlowName, String.class, String.class, value, SetMode.DISALLOW_NULL);
return this;
}
/**
* Existence checker for flowGroup
*
* @see FlowId.Fields#flowGroup
*/
public boolean hasFlowGroup() {
return contains(FIELD_FlowGroup);
}
/**
* Remover for flowGroup
*
* @see FlowId.Fields#flowGroup
*/
public void removeFlowGroup() {
remove(FIELD_FlowGroup);
}
/**
* Getter for flowGroup
*
* @see FlowId.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 FlowId.Fields#flowGroup
*/
@Nonnull
public String getFlowGroup() {
return obtainDirect(FIELD_FlowGroup, String.class, GetMode.STRICT);
}
/**
* Setter for flowGroup
*
* @see FlowId.Fields#flowGroup
*/
public FlowId 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 FlowId.Fields#flowGroup
*/
public FlowId setFlowGroup(
@Nonnull
String value) {
putDirect(FIELD_FlowGroup, String.class, String.class, value, SetMode.DISALLOW_NULL);
return this;
}
@Override
public FlowId clone()
throws CloneNotSupportedException
{
return ((FlowId) super.clone());
}
@Override
public FlowId copy()
throws CloneNotSupportedException
{
return ((FlowId) 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");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy