Class CreateCollectionRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.helpcenter.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCollectionRequestbuild()CreateCollectionRequest._FinalStagedescription(java.lang.String description)The description of the collection.CreateCollectionRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the collection.CreateCollectionRequest.Builderfrom(CreateCollectionRequest other)CreateCollectionRequest._FinalStagehelpCenterId(java.lang.Integer helpCenterId)The id of the help center where the collection will be created.CreateCollectionRequest._FinalStagehelpCenterId(java.util.Optional<java.lang.Integer> helpCenterId)The id of the help center where the collection will be created.CreateCollectionRequest._FinalStagename(java.lang.String name)The name of the collection.CreateCollectionRequest._FinalStageparentId(java.lang.String parentId)The id of the parent collection.CreateCollectionRequest._FinalStageparentId(java.util.Optional<java.lang.String> parentId)The id of the parent collection.CreateCollectionRequest._FinalStagetranslatedContent(GroupTranslatedContent translatedContent)CreateCollectionRequest._FinalStagetranslatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
-
-
-
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.
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)
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
-
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)
The id of the parent collection. If
nullthen it will be created as the first level collection.- 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)
The description of the collection. For multilingual collections, this will be the description of the default language's content.
- Specified by:
descriptionin interfaceCreateCollectionRequest._FinalStage
-
build
public CreateCollectionRequest build()
- Specified by:
buildin interfaceCreateCollectionRequest._FinalStage
-
-