Class ApprovalRuleDetails

  • All Implemented Interfaces:
    java.io.Externalizable , java.io.Serializable , java.lang.Comparable , org.apache.avro.generic.GenericContainer , org.apache.avro.generic.GenericRecord , org.apache.avro.generic.IndexedRecord , org.apache.avro.specific.SpecificRecord

    
    public class ApprovalRuleDetails
    extends SpecificRecordBase implements SpecificRecord
                        

    Approval rule details.

    • Constructor Detail

      • ApprovalRuleDetails

        ApprovalRuleDetails()
        Default constructor.
      • ApprovalRuleDetails

        ApprovalRuleDetails(String ruleId, String ruleRegex, String ruleLabel)
        All-args constructor.
        Parameters:
        ruleId - ID of the approval rule.
        ruleRegex - Regular expression associated with the approval rule.
        ruleLabel - Label describing the approval rule.
    • Method Detail

      • getRuleId

         String getRuleId()

        Gets the value of the 'ruleId' field.

        Returns:

        ID of the approval rule.

      • setRuleId

         void setRuleId(String value)

        Sets the value of the 'ruleId' field. ID of the approval rule.

        Parameters:
        value - the value to set.
      • getRuleRegex

         String getRuleRegex()

        Gets the value of the 'ruleRegex' field.

        Returns:

        Regular expression associated with the approval rule.

      • setRuleRegex

         void setRuleRegex(String value)

        Sets the value of the 'ruleRegex' field. Regular expression associated with the approval rule.

        Parameters:
        value - the value to set.
      • getRuleLabel

         String getRuleLabel()

        Gets the value of the 'ruleLabel' field.

        Returns:

        Label describing the approval rule.

      • setRuleLabel

         void setRuleLabel(String value)

        Sets the value of the 'ruleLabel' field. Label describing the approval rule.

        Parameters:
        value - the value to set.
      • getEncoder

         static BinaryMessageEncoder<ApprovalRuleDetails> getEncoder()

        Return the BinaryMessageEncoder instance used by this class.

        Returns:

        the message encoder used by this class

      • getDecoder

         static BinaryMessageDecoder<ApprovalRuleDetails> getDecoder()

        Return the BinaryMessageDecoder instance used by this class.

        Returns:

        the message decoder used by this class

      • createDecoder

         static BinaryMessageDecoder<ApprovalRuleDetails> createDecoder(SchemaStore resolver)

        Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.

        Parameters:
        resolver - a SchemaStore used to find schemas by fingerprint
        Returns:

        a BinaryMessageDecoder instance for this class backed by the given SchemaStore

      • toByteBuffer

         ByteBuffer toByteBuffer()

        Serializes this ApprovalRuleDetails to a ByteBuffer.

        Returns:

        a buffer holding the serialized data for this instance

      • fromByteBuffer

         static ApprovalRuleDetails fromByteBuffer(ByteBuffer b)

        Deserializes a ApprovalRuleDetails from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class
        Returns:

        a ApprovalRuleDetails instance decoded from the given buffer

      • newBuilder

         static ApprovalRuleDetails.Builder newBuilder(ApprovalRuleDetails other)

        Creates a new ApprovalRuleDetails RecordBuilder by copying an existing ApprovalRuleDetails instance.

        Parameters:
        other - The existing instance to copy.
        Returns:

        A new ApprovalRuleDetails RecordBuilder