Class Collection
- java.lang.Object
-
- com.intercom.api.resources.unstable.helpcenter.types.Collection
-
public final class Collection extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.Integer>getCreatedAt()java.util.Optional<java.lang.String>getDefaultLocale()java.util.Optional<java.lang.String>getDescription()java.util.Optional<java.lang.Integer>getHelpCenterId()java.util.Optional<java.lang.String>getIcon()java.util.Optional<java.lang.String>getId()java.util.Optional<java.lang.String>getName()java.util.Optional<java.lang.Integer>getOrder()java.util.Optional<java.lang.String>getParentId()java.util.Optional<GroupTranslatedContent>getTranslatedContent()java.util.Optional<java.lang.Integer>getUpdatedAt()java.util.Optional<java.lang.String>getUrl()java.util.Optional<java.lang.String>getWorkspaceId()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.util.Optional<java.lang.String> getId()
- Returns:
- The unique identifier for the collection which is given by Intercom.
-
getWorkspaceId
public java.util.Optional<java.lang.String> getWorkspaceId()
- Returns:
- The id of the workspace which the collection belongs to.
-
getName
public java.util.Optional<java.lang.String> getName()
- Returns:
- The name of the collection. For multilingual collections, this will be the name of the default language's content.
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
- Returns:
- The description of the collection. For multilingual help centers, this will be the description of the collection for the default language.
-
getCreatedAt
public java.util.Optional<java.lang.Integer> getCreatedAt()
- Returns:
- The time when the article was created (seconds). For multilingual articles, this will be the timestamp of creation of the default language's content.
-
getUpdatedAt
public java.util.Optional<java.lang.Integer> getUpdatedAt()
- Returns:
- 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.
-
getUrl
public java.util.Optional<java.lang.String> getUrl()
- Returns:
- The URL of the collection. For multilingual help centers, this will be the URL of the collection for the default language.
-
getIcon
public java.util.Optional<java.lang.String> getIcon()
- Returns:
- The icon of the collection.
-
getOrder
public java.util.Optional<java.lang.Integer> getOrder()
- Returns:
- 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.
-
getDefaultLocale
public java.util.Optional<java.lang.String> getDefaultLocale()
- Returns:
- The default locale of the help center. This field is only returned for multilingual help centers.
-
getTranslatedContent
public java.util.Optional<GroupTranslatedContent> getTranslatedContent()
-
getParentId
public java.util.Optional<java.lang.String> getParentId()
- Returns:
- The id of the parent collection. If
nullthen it is the first level collection.
-
getHelpCenterId
public java.util.Optional<java.lang.Integer> getHelpCenterId()
- Returns:
- The id of the help center the collection is in.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static Collection.Builder builder()
-
-