Class Collection.Builder
- java.lang.Object
-
- com.intercom.api.resources.helpcenter.types.Collection.Builder
-
- All Implemented Interfaces:
Collection._FinalStage,Collection.CreatedAtStage,Collection.IdStage,Collection.NameStage,Collection.OrderStage,Collection.WorkspaceIdStage
- Enclosing class:
- Collection
public static final class Collection.Builder extends java.lang.Object implements Collection.IdStage, Collection.WorkspaceIdStage, Collection.NameStage, Collection.CreatedAtStage, Collection.OrderStage, Collection._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collectionbuild()Collection.OrderStagecreatedAt(int createdAt)The time when the article was created (seconds).Collection._FinalStagedefaultLocale(java.lang.String defaultLocale)The default locale of the help center.Collection._FinalStagedefaultLocale(java.util.Optional<java.lang.String> defaultLocale)The default locale of the help center.Collection._FinalStagedescription(java.lang.String description)The description of the collection.Collection._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the collection.Collection.Builderfrom(Collection other)Collection._FinalStagehelpCenterId(java.lang.Integer helpCenterId)The id of the help center the collection is in.Collection._FinalStagehelpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)The id of the help center the collection is in.Collection._FinalStageicon(java.lang.String icon)The icon of the collection.Collection._FinalStageicon(java.util.Optional<java.lang.String> icon)The icon of the collection.Collection.WorkspaceIdStageid(java.lang.String id)The unique identifier for the collection which is given by Intercom.Collection.CreatedAtStagename(java.lang.String name)The name of the collection.Collection._FinalStageorder(int order)The order of the section in relation to others sections within a collection.Collection._FinalStageparentId(java.lang.String parentId)The id of the parent collection.Collection._FinalStageparentId(java.util.Optional<java.lang.String> parentId)The id of the parent collection.Collection._FinalStagetranslatedContent(GroupTranslatedContent translatedContent)Collection._FinalStagetranslatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)Collection._FinalStageupdatedAt(java.lang.Integer updatedAt)The time when the article was last updated (seconds).Collection._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the article was last updated (seconds).Collection._FinalStageurl(java.lang.String url)The URL of the collection.Collection._FinalStageurl(java.util.Optional<java.lang.String> url)The URL of the collection.Collection.NameStageworkspaceId(java.lang.String workspaceId)The id of the workspace which the collection belongs to.
-
-
-
Method Detail
-
from
public Collection.Builder from(Collection other)
- Specified by:
fromin interfaceCollection.IdStage
-
id
public Collection.WorkspaceIdStage id(@NotNull java.lang.String id)
The unique identifier for the collection which is given by Intercom.
The unique identifier for the collection which is given by Intercom.
- Specified by:
idin interfaceCollection.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
public Collection.NameStage workspaceId(@NotNull java.lang.String workspaceId)
The id of the workspace which the collection belongs to.
The id of the workspace which the collection belongs to.
- Specified by:
workspaceIdin interfaceCollection.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Collection.CreatedAtStage name(@NotNull java.lang.String name)
The name of the collection. For multilingual collections, this will be the name of the default language's content.
The name of the collection. For multilingual collections, this will be the name of the default language's content.
- Specified by:
namein interfaceCollection.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Collection.OrderStage createdAt(int createdAt)
The time when the article was created (seconds). For multilingual articles, this will be the timestamp of creation of the default language's content.
The time when the article was created (seconds). For multilingual articles, this will be the timestamp of creation of the default language's content.
- Specified by:
createdAtin interfaceCollection.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
order
public Collection._FinalStage order(int order)
The order of the section in relation to others sections within a collection. Values go from
0upwards.0is the default if there's no order.The order of the section in relation to others sections within a collection. Values go from
0upwards.0is the default if there's no order.- Specified by:
orderin interfaceCollection.OrderStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
helpCenterId
public Collection._FinalStage helpCenterId(java.lang.Integer helpCenterId)
The id of the help center the collection is in.
- Specified by:
helpCenterIdin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
helpCenterId
public Collection._FinalStage helpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)
The id of the help center the collection is in.
- Specified by:
helpCenterIdin interfaceCollection._FinalStage
-
parentId
public Collection._FinalStage parentId(java.lang.String parentId)
The id of the parent collection. If
nullthen it is the first level collection.- Specified by:
parentIdin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public Collection._FinalStage parentId(java.util.Optional<java.lang.String> parentId)
The id of the parent collection. If
nullthen it is the first level collection.- Specified by:
parentIdin interfaceCollection._FinalStage
-
translatedContent
public Collection._FinalStage translatedContent(GroupTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceCollection._FinalStage
-
translatedContent
public Collection._FinalStage translatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceCollection._FinalStage
-
defaultLocale
public Collection._FinalStage defaultLocale(java.lang.String defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
- Specified by:
defaultLocalein interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
defaultLocale
public Collection._FinalStage defaultLocale(java.util.Optional<java.lang.String> defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
- Specified by:
defaultLocalein interfaceCollection._FinalStage
-
icon
public Collection._FinalStage icon(java.lang.String icon)
The icon of the collection.
- Specified by:
iconin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
icon
public Collection._FinalStage icon(java.util.Optional<java.lang.String> icon)
The icon of the collection.
- Specified by:
iconin interfaceCollection._FinalStage
-
url
public Collection._FinalStage url(java.lang.String url)
The URL of the collection. For multilingual help centers, this will be the URL of the collection for the default language.
- Specified by:
urlin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public Collection._FinalStage url(java.util.Optional<java.lang.String> url)
The URL of the collection. For multilingual help centers, this will be the URL of the collection for the default language.
- Specified by:
urlin interfaceCollection._FinalStage
-
updatedAt
public Collection._FinalStage updatedAt(java.lang.Integer updatedAt)
The time when the article was last updated (seconds). For multilingual articles, this will be the timestamp of last update of the default language's content.
- Specified by:
updatedAtin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Collection._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time when the article was last updated (seconds). For multilingual articles, this will be the timestamp of last update of the default language's content.
- Specified by:
updatedAtin interfaceCollection._FinalStage
-
description
public Collection._FinalStage description(java.lang.String description)
The description of the collection. For multilingual help centers, this will be the description of the collection for the default language.
- Specified by:
descriptionin interfaceCollection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public Collection._FinalStage description(java.util.Optional<java.lang.String> description)
The description of the collection. For multilingual help centers, this will be the description of the collection for the default language.
- Specified by:
descriptionin interfaceCollection._FinalStage
-
build
public Collection build()
- Specified by:
buildin interfaceCollection._FinalStage
-
-