Class CreateExternalPageRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.aicontent.requests.CreateExternalPageRequest.Builder
-
- All Implemented Interfaces:
CreateExternalPageRequest._FinalStage,CreateExternalPageRequest.ExternalIdStage,CreateExternalPageRequest.HtmlStage,CreateExternalPageRequest.SourceIdStage,CreateExternalPageRequest.TitleStage
- Enclosing class:
- CreateExternalPageRequest
public static final class CreateExternalPageRequest.Builder extends java.lang.Object implements CreateExternalPageRequest.TitleStage, CreateExternalPageRequest.HtmlStage, CreateExternalPageRequest.SourceIdStage, CreateExternalPageRequest.ExternalIdStage, CreateExternalPageRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateExternalPageRequest._FinalStageaiAgentAvailability(java.lang.Boolean aiAgentAvailability)Whether the external page should be used to answer questions by AI Agent.CreateExternalPageRequest._FinalStageaiAgentAvailability(java.util.Optional<java.lang.Boolean> aiAgentAvailability)Whether the external page should be used to answer questions by AI Agent.CreateExternalPageRequest._FinalStageaiCopilotAvailability(java.lang.Boolean aiCopilotAvailability)Whether the external page should be used to answer questions by AI Copilot.CreateExternalPageRequest._FinalStageaiCopilotAvailability(java.util.Optional<java.lang.Boolean> aiCopilotAvailability)Whether the external page should be used to answer questions by AI Copilot.CreateExternalPageRequestbuild()CreateExternalPageRequest._FinalStageexternalId(java.lang.String externalId)The identifier for the external page which was given by the source.CreateExternalPageRequest.Builderfrom(CreateExternalPageRequest other)CreateExternalPageRequest.SourceIdStagehtml(java.lang.String html)The body of the external page in HTML.CreateExternalPageRequest.ExternalIdStagesourceId(int sourceId)The unique identifier for the source of the external page which was given by Intercom.CreateExternalPageRequest.HtmlStagetitle(java.lang.String title)The title of the external page.CreateExternalPageRequest._FinalStageurl(java.lang.String url)The URL of the external page.CreateExternalPageRequest._FinalStageurl(java.util.Optional<java.lang.String> url)The URL of the external page.
-
-
-
Method Detail
-
from
public CreateExternalPageRequest.Builder from(CreateExternalPageRequest other)
- Specified by:
fromin interfaceCreateExternalPageRequest.TitleStage
-
title
public CreateExternalPageRequest.HtmlStage title(@NotNull java.lang.String title)
The title of the external page.
The title of the external page.
- Specified by:
titlein interfaceCreateExternalPageRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public CreateExternalPageRequest.SourceIdStage 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 interfaceCreateExternalPageRequest.HtmlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceId
public CreateExternalPageRequest.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 interfaceCreateExternalPageRequest.SourceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public CreateExternalPageRequest._FinalStage 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 interfaceCreateExternalPageRequest.ExternalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiCopilotAvailability
public CreateExternalPageRequest._FinalStage aiCopilotAvailability(java.lang.Boolean aiCopilotAvailability)
Whether the external page should be used to answer questions by AI Copilot. Will not default when updating an existing external page.
- Specified by:
aiCopilotAvailabilityin interfaceCreateExternalPageRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiCopilotAvailability
public CreateExternalPageRequest._FinalStage aiCopilotAvailability(java.util.Optional<java.lang.Boolean> aiCopilotAvailability)
Whether the external page should be used to answer questions by AI Copilot. Will not default when updating an existing external page.
- Specified by:
aiCopilotAvailabilityin interfaceCreateExternalPageRequest._FinalStage
-
aiAgentAvailability
public CreateExternalPageRequest._FinalStage aiAgentAvailability(java.lang.Boolean aiAgentAvailability)
Whether the external page should be used to answer questions by AI Agent. Will not default when updating an existing external page.
- Specified by:
aiAgentAvailabilityin interfaceCreateExternalPageRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiAgentAvailability
public CreateExternalPageRequest._FinalStage aiAgentAvailability(java.util.Optional<java.lang.Boolean> aiAgentAvailability)
Whether the external page should be used to answer questions by AI Agent. Will not default when updating an existing external page.
- Specified by:
aiAgentAvailabilityin interfaceCreateExternalPageRequest._FinalStage
-
url
public CreateExternalPageRequest._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. When a URL is not present, Fin will not reference the source.
- Specified by:
urlin interfaceCreateExternalPageRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public CreateExternalPageRequest._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. When a URL is not present, Fin will not reference the source.
- Specified by:
urlin interfaceCreateExternalPageRequest._FinalStage
-
build
public CreateExternalPageRequest build()
- Specified by:
buildin interfaceCreateExternalPageRequest._FinalStage
-
-