org.hisp.dhis.rules.models.RuleActionSetMandatoryField Maven / Gradle / Ivy
package org.hisp.dhis.rules.models;
import com.google.auto.value.AutoValue;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static org.hisp.dhis.rules.models.AttributeType.UNKNOWN;
@AutoValue
public abstract class RuleActionSetMandatoryField
extends RuleActionAttribute
{
@Nonnull
public static RuleActionSetMandatoryField create( @Nonnull String field, @Nullable AttributeType attributeType )
{
return new AutoValue_RuleActionSetMandatoryField( "", attributeType, field );
}
@Nonnull
public static RuleActionSetMandatoryField create( @Nonnull String field )
{
return create( field, UNKNOWN );
}
@Nonnull
public abstract String field();
}