Package com.intercom.api.types
Class SlaApplied.Builder
- java.lang.Object
-
- com.intercom.api.types.SlaApplied.Builder
-
- All Implemented Interfaces:
SlaApplied._FinalStage,SlaApplied.SlaNameStage,SlaApplied.SlaStatusStage,SlaApplied.TypeStage
- Enclosing class:
- SlaApplied
public static final class SlaApplied.Builder extends java.lang.Object implements SlaApplied.TypeStage, SlaApplied.SlaNameStage, SlaApplied.SlaStatusStage, SlaApplied._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlaAppliedbuild()SlaApplied.Builderfrom(SlaApplied other)SlaApplied.SlaStatusStageslaName(java.lang.String slaName)The name of the SLA as given by the teammate when it was created.SlaApplied._FinalStageslaStatus(SlaApplied.SlaStatus slaStatus)SLA statuses: - `hit`: If there’s at least one hit event in the underlying sla_events table, and no “missed” or “canceled” events for the conversation.SlaApplied.SlaNameStagetype(java.lang.String type)object type
-
-
-
Method Detail
-
from
public SlaApplied.Builder from(SlaApplied other)
- Specified by:
fromin interfaceSlaApplied.TypeStage
-
type
public SlaApplied.SlaNameStage type(@NotNull java.lang.String type)
object typeobject type
- Specified by:
typein interfaceSlaApplied.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
slaName
public SlaApplied.SlaStatusStage slaName(@NotNull java.lang.String slaName)
The name of the SLA as given by the teammate when it was created.The name of the SLA as given by the teammate when it was created.
- Specified by:
slaNamein interfaceSlaApplied.SlaNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
slaStatus
public SlaApplied._FinalStage slaStatus(@NotNull SlaApplied.SlaStatus slaStatus)
SLA statuses: - `hit`: If there’s at least one hit event in the underlying sla_events table, and no “missed” or “canceled” events for the conversation. - `missed`: If there are any missed sla_events for the conversation and no canceled events. If there’s even a single missed sla event, the status will always be missed. A missed status is not applied when the SLA expires, only the next time a teammate replies. - `active`: An SLA has been applied to a conversation, but has not yet been fulfilled. SLA status is active only if there are no “hit, “missed”, or “canceled” events.SLA statuses: -
hit: If there’s at least one hit event in the underlying sla_events table, and no “missed” or “canceled” events for the conversation. -missed: If there are any missed sla_events for the conversation and no canceled events. If there’s even a single missed sla event, the status will always be missed. A missed status is not applied when the SLA expires, only the next time a teammate replies. -active: An SLA has been applied to a conversation, but has not yet been fulfilled. SLA status is active only if there are no “hit, “missed”, or “canceled” events.- Specified by:
slaStatusin interfaceSlaApplied.SlaStatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public SlaApplied build()
- Specified by:
buildin interfaceSlaApplied._FinalStage
-
-