Class CreateArticleRequest
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.CreateArticleRequest
-
public final class CreateArticleRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateArticleRequest._FinalStagestatic interfaceCreateArticleRequest.AuthorIdStagestatic classCreateArticleRequest.Builderstatic classCreateArticleRequest.Statestatic interfaceCreateArticleRequest.TitleStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateArticleRequest.TitleStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()intgetAuthorId()java.util.Optional<java.lang.String>getBody()java.util.Optional<java.lang.String>getDescription()java.util.Optional<java.lang.Integer>getParentId()java.util.Optional<java.lang.String>getParentType()java.util.Optional<CreateArticleRequest.State>getState()java.lang.StringgetTitle()java.util.Optional<ArticleTranslatedContent>getTranslatedContent()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
- Returns:
- The title of the article.For multilingual articles, this will be the title of the default language's content.
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
- Returns:
- The description of the article. For multilingual articles, this will be the description of the default language's content.
-
getBody
public java.util.Optional<java.lang.String> getBody()
- Returns:
- The content of the article. For multilingual articles, this will be the body of the default language's content.
-
getAuthorId
public int getAuthorId()
- Returns:
- The id of the author of the article. For multilingual articles, this will be the id of the author of the default language's content. Must be a teammate on the help center's workspace.
-
getState
public java.util.Optional<CreateArticleRequest.State> getState()
- Returns:
- Whether the article will be
publishedor will be adraft. Defaults to draft. For multilingual articles, this will be the state of the default language's content.
-
getParentId
public java.util.Optional<java.lang.Integer> getParentId()
- Returns:
- The id of the article's parent collection or section. An article without this field stands alone.
-
getParentType
public java.util.Optional<java.lang.String> getParentType()
- Returns:
- The type of parent, which can either be a
collectionorsection.
-
getTranslatedContent
public java.util.Optional<ArticleTranslatedContent> getTranslatedContent()
-
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 CreateArticleRequest.TitleStage builder()
-
-