Class UpdateExternalPageRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.aicontent.requests.UpdateExternalPageRequest.Builder
-
- All Implemented Interfaces:
UpdateExternalPageRequest._FinalStage,UpdateExternalPageRequest.HtmlStage,UpdateExternalPageRequest.IdStage,UpdateExternalPageRequest.SourceIdStage,UpdateExternalPageRequest.TitleStage,UpdateExternalPageRequest.UrlStage
- Enclosing class:
- UpdateExternalPageRequest
public static final class UpdateExternalPageRequest.Builder extends java.lang.Object implements UpdateExternalPageRequest.IdStage, UpdateExternalPageRequest.TitleStage, UpdateExternalPageRequest.HtmlStage, UpdateExternalPageRequest.UrlStage, UpdateExternalPageRequest.SourceIdStage, UpdateExternalPageRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateExternalPageRequestbuild()UpdateExternalPageRequest._FinalStageexternalId(java.lang.String externalId)The identifier for the external page which was given by the source.UpdateExternalPageRequest._FinalStageexternalId(java.util.Optional<java.lang.String> externalId)The identifier for the external page which was given by the source.UpdateExternalPageRequest._FinalStagefinAvailability(java.lang.Boolean finAvailability)Whether the external page should be used to answer questions by Fin.UpdateExternalPageRequest._FinalStagefinAvailability(java.util.Optional<java.lang.Boolean> finAvailability)Whether the external page should be used to answer questions by Fin.UpdateExternalPageRequest.Builderfrom(UpdateExternalPageRequest other)UpdateExternalPageRequest.UrlStagehtml(java.lang.String html)The body of the external page in HTML.UpdateExternalPageRequest.TitleStageid(java.lang.String id)The unique identifier for the external page which is given by Intercom.UpdateExternalPageRequest._FinalStagesourceId(int sourceId)The unique identifier for the source of the external page which was given by Intercom.UpdateExternalPageRequest.HtmlStagetitle(java.lang.String title)The title of the external page.UpdateExternalPageRequest.SourceIdStageurl(java.lang.String url)The URL of the external page.
-
-
-
Method Detail
-
from
public UpdateExternalPageRequest.Builder from(UpdateExternalPageRequest other)
- Specified by:
fromin interfaceUpdateExternalPageRequest.IdStage
-
id
public UpdateExternalPageRequest.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 interfaceUpdateExternalPageRequest.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public UpdateExternalPageRequest.HtmlStage title(@NotNull java.lang.String title)
The title of the external page.
The title of the external page.
- Specified by:
titlein interfaceUpdateExternalPageRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public UpdateExternalPageRequest.UrlStage 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 interfaceUpdateExternalPageRequest.HtmlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public UpdateExternalPageRequest.SourceIdStage url(@NotNull 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.
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 interfaceUpdateExternalPageRequest.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sourceId
public UpdateExternalPageRequest._FinalStage 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 interfaceUpdateExternalPageRequest.SourceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public UpdateExternalPageRequest._FinalStage externalId(java.lang.String externalId)
The identifier for the external page which was given by the source. Must be unique for the source.
- Specified by:
externalIdin interfaceUpdateExternalPageRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public UpdateExternalPageRequest._FinalStage externalId(java.util.Optional<java.lang.String> externalId)
The identifier for the external page which was given by the source. Must be unique for the source.
- Specified by:
externalIdin interfaceUpdateExternalPageRequest._FinalStage
-
finAvailability
public UpdateExternalPageRequest._FinalStage finAvailability(java.lang.Boolean finAvailability)
Whether the external page should be used to answer questions by Fin.
- Specified by:
finAvailabilityin interfaceUpdateExternalPageRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
finAvailability
public UpdateExternalPageRequest._FinalStage finAvailability(java.util.Optional<java.lang.Boolean> finAvailability)
Whether the external page should be used to answer questions by Fin.
- Specified by:
finAvailabilityin interfaceUpdateExternalPageRequest._FinalStage
-
build
public UpdateExternalPageRequest build()
- Specified by:
buildin interfaceUpdateExternalPageRequest._FinalStage
-
-