Interface SlaInputConfiguration.Builder

  • Method Details

    • fieldId

      Unique identifier of a field.

      Parameters:
      fieldId - Unique identifier of a field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Name of an SLA.

      Parameters:
      name - Name of an SLA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetFieldValues

      SlaInputConfiguration.Builder targetFieldValues(Collection<FieldValueUnion> targetFieldValues)

      Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.

      Parameters:
      targetFieldValues - Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetFieldValues

      SlaInputConfiguration.Builder targetFieldValues(FieldValueUnion... targetFieldValues)

      Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.

      Parameters:
      targetFieldValues - Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetFieldValues

      SlaInputConfiguration.Builder targetFieldValues(Consumer<FieldValueUnion.Builder>... targetFieldValues)

      Represents a list of target field values for the fieldId specified in SlaInputConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.

      This is a convenience method that creates an instance of the FieldValueUnion.Builder avoiding the need to create one manually via FieldValueUnion.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to targetFieldValues(List<FieldValueUnion>).

      Parameters:
      targetFieldValues - a consumer that will call methods on FieldValueUnion.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetSlaMinutes

      SlaInputConfiguration.Builder targetSlaMinutes(Long targetSlaMinutes)

      Target duration in minutes within which an SLA should be completed.

      Parameters:
      targetSlaMinutes - Target duration in minutes within which an SLA should be completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Type of SLA.

      Parameters:
      type - Type of SLA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Type of SLA.

      Parameters:
      type - Type of SLA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: