Class PersistApprovalRule.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class PersistApprovalRule.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for PersistApprovalRule instances.
-
-
Method Summary
Modifier and Type Method Description String
getRuleId()
Gets the value of the 'ruleId' field. PersistApprovalRule.Builder
setRuleId(String value)
Sets the value of the 'ruleId' field. String
getRule()
Gets the value of the 'rule' field. PersistApprovalRule.Builder
setRule(String value)
Sets the value of the 'rule' field. ApprovalRuleType
getRuleType()
Gets the value of the 'ruleType' field. PersistApprovalRule.Builder
setRuleType(ApprovalRuleType value)
Sets the value of the 'ruleType' field. String
getLabel()
Gets the value of the 'label' field. PersistApprovalRule.Builder
setLabel(String value)
Sets the value of the 'label' field. boolean
hasRuleId()
Checks whether the 'ruleId' field has been set. PersistApprovalRule.Builder
clearRuleId()
Clears the value of the 'ruleId' field. boolean
hasRule()
Checks whether the 'rule' field has been set. PersistApprovalRule.Builder
clearRule()
Clears the value of the 'rule' field. boolean
hasRuleType()
Checks whether the 'ruleType' field has been set. PersistApprovalRule.Builder
clearRuleType()
Clears the value of the 'ruleType' field. boolean
hasLabel()
Checks whether the 'label' field has been set. PersistApprovalRule.Builder
clearLabel()
Clears the value of the 'label' field. PersistApprovalRule
build()
-
-
Method Detail
-
setRuleId
PersistApprovalRule.Builder setRuleId(String value)
Sets the value of the 'ruleId' field. The ID of the rule to be added.
- Parameters:
value
- The value of 'ruleId'.
-
getRule
String getRule()
Gets the value of the 'rule' field. The regular expression associated with the rule to be added.
-
setRule
PersistApprovalRule.Builder setRule(String value)
Sets the value of the 'rule' field. The regular expression associated with the rule to be added.
- Parameters:
value
- The value of 'rule'.
-
getRuleType
ApprovalRuleType getRuleType()
Gets the value of the 'ruleType' field. The category to which the rule will be added.
-
setRuleType
PersistApprovalRule.Builder setRuleType(ApprovalRuleType value)
Sets the value of the 'ruleType' field. The category to which the rule will be added.
- Parameters:
value
- The value of 'ruleType'.
-
setLabel
PersistApprovalRule.Builder setLabel(String value)
Sets the value of the 'label' field. Label describing the rule.
- Parameters:
value
- The value of 'label'.
-
hasRuleId
boolean hasRuleId()
Checks whether the 'ruleId' field has been set. The ID of the rule to be added.
-
clearRuleId
PersistApprovalRule.Builder clearRuleId()
Clears the value of the 'ruleId' field. The ID of the rule to be added.
-
hasRule
boolean hasRule()
Checks whether the 'rule' field has been set. The regular expression associated with the rule to be added.
-
clearRule
PersistApprovalRule.Builder clearRule()
Clears the value of the 'rule' field. The regular expression associated with the rule to be added.
-
hasRuleType
boolean hasRuleType()
Checks whether the 'ruleType' field has been set. The category to which the rule will be added.
-
clearRuleType
PersistApprovalRule.Builder clearRuleType()
Clears the value of the 'ruleType' field. The category to which the rule will be added.
-
hasLabel
boolean hasLabel()
Checks whether the 'label' field has been set. Label describing the rule.
-
clearLabel
PersistApprovalRule.Builder clearLabel()
Clears the value of the 'label' field. Label describing the rule.
-
build
PersistApprovalRule build()
-
-
-
-