Class UpdateCollectionRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.helpcenters.collections.requests.UpdateCollectionRequest.Builder
-
- All Implemented Interfaces:
UpdateCollectionRequest._FinalStage,UpdateCollectionRequest.CollectionIdStage
- Enclosing class:
- UpdateCollectionRequest
public static final class UpdateCollectionRequest.Builder extends java.lang.Object implements UpdateCollectionRequest.CollectionIdStage, UpdateCollectionRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateCollectionRequestbuild()UpdateCollectionRequest._FinalStagecollectionId(int collectionId)The unique identifier for the collection which is given by Intercom.UpdateCollectionRequest._FinalStagedescription(java.lang.String description)The description of the collection.UpdateCollectionRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the collection.UpdateCollectionRequest.Builderfrom(UpdateCollectionRequest other)UpdateCollectionRequest._FinalStagename(java.lang.String name)The name of the collection.UpdateCollectionRequest._FinalStagename(java.util.Optional<java.lang.String> name)The name of the collection.UpdateCollectionRequest._FinalStageparentId(java.lang.String parentId)The id of the parent collection.UpdateCollectionRequest._FinalStageparentId(java.util.Optional<java.lang.String> parentId)The id of the parent collection.UpdateCollectionRequest._FinalStagetranslatedContent(GroupTranslatedContent translatedContent)UpdateCollectionRequest._FinalStagetranslatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
-
-
-
Method Detail
-
from
public UpdateCollectionRequest.Builder from(UpdateCollectionRequest other)
- Specified by:
fromin interfaceUpdateCollectionRequest.CollectionIdStage
-
collectionId
public UpdateCollectionRequest._FinalStage collectionId(int collectionId)
The unique identifier for the collection which is given by Intercom.
The unique identifier for the collection which is given by Intercom.
- Specified by:
collectionIdin interfaceUpdateCollectionRequest.CollectionIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public UpdateCollectionRequest._FinalStage parentId(java.lang.String parentId)
The id of the parent collection. If
nullthen it will be updated as the first level collection.- Specified by:
parentIdin interfaceUpdateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public UpdateCollectionRequest._FinalStage parentId(java.util.Optional<java.lang.String> parentId)
The id of the parent collection. If
nullthen it will be updated as the first level collection.- Specified by:
parentIdin interfaceUpdateCollectionRequest._FinalStage
-
translatedContent
public UpdateCollectionRequest._FinalStage translatedContent(GroupTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceUpdateCollectionRequest._FinalStage
-
translatedContent
public UpdateCollectionRequest._FinalStage translatedContent(java.util.Optional<GroupTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceUpdateCollectionRequest._FinalStage
-
description
public UpdateCollectionRequest._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 interfaceUpdateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public UpdateCollectionRequest._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 interfaceUpdateCollectionRequest._FinalStage
-
name
public UpdateCollectionRequest._FinalStage name(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 interfaceUpdateCollectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public UpdateCollectionRequest._FinalStage 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.
- Specified by:
namein interfaceUpdateCollectionRequest._FinalStage
-
build
public UpdateCollectionRequest build()
- Specified by:
buildin interfaceUpdateCollectionRequest._FinalStage
-
-