Package com.intercom.api.types
Class ConversationRating.Builder
- java.lang.Object
-
- com.intercom.api.types.ConversationRating.Builder
-
- All Implemented Interfaces:
ConversationRating._FinalStage,ConversationRating.ContactStage,ConversationRating.CreatedAtStage,ConversationRating.RatingStage,ConversationRating.RemarkStage,ConversationRating.TeammateStage
- Enclosing class:
- ConversationRating
public static final class ConversationRating.Builder extends java.lang.Object implements ConversationRating.RatingStage, ConversationRating.RemarkStage, ConversationRating.CreatedAtStage, ConversationRating.ContactStage, ConversationRating.TeammateStage, ConversationRating._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationRatingbuild()ConversationRating.TeammateStagecontact(ContactReference contact)ConversationRating.ContactStagecreatedAt(int createdAt)The time the rating was requested in the conversation being rated.ConversationRating.Builderfrom(ConversationRating other)ConversationRating.RemarkStagerating(int rating)The rating, between 1 and 5, for the conversation.ConversationRating.CreatedAtStageremark(java.lang.String remark)An optional field to add a remark to correspond to the number ratingConversationRating._FinalStageteammate(Reference teammate)
-
-
-
Method Detail
-
from
public ConversationRating.Builder from(ConversationRating other)
- Specified by:
fromin interfaceConversationRating.RatingStage
-
rating
public ConversationRating.RemarkStage rating(int rating)
The rating, between 1 and 5, for the conversation.The rating, between 1 and 5, for the conversation.
- Specified by:
ratingin interfaceConversationRating.RatingStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remark
public ConversationRating.CreatedAtStage remark(@NotNull java.lang.String remark)
An optional field to add a remark to correspond to the number ratingAn optional field to add a remark to correspond to the number rating
- Specified by:
remarkin interfaceConversationRating.RemarkStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ConversationRating.ContactStage createdAt(int createdAt)
The time the rating was requested in the conversation being rated.The time the rating was requested in the conversation being rated.
- Specified by:
createdAtin interfaceConversationRating.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
public ConversationRating.TeammateStage contact(@NotNull ContactReference contact)
- Specified by:
contactin interfaceConversationRating.ContactStage
-
teammate
public ConversationRating._FinalStage teammate(@NotNull Reference teammate)
- Specified by:
teammatein interfaceConversationRating.TeammateStage
-
build
public ConversationRating build()
- Specified by:
buildin interfaceConversationRating._FinalStage
-
-