Class WorkflowExport.Workflow.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.WorkflowExport.Workflow.Builder
-
- Enclosing class:
- WorkflowExport.Workflow
public static final class WorkflowExport.Workflow.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowExport.Workflow.Builderattributes(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> attributes)WorkflowExport.Workflow.Builderattributes(java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>> attributes)Custom attributes defined for this workflow.WorkflowExport.Workflowbuild()WorkflowExport.Workflow.BuildercreatedAt(java.time.OffsetDateTime createdAt)WorkflowExport.Workflow.BuildercreatedAt(java.util.Optional<java.time.OffsetDateTime> createdAt)When the workflow was created.WorkflowExport.Workflow.Builderdescription(java.lang.String description)WorkflowExport.Workflow.Builderdescription(java.util.Optional<java.lang.String> description)The description of the workflow.WorkflowExport.Workflow.BuilderembeddedRules(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> embeddedRules)WorkflowExport.Workflow.BuilderembeddedRules(java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>> embeddedRules)Rules embedded within the workflow steps.WorkflowExport.Workflow.Builderfrom(WorkflowExport.Workflow other)WorkflowExport.Workflow.Builderid(java.lang.String id)WorkflowExport.Workflow.Builderid(java.util.Optional<java.lang.String> id)The unique identifier for the workflow.WorkflowExport.Workflow.BuilderpreferredDevices(java.util.List<java.lang.String> preferredDevices)WorkflowExport.Workflow.BuilderpreferredDevices(java.util.Optional<java.util.List<java.lang.String>> preferredDevices)The preferred devices for this workflow.WorkflowExport.Workflow.Buildersnapshot(java.util.Map<java.lang.String,java.lang.Object> snapshot)WorkflowExport.Workflow.Buildersnapshot(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> snapshot)The current snapshot of workflow steps and configuration.WorkflowExport.Workflow.Builderstate(WorkflowExport.Workflow.State state)WorkflowExport.Workflow.Builderstate(java.util.Optional<WorkflowExport.Workflow.State> state)The current state of the workflow.WorkflowExport.Workflow.BuildertargetChannels(java.util.List<java.lang.String> targetChannels)WorkflowExport.Workflow.BuildertargetChannels(java.util.Optional<java.util.List<java.lang.String>> targetChannels)The channels this workflow targets.WorkflowExport.Workflow.Buildertargeting(java.util.Map<java.lang.String,java.lang.Object> targeting)WorkflowExport.Workflow.Buildertargeting(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> targeting)The targeting rules for this workflow.WorkflowExport.Workflow.Buildertitle(java.lang.String title)WorkflowExport.Workflow.Buildertitle(java.util.Optional<java.lang.String> title)The title of the workflow.WorkflowExport.Workflow.BuildertriggerType(java.lang.String triggerType)WorkflowExport.Workflow.BuildertriggerType(java.util.Optional<java.lang.String> triggerType)The type of trigger that starts this workflow.WorkflowExport.Workflow.BuilderupdatedAt(java.time.OffsetDateTime updatedAt)WorkflowExport.Workflow.BuilderupdatedAt(java.util.Optional<java.time.OffsetDateTime> updatedAt)When the workflow was last updated.
-
-
-
Method Detail
-
from
public WorkflowExport.Workflow.Builder from(WorkflowExport.Workflow other)
-
id
public WorkflowExport.Workflow.Builder id(java.util.Optional<java.lang.String> id)
The unique identifier for the workflow.
-
id
public WorkflowExport.Workflow.Builder id(java.lang.String id)
-
title
public WorkflowExport.Workflow.Builder title(java.util.Optional<java.lang.String> title)
The title of the workflow.
-
title
public WorkflowExport.Workflow.Builder title(java.lang.String title)
-
description
public WorkflowExport.Workflow.Builder description(java.util.Optional<java.lang.String> description)
The description of the workflow.
-
description
public WorkflowExport.Workflow.Builder description(java.lang.String description)
-
triggerType
public WorkflowExport.Workflow.Builder triggerType(java.util.Optional<java.lang.String> triggerType)
The type of trigger that starts this workflow.
-
triggerType
public WorkflowExport.Workflow.Builder triggerType(java.lang.String triggerType)
-
state
public WorkflowExport.Workflow.Builder state(java.util.Optional<WorkflowExport.Workflow.State> state)
The current state of the workflow.
-
state
public WorkflowExport.Workflow.Builder state(WorkflowExport.Workflow.State state)
-
targetChannels
public WorkflowExport.Workflow.Builder targetChannels(java.util.Optional<java.util.List<java.lang.String>> targetChannels)
The channels this workflow targets.
-
targetChannels
public WorkflowExport.Workflow.Builder targetChannels(java.util.List<java.lang.String> targetChannels)
-
preferredDevices
public WorkflowExport.Workflow.Builder preferredDevices(java.util.Optional<java.util.List<java.lang.String>> preferredDevices)
The preferred devices for this workflow.
-
preferredDevices
public WorkflowExport.Workflow.Builder preferredDevices(java.util.List<java.lang.String> preferredDevices)
-
createdAt
public WorkflowExport.Workflow.Builder createdAt(java.util.Optional<java.time.OffsetDateTime> createdAt)
When the workflow was created.
-
createdAt
public WorkflowExport.Workflow.Builder createdAt(java.time.OffsetDateTime createdAt)
-
updatedAt
public WorkflowExport.Workflow.Builder updatedAt(java.util.Optional<java.time.OffsetDateTime> updatedAt)
When the workflow was last updated.
-
updatedAt
public WorkflowExport.Workflow.Builder updatedAt(java.time.OffsetDateTime updatedAt)
-
targeting
public WorkflowExport.Workflow.Builder targeting(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> targeting)
The targeting rules for this workflow.
-
targeting
public WorkflowExport.Workflow.Builder targeting(java.util.Map<java.lang.String,java.lang.Object> targeting)
-
snapshot
public WorkflowExport.Workflow.Builder snapshot(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> snapshot)
The current snapshot of workflow steps and configuration.
-
snapshot
public WorkflowExport.Workflow.Builder snapshot(java.util.Map<java.lang.String,java.lang.Object> snapshot)
-
attributes
public WorkflowExport.Workflow.Builder attributes(java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>> attributes)
Custom attributes defined for this workflow.
-
attributes
public WorkflowExport.Workflow.Builder attributes(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> attributes)
-
embeddedRules
public WorkflowExport.Workflow.Builder embeddedRules(java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>> embeddedRules)
Rules embedded within the workflow steps.
-
embeddedRules
public WorkflowExport.Workflow.Builder embeddedRules(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> embeddedRules)
-
build
public WorkflowExport.Workflow build()
-
-