The unique identifier for the Help Center which is given by Intercom.
+ */ + WorkspaceIdStage id(@NotNull String id); - private OptionalThe id of the workspace which the Help Center belongs to.
+ */ + CreatedAtStage workspaceId(@NotNull String workspaceId); + } - private OptionalThe time when the Help Center was created.
+ */ + UpdatedAtStage createdAt(int createdAt); + } + + public interface UpdatedAtStage { + /** + *The time when the Help Center was last updated.
+ */ + IdentifierStage updatedAt(int updatedAt); + } - private OptionalThe identifier of the Help Center. This is used in the URL of the Help Center.
+ */ + _FinalStage identifier(@NotNull String identifier); + } - private OptionalWhether the Help Center is turned on or not. This is controlled in your Help Center settings.
+ */ + _FinalStage websiteTurnedOn(OptionalThe display name of the Help Center only seen by teammates.
+ */ + _FinalStage displayName(OptionalThe URL for the help center, if you have a custom domain then this will show the URL using the custom domain.
+ */ + _FinalStage url(OptionalCustom domain configured for the help center
+ */ + _FinalStage customDomain(OptionalThe unique identifier for the Help Center which is given by Intercom.
+ *The unique identifier for the Help Center which is given by Intercom.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(OptionalThe id of the workspace which the Help Center belongs to.
+ *The id of the workspace which the Help Center belongs to.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "workspace_id", nulls = Nulls.SKIP) - public Builder workspaceId(OptionalThe time when the Help Center was created.
+ *The time when the Help Center was created.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(OptionalThe time when the Help Center was last updated.
+ *The time when the Help Center was last updated.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_at", nulls = Nulls.SKIP) - public Builder updatedAt(OptionalThe identifier of the Help Center. This is used in the URL of the Help Center.
+ *The identifier of the Help Center. This is used in the URL of the Help Center.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(OptionalCustom domain configured for the help center
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage customDomain(String customDomain) { + this.customDomain = Optional.ofNullable(customDomain); return this; } /** - *Whether the Help Center is turned on or not. This is controlled in your Help Center settings.
+ *Custom domain configured for the help center
*/ - @JsonSetter(value = "website_turned_on", nulls = Nulls.SKIP) - public Builder websiteTurnedOn(OptionalThe URL for the help center, if you have a custom domain then this will show the URL using the custom domain.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage url(String url) { + this.url = Optional.ofNullable(url); return this; } /** - *The display name of the Help Center only seen by teammates.
+ *The URL for the help center, if you have a custom domain then this will show the URL using the custom domain.
*/ - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public Builder displayName(OptionalThe display name of the Help Center only seen by teammates.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); return this; } /** - *The URL for the help center, if you have a custom domain then this will show the URL using the custom domain.
+ *The display name of the Help Center only seen by teammates.
*/ - @JsonSetter(value = "url", nulls = Nulls.SKIP) - public Builder url(OptionalCustom domain configured for the help center
+ *Whether the Help Center is turned on or not. This is controlled in your Help Center settings.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "custom_domain", nulls = Nulls.SKIP) - public Builder customDomain(OptionalWhether the Help Center is turned on or not. This is controlled in your Help Center settings.
+ */ + @java.lang.Override + @JsonSetter(value = "website_turned_on", nulls = Nulls.SKIP) + public _FinalStage websiteTurnedOn(OptionalThe unique identifier for the news item which is given by Intercom.
+ */ + WorkspaceIdStage id(@NotNull String id); - private OptionalThe id of the workspace which the news item belongs to.
+ */ + TitleStage workspaceId(@NotNull String workspaceId); + } - private OptionalThe title of the news item.
+ */ + StateStage title(@NotNull String title); + } - private OptionalNews items will not be visible to your users in the assigned newsfeeds until they are set live.
+ */ + CreatedAtStage state(@NotNull State state); + } - private OptionalTimestamp for when the news item was created.
+ */ + UpdatedAtStage createdAt(int createdAt); + } - private OptionalTimestamp for when the news item was last updated.
+ */ + _FinalStage updatedAt(int updatedAt); + } - private OptionalThe news item body, which may contain HTML.
+ */ + _FinalStage body(OptionalThe id of the sender of the news item. Must be a teammate on the workspace.
+ */ + _FinalStage senderId(OptionalA list of newsfeed_assignments to assign to the specified newsfeed.
+ */ + _FinalStage newsfeedAssignments(OptionalLabel names displayed to users to categorize the news item.
+ */ + _FinalStage labels(OptionalURL of the image used as cover. Must have .jpg or .png extension.
+ */ + _FinalStage coverImageUrl(OptionalOrdered list of emoji reactions to the news item. When empty, reactions are disabled.
+ */ + _FinalStage reactions(OptionalWhen set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
+ */ + _FinalStage deliverSilently(OptionalThe type of object.
- */ - @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(OptionalThe unique identifier for the news item which is given by Intercom.
+ *The unique identifier for the news item which is given by Intercom.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(OptionalThe id of the workspace which the news item belongs to.
+ *The id of the workspace which the news item belongs to.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "workspace_id", nulls = Nulls.SKIP) - public Builder workspaceId(OptionalThe title of the news item.
+ *The title of the news item.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "title", nulls = Nulls.SKIP) - public Builder title(OptionalThe news item body, which may contain HTML.
+ *News items will not be visible to your users in the assigned newsfeeds until they are set live.
+ *News items will not be visible to your users in the assigned newsfeeds until they are set live.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "body", nulls = Nulls.SKIP) - public Builder body(OptionalThe id of the sender of the news item. Must be a teammate on the workspace.
+ *Timestamp for when the news item was created.
+ *Timestamp for when the news item was created.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "sender_id", nulls = Nulls.SKIP) - public Builder senderId(OptionalNews items will not be visible to your users in the assigned newsfeeds until they are set live.
+ *Timestamp for when the news item was last updated.
+ *Timestamp for when the news item was last updated.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "state", nulls = Nulls.SKIP) - public Builder state(OptionalWhen set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage deliverSilently(Boolean deliverSilently) { + this.deliverSilently = Optional.ofNullable(deliverSilently); return this; } /** - *A list of newsfeed_assignments to assign to the specified newsfeed.
+ *When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
*/ - @JsonSetter(value = "newsfeed_assignments", nulls = Nulls.SKIP) - public Builder newsfeedAssignments(OptionalOrdered list of emoji reactions to the news item. When empty, reactions are disabled.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage reactions(ListLabel names displayed to users to categorize the news item.
+ *Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
*/ - @JsonSetter(value = "labels", nulls = Nulls.SKIP) - public Builder labels(OptionalURL of the image used as cover. Must have .jpg or .png extension.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage coverImageUrl(String coverImageUrl) { + this.coverImageUrl = Optional.ofNullable(coverImageUrl); return this; } /** *URL of the image used as cover. Must have .jpg or .png extension.
*/ + @java.lang.Override @JsonSetter(value = "cover_image_url", nulls = Nulls.SKIP) - public Builder coverImageUrl(OptionalOrdered list of emoji reactions to the news item. When empty, reactions are disabled.
+ *Label names displayed to users to categorize the news item.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "reactions", nulls = Nulls.SKIP) - public Builder reactions(OptionalLabel names displayed to users to categorize the news item.
+ */ + @java.lang.Override + @JsonSetter(value = "labels", nulls = Nulls.SKIP) + public _FinalStage labels(OptionalWhen set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
+ *A list of newsfeed_assignments to assign to the specified newsfeed.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "deliver_silently", nulls = Nulls.SKIP) - public Builder deliverSilently(OptionalA list of newsfeed_assignments to assign to the specified newsfeed.
+ */ + @java.lang.Override + @JsonSetter(value = "newsfeed_assignments", nulls = Nulls.SKIP) + public _FinalStage newsfeedAssignments(OptionalTimestamp for when the news item was created.
+ *The id of the sender of the news item. Must be a teammate on the workspace.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(OptionalThe id of the sender of the news item. Must be a teammate on the workspace.
+ */ + @java.lang.Override + @JsonSetter(value = "sender_id", nulls = Nulls.SKIP) + public _FinalStage senderId(OptionalTimestamp for when the news item was last updated.
+ *The news item body, which may contain HTML.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_at", nulls = Nulls.SKIP) - public Builder updatedAt(OptionalThe news item body, which may contain HTML.
+ */ + @java.lang.Override + @JsonSetter(value = "body", nulls = Nulls.SKIP) + public _FinalStage body(OptionalThe unique identifier for the newsfeed which is given by Intercom.
+ */ + NameStage id(@NotNull String id); + + Builder from(Newsfeed other); + } - private OptionalThe name of the newsfeed. This name will never be visible to your users.
+ */ + CreatedAtStage name(@NotNull String name); + } + + public interface CreatedAtStage { + /** + *Timestamp for when the newsfeed was created.
+ */ + UpdatedAtStage createdAt(int createdAt); + } + + public interface UpdatedAtStage { + /** + *Timestamp for when the newsfeed was last updated.
+ */ + _FinalStage updatedAt(int updatedAt); + } + + public interface _FinalStage { + Newsfeed build(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, CreatedAtStage, UpdatedAtStage, _FinalStage { + private String id; - private OptionalThe unique identifier for the newsfeed which is given by Intercom.
+ *The unique identifier for the newsfeed which is given by Intercom.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(OptionalThe type of object.
- */ - @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(OptionalThe name of the newsfeed. This name will never be visible to your users.
+ *The name of the newsfeed. This name will never be visible to your users.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public Builder name(OptionalTimestamp for when the newsfeed was created.
+ *Timestamp for when the newsfeed was created.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(OptionalTimestamp for when the newsfeed was last updated.
+ *Timestamp for when the newsfeed was last updated.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_at", nulls = Nulls.SKIP) - public Builder updatedAt(OptionalThe unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article).
+ */ + _FinalStage newsfeedId(int newsfeedId); + + Builder from(NewsfeedAssignment other); + } + + public interface _FinalStage { + NewsfeedAssignment build(); + + /** + *Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is "draft".
+ */ + _FinalStage publishedAt(OptionalThe unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article).
+ *The unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article).
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "newsfeed_id", nulls = Nulls.SKIP) - public Builder newsfeedId(OptionalPublish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is "draft".
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage publishedAt(Integer publishedAt) { + this.publishedAt = Optional.ofNullable(publishedAt); return this; } /** *Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is "draft".
*/ + @java.lang.Override @JsonSetter(value = "published_at", nulls = Nulls.SKIP) - public Builder publishedAt(OptionalThe unique identifier representing the segment.
+ */ + NameStage id(@NotNull String id); - private OptionalThe name of the segment.
+ */ + CreatedAtStage name(@NotNull String name); + } - private OptionalThe time the segment was created.
+ */ + UpdatedAtStage createdAt(int createdAt); + } - private OptionalThe time the segment was updated.
+ */ + PersonTypeStage updatedAt(int updatedAt); + } - private OptionalType of the contact: contact (lead) or user.
+ */ + _FinalStage personType(@NotNull PersonType personType); + } + + public interface _FinalStage { + Segment build(); + + /** + *The number of items in the user segment. It's returned when include_count=true is included in the request.
The type of object.
- */ - @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(OptionalThe unique identifier representing the segment.
+ *The unique identifier representing the segment.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(OptionalThe name of the segment.
+ *The name of the segment.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public Builder name(OptionalThe time the segment was created.
+ *The time the segment was created.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "created_at", nulls = Nulls.SKIP) - public Builder createdAt(OptionalThe time the segment was updated.
+ *The time the segment was updated.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "updated_at", nulls = Nulls.SKIP) - public Builder updatedAt(OptionalType of the contact: contact (lead) or user.
+ *Type of the contact: contact (lead) or user.
+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "person_type", nulls = Nulls.SKIP) - public Builder personType(OptionalThe number of items in the user segment. It's returned when include_count=true is included in the request.
The number of items in the user segment. It's returned when include_count=true is included in the request.