Class ExternalPage.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.aicontent.types.ExternalPage.Builder
-
- All Implemented Interfaces:
ExternalPage._FinalStage,ExternalPage.AiAgentAvailabilityStage,ExternalPage.AiCopilotAvailabilityStage,ExternalPage.CreatedAtStage,ExternalPage.ExternalIdStage,ExternalPage.HtmlStage,ExternalPage.IdStage,ExternalPage.LastIngestedAtStage,ExternalPage.SourceIdStage,ExternalPage.TitleStage,ExternalPage.UpdatedAtStage
- Enclosing class:
- ExternalPage
public static final class ExternalPage.Builder extends java.lang.Object implements ExternalPage.IdStage, ExternalPage.TitleStage, ExternalPage.HtmlStage, ExternalPage.AiAgentAvailabilityStage, ExternalPage.AiCopilotAvailabilityStage, ExternalPage.SourceIdStage, ExternalPage.ExternalIdStage, ExternalPage.CreatedAtStage, ExternalPage.UpdatedAtStage, ExternalPage.LastIngestedAtStage, ExternalPage._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalPage.AiCopilotAvailabilityStageaiAgentAvailability(boolean aiAgentAvailability)Whether the external page should be used to answer questions by AI Agent.ExternalPage.SourceIdStageaiCopilotAvailability(boolean aiCopilotAvailability)Whether the external page should be used to answer questions by AI Copilot.ExternalPagebuild()ExternalPage.UpdatedAtStagecreatedAt(int createdAt)The time when the external page was created.ExternalPage.CreatedAtStageexternalId(java.lang.String externalId)The identifier for the external page which was given by the source.ExternalPage._FinalStagefinAvailability(java.lang.Boolean finAvailability)Deprecated.ExternalPage._FinalStagefinAvailability(java.util.Optional<java.lang.Boolean> finAvailability)Deprecated.ExternalPage.Builderfrom(ExternalPage other)ExternalPage.AiAgentAvailabilityStagehtml(java.lang.String html)The body of the external page in HTML.ExternalPage.TitleStageid(java.lang.String id)The unique identifier for the external page which is given by Intercom.ExternalPage._FinalStagelastIngestedAt(int lastIngestedAt)The time when the external page was last ingested.ExternalPage.ExternalIdStagesourceId(int sourceId)The unique identifier for the source of the external page which was given by Intercom.ExternalPage.HtmlStagetitle(java.lang.String title)The title of the external page.ExternalPage.LastIngestedAtStageupdatedAt(int updatedAt)The time when the external page was last updated.ExternalPage._FinalStageurl(java.lang.String url)The URL of the external page.ExternalPage._FinalStageurl(java.util.Optional<java.lang.String> url)The URL of the external page.
-
-
-
Method Detail
-
from
public ExternalPage.Builder from(ExternalPage other)
- Specified by:
fromin interfaceExternalPage.IdStage
-
id
public ExternalPage.TitleStage id(@NotNull java.lang.String id)
The unique identifier for the external page which is given by Intercom.
The unique identifier for the external page which is given by Intercom.
- Specified by:
idin interfaceExternalPage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public ExternalPage.HtmlStage title(@NotNull java.lang.String title)
The title of the external page.
The title of the external page.
- Specified by:
titlein interfaceExternalPage.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public ExternalPage.AiAgentAvailabilityStage html(@NotNull java.lang.String html)
The body of the external page in HTML.
The body of the external page in HTML.
- Specified by:
htmlin interfaceExternalPage.HtmlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiAgentAvailability
public ExternalPage.AiCopilotAvailabilityStage aiAgentAvailability(boolean aiAgentAvailability)
Whether the external page should be used to answer questions by AI Agent.
Whether the external page should be used to answer questions by AI Agent.
- Specified by:
aiAgentAvailabilityin interfaceExternalPage.AiAgentAvailabilityStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiCopilotAvailability
public ExternalPage.SourceIdStage aiCopilotAvailability(boolean aiCopilotAvailability)
Whether the external page should be used to answer questions by AI Copilot.
Whether the external page should be used to answer questions by AI Copilot.
- Specified by:
aiCopilotAvailabilityin interfaceExternalPage.AiCopilotAvailabilityStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceId
public ExternalPage.ExternalIdStage sourceId(int sourceId)
The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response.
The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response.
- Specified by:
sourceIdin interfaceExternalPage.SourceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public ExternalPage.CreatedAtStage externalId(@NotNull java.lang.String externalId)
The identifier for the external page which was given by the source. Must be unique for the source.
The identifier for the external page which was given by the source. Must be unique for the source.
- Specified by:
externalIdin interfaceExternalPage.ExternalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ExternalPage.UpdatedAtStage createdAt(int createdAt)
The time when the external page was created.
The time when the external page was created.
- Specified by:
createdAtin interfaceExternalPage.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ExternalPage.LastIngestedAtStage updatedAt(int updatedAt)
The time when the external page was last updated.
The time when the external page was last updated.
- Specified by:
updatedAtin interfaceExternalPage.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastIngestedAt
public ExternalPage._FinalStage lastIngestedAt(int lastIngestedAt)
The time when the external page was last ingested.
The time when the external page was last ingested.
- Specified by:
lastIngestedAtin interfaceExternalPage.LastIngestedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
finAvailability
public ExternalPage._FinalStage finAvailability(java.lang.Boolean finAvailability)
Deprecated. Use ai_agent_availability and ai_copilot_availability instead.
- Specified by:
finAvailabilityin interfaceExternalPage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
finAvailability
public ExternalPage._FinalStage finAvailability(java.util.Optional<java.lang.Boolean> finAvailability)
Deprecated. Use ai_agent_availability and ai_copilot_availability instead.
- Specified by:
finAvailabilityin interfaceExternalPage._FinalStage
-
url
public ExternalPage._FinalStage url(java.lang.String url)
The URL of the external page. This will be used by Fin to link end users to the page it based its answer on.
- Specified by:
urlin interfaceExternalPage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public ExternalPage._FinalStage url(java.util.Optional<java.lang.String> url)
The URL of the external page. This will be used by Fin to link end users to the page it based its answer on.
- Specified by:
urlin interfaceExternalPage._FinalStage
-
build
public ExternalPage build()
- Specified by:
buildin interfaceExternalPage._FinalStage
-
-