Class Collection.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.helpcenter.types.Collection.Builder
-
- Enclosing class:
- Collection
public static final class Collection.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collectionbuild()Collection.BuildercreatedAt(java.lang.Integer createdAt)Collection.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time when the article was created (seconds).Collection.BuilderdefaultLocale(java.lang.String defaultLocale)Collection.BuilderdefaultLocale(java.util.Optional<java.lang.String> defaultLocale)The default locale of the help center.Collection.Builderdescription(java.lang.String description)Collection.Builderdescription(java.util.Optional<java.lang.String> description)The description of the collection.Collection.Builderfrom(Collection other)Collection.BuilderhelpCenterId(java.lang.Integer helpCenterId)Collection.BuilderhelpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)The id of the help center the collection is in.Collection.Buildericon(java.lang.String icon)Collection.Buildericon(java.util.Optional<java.lang.String> icon)The icon of the collection.Collection.Builderid(java.lang.String id)Collection.Builderid(java.util.Optional<java.lang.String> id)The unique identifier for the collection which is given by Intercom.Collection.Buildername(java.lang.String name)Collection.Buildername(java.util.Optional<java.lang.String> name)The name of the collection.Collection.Builderorder(java.lang.Integer order)Collection.Builderorder(java.util.Optional<java.lang.Integer> order)The order of the section in relation to others sections within a collection.Collection.BuilderparentId(java.lang.String parentId)Collection.BuilderparentId(java.util.Optional<java.lang.String> parentId)The id of the parent collection.Collection.BuildertranslatedContent(GroupTranslatedContent translatedContent)Collection.BuildertranslatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)Collection.BuilderupdatedAt(java.lang.Integer updatedAt)Collection.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the article was last updated (seconds).Collection.Builderurl(java.lang.String url)Collection.Builderurl(java.util.Optional<java.lang.String> url)The URL of the collection.Collection.BuilderworkspaceId(java.lang.String workspaceId)Collection.BuilderworkspaceId(java.util.Optional<java.lang.String> workspaceId)The id of the workspace which the collection belongs to.
-
-
-
Method Detail
-
from
public Collection.Builder from(Collection other)
-
id
public Collection.Builder id(java.util.Optional<java.lang.String> id)
The unique identifier for the collection which is given by Intercom.
-
id
public Collection.Builder id(java.lang.String id)
-
workspaceId
public Collection.Builder workspaceId(java.util.Optional<java.lang.String> workspaceId)
The id of the workspace which the collection belongs to.
-
workspaceId
public Collection.Builder workspaceId(java.lang.String workspaceId)
-
name
public Collection.Builder name(java.util.Optional<java.lang.String> name)
The name of the collection. For multilingual collections, this will be the name of the default language's content.
-
name
public Collection.Builder name(java.lang.String name)
-
description
public Collection.Builder 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.
-
description
public Collection.Builder description(java.lang.String description)
-
createdAt
public Collection.Builder createdAt(java.util.Optional<java.lang.Integer> 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.
-
createdAt
public Collection.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public Collection.Builder 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.
-
updatedAt
public Collection.Builder updatedAt(java.lang.Integer updatedAt)
-
url
public Collection.Builder 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.
-
url
public Collection.Builder url(java.lang.String url)
-
icon
public Collection.Builder icon(java.util.Optional<java.lang.String> icon)
The icon of the collection.
-
icon
public Collection.Builder icon(java.lang.String icon)
-
order
public Collection.Builder order(java.util.Optional<java.lang.Integer> 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.
-
order
public Collection.Builder order(java.lang.Integer order)
-
defaultLocale
public Collection.Builder defaultLocale(java.util.Optional<java.lang.String> defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
-
defaultLocale
public Collection.Builder defaultLocale(java.lang.String defaultLocale)
-
translatedContent
public Collection.Builder translatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
-
translatedContent
public Collection.Builder translatedContent(GroupTranslatedContent translatedContent)
-
parentId
public Collection.Builder parentId(java.util.Optional<java.lang.String> parentId)
The id of the parent collection. If
nullthen it is the first level collection.
-
parentId
public Collection.Builder parentId(java.lang.String parentId)
-
helpCenterId
public Collection.Builder helpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)
The id of the help center the collection is in.
-
helpCenterId
public Collection.Builder helpCenterId(java.lang.Integer helpCenterId)
-
build
public Collection build()
-
-