Interface CaseSlaConfiguration.Builder

  • Method Details

    • 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.
    • type

      Type of SLA for Case SlaAssignmentType.

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

      Type of SLA for Case SlaAssignmentType.

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

      Unique identifier of a Case field.

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

      CaseSlaConfiguration.Builder targetFieldValues(Collection<FieldValueUnion> targetFieldValues)

      Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. 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 CaseSlaConfiguration. 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

      CaseSlaConfiguration.Builder targetFieldValues(FieldValueUnion... targetFieldValues)

      Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. 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 CaseSlaConfiguration. 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

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

      Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. 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

      CaseSlaConfiguration.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.