Class CreateCollectionRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.helpcenters.collections.requests.CreateCollectionRequest.Builder
-
- All Implemented Interfaces:
CreateCollectionRequest._FinalStage,CreateCollectionRequest.NameStage
- Enclosing class:
- CreateCollectionRequest
public static final class CreateCollectionRequest.Builder extends java.lang.Object implements CreateCollectionRequest.NameStage, CreateCollectionRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public CreateCollectionRequest.Builder from(CreateCollectionRequest other)
- Specified by:
fromin interfaceCreateCollectionRequest.NameStage
-
name
public CreateCollectionRequest._FinalStage 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.
- Specified by:
namein interfaceCreateCollectionRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
helpCenterId
public CreateCollectionRequest._FinalStage helpCenterId(java.lang.Integer helpCenterId)
The id of the help center where the collection will be created. If
nullthen it will be created in the default help center.- Specified by:
helpCenterIdin interfaceCreateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
helpCenterId
public CreateCollectionRequest._FinalStage helpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)
- Specified by:
helpCenterIdin interfaceCreateCollectionRequest._FinalStage
-
parentId
public CreateCollectionRequest._FinalStage parentId(java.lang.String parentId)
The id of the parent collection. If
nullthen it will be created as the first level collection.- Specified by:
parentIdin interfaceCreateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public CreateCollectionRequest._FinalStage parentId(java.util.Optional<java.lang.String> parentId)
- Specified by:
parentIdin interfaceCreateCollectionRequest._FinalStage
-
translatedContent
public CreateCollectionRequest._FinalStage translatedContent(GroupTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceCreateCollectionRequest._FinalStage
-
translatedContent
public CreateCollectionRequest._FinalStage translatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceCreateCollectionRequest._FinalStage
-
description
public CreateCollectionRequest._FinalStage description(java.lang.String description)
The description of the collection. For multilingual collections, this will be the description of the default language's content.
- Specified by:
descriptionin interfaceCreateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public CreateCollectionRequest._FinalStage description(java.util.Optional<java.lang.String> description)
- Specified by:
descriptionin interfaceCreateCollectionRequest._FinalStage
-
build
public CreateCollectionRequest build()
- Specified by:
buildin interfaceCreateCollectionRequest._FinalStage
-
-