Class ContentImportSource.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.aicontent.types.ContentImportSource.Builder
-
- All Implemented Interfaces:
ContentImportSource._FinalStage,ContentImportSource.CreatedAtStage,ContentImportSource.IdStage,ContentImportSource.LastSyncedAtStage,ContentImportSource.StatusStage,ContentImportSource.SyncBehaviorStage,ContentImportSource.UpdatedAtStage,ContentImportSource.UrlStage
- Enclosing class:
- ContentImportSource
public static final class ContentImportSource.Builder extends java.lang.Object implements ContentImportSource.IdStage, ContentImportSource.LastSyncedAtStage, ContentImportSource.SyncBehaviorStage, ContentImportSource.StatusStage, ContentImportSource.UrlStage, ContentImportSource.CreatedAtStage, ContentImportSource.UpdatedAtStage, ContentImportSource._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentImportSourcebuild()ContentImportSource.UpdatedAtStagecreatedAt(int createdAt)The time when the content import source was created.ContentImportSource.Builderfrom(ContentImportSource other)ContentImportSource.LastSyncedAtStageid(int id)The unique identifier for the content import source which is given by Intercom.ContentImportSource.SyncBehaviorStagelastSyncedAt(int lastSyncedAt)The time when the content import source was last synced.ContentImportSource.UrlStagestatus(ContentImportSource.Status status)The status of the content import source.ContentImportSource.StatusStagesyncBehavior(ContentImportSource.SyncBehavior syncBehavior)If you intend to create or update External Pages via the API, this should be set to `api`.ContentImportSource._FinalStageupdatedAt(int updatedAt)The time when the content import source was last updated.ContentImportSource.CreatedAtStageurl(java.lang.String url)The URL of the root of the external source.
-
-
-
Method Detail
-
from
public ContentImportSource.Builder from(ContentImportSource other)
- Specified by:
fromin interfaceContentImportSource.IdStage
-
id
public ContentImportSource.LastSyncedAtStage id(int id)
The unique identifier for the content import source which is given by Intercom.The unique identifier for the content import source which is given by Intercom.
- Specified by:
idin interfaceContentImportSource.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastSyncedAt
public ContentImportSource.SyncBehaviorStage lastSyncedAt(int lastSyncedAt)
The time when the content import source was last synced.The time when the content import source was last synced.
- Specified by:
lastSyncedAtin interfaceContentImportSource.LastSyncedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
syncBehavior
public ContentImportSource.StatusStage syncBehavior(@NotNull ContentImportSource.SyncBehavior syncBehavior)
If you intend to create or update External Pages via the API, this should be set to `api`.If you intend to create or update External Pages via the API, this should be set to
api.- Specified by:
syncBehaviorin interfaceContentImportSource.SyncBehaviorStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public ContentImportSource.UrlStage status(@NotNull ContentImportSource.Status status)
The status of the content import source.The status of the content import source.
- Specified by:
statusin interfaceContentImportSource.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public ContentImportSource.CreatedAtStage url(@NotNull java.lang.String url)
The URL of the root of the external source.The URL of the root of the external source.
- Specified by:
urlin interfaceContentImportSource.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ContentImportSource.UpdatedAtStage createdAt(int createdAt)
The time when the content import source was created.The time when the content import source was created.
- Specified by:
createdAtin interfaceContentImportSource.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ContentImportSource._FinalStage updatedAt(int updatedAt)
The time when the content import source was last updated.The time when the content import source was last updated.
- Specified by:
updatedAtin interfaceContentImportSource.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ContentImportSource build()
- Specified by:
buildin interfaceContentImportSource._FinalStage
-
-