Package com.intercom.api.types
Class ConversationRating.Builder
- java.lang.Object
-
- com.intercom.api.types.ConversationRating.Builder
-
- All Implemented Interfaces:
ConversationRating._FinalStage,ConversationRating.CreatedAtStage,ConversationRating.RatingStage
- Enclosing class:
- ConversationRating
public static final class ConversationRating.Builder extends java.lang.Object implements ConversationRating.RatingStage, ConversationRating.CreatedAtStage, ConversationRating._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationRatingbuild()ConversationRating._FinalStagecontact(ContactReference contact)ConversationRating._FinalStagecontact(java.util.Optional<ContactReference> contact)ConversationRating._FinalStagecreatedAt(int createdAt)The time the rating was requested in the conversation being rated.ConversationRating.Builderfrom(ConversationRating other)ConversationRating.CreatedAtStagerating(int rating)The rating, between 1 and 5, for the conversation.ConversationRating._FinalStageremark(java.lang.String remark)An optional field to add a remark to correspond to the number ratingConversationRating._FinalStageremark(java.util.Optional<java.lang.String> remark)An optional field to add a remark to correspond to the number ratingConversationRating._FinalStageteammate(Reference teammate)ConversationRating._FinalStageteammate(java.util.Optional<Reference> teammate)ConversationRating._FinalStageupdatedAt(java.lang.Integer updatedAt)The time the rating was last updated.ConversationRating._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time the rating was last updated.
-
-
-
Method Detail
-
from
public ConversationRating.Builder from(ConversationRating other)
- Specified by:
fromin interfaceConversationRating.RatingStage
-
rating
public ConversationRating.CreatedAtStage 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.
-
createdAt
public ConversationRating._FinalStage 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.
-
teammate
public ConversationRating._FinalStage teammate(Reference teammate)
- Specified by:
teammatein interfaceConversationRating._FinalStage
-
teammate
public ConversationRating._FinalStage teammate(java.util.Optional<Reference> teammate)
- Specified by:
teammatein interfaceConversationRating._FinalStage
-
contact
public ConversationRating._FinalStage contact(ContactReference contact)
- Specified by:
contactin interfaceConversationRating._FinalStage
-
contact
public ConversationRating._FinalStage contact(java.util.Optional<ContactReference> contact)
- Specified by:
contactin interfaceConversationRating._FinalStage
-
updatedAt
public ConversationRating._FinalStage updatedAt(java.lang.Integer updatedAt)
The time the rating was last updated.
- Specified by:
updatedAtin interfaceConversationRating._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ConversationRating._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time the rating was last updated.
- Specified by:
updatedAtin interfaceConversationRating._FinalStage
-
remark
public ConversationRating._FinalStage remark(java.lang.String remark)
An optional field to add a remark to correspond to the number rating
- Specified by:
remarkin interfaceConversationRating._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remark
public ConversationRating._FinalStage remark(java.util.Optional<java.lang.String> remark)
An optional field to add a remark to correspond to the number rating
- Specified by:
remarkin interfaceConversationRating._FinalStage
-
build
public ConversationRating build()
- Specified by:
buildin interfaceConversationRating._FinalStage
-
-