/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.connectcontactlens.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A list of messages in the session. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Transcript implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the transcript. *
*/ private String id; /** ** The identifier of the participant. *
*/ private String participantId; /** ** The role of participant. For example, is it a customer, agent, or system. *
*/ private String participantRole; /** ** The content of the transcript. *
*/ private String content; /** ** The beginning offset in the contact for this transcript. *
*/ private Integer beginOffsetMillis; /** ** The end offset in the contact for this transcript. *
*/ private Integer endOffsetMillis; /** ** The sentiment of the detected for this piece of transcript. *
*/ private String sentiment; /** ** List of positions where issues were detected on the transcript. *
*/ private java.util.List* The identifier of the transcript. *
* * @param id * The identifier of the transcript. */ public void setId(String id) { this.id = id; } /** ** The identifier of the transcript. *
* * @return The identifier of the transcript. */ public String getId() { return this.id; } /** ** The identifier of the transcript. *
* * @param id * The identifier of the transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withId(String id) { setId(id); return this; } /** ** The identifier of the participant. *
* * @param participantId * The identifier of the participant. */ public void setParticipantId(String participantId) { this.participantId = participantId; } /** ** The identifier of the participant. *
* * @return The identifier of the participant. */ public String getParticipantId() { return this.participantId; } /** ** The identifier of the participant. *
* * @param participantId * The identifier of the participant. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withParticipantId(String participantId) { setParticipantId(participantId); return this; } /** ** The role of participant. For example, is it a customer, agent, or system. *
* * @param participantRole * The role of participant. For example, is it a customer, agent, or system. */ public void setParticipantRole(String participantRole) { this.participantRole = participantRole; } /** ** The role of participant. For example, is it a customer, agent, or system. *
* * @return The role of participant. For example, is it a customer, agent, or system. */ public String getParticipantRole() { return this.participantRole; } /** ** The role of participant. For example, is it a customer, agent, or system. *
* * @param participantRole * The role of participant. For example, is it a customer, agent, or system. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withParticipantRole(String participantRole) { setParticipantRole(participantRole); return this; } /** ** The content of the transcript. *
* * @param content * The content of the transcript. */ public void setContent(String content) { this.content = content; } /** ** The content of the transcript. *
* * @return The content of the transcript. */ public String getContent() { return this.content; } /** ** The content of the transcript. *
* * @param content * The content of the transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withContent(String content) { setContent(content); return this; } /** ** The beginning offset in the contact for this transcript. *
* * @param beginOffsetMillis * The beginning offset in the contact for this transcript. */ public void setBeginOffsetMillis(Integer beginOffsetMillis) { this.beginOffsetMillis = beginOffsetMillis; } /** ** The beginning offset in the contact for this transcript. *
* * @return The beginning offset in the contact for this transcript. */ public Integer getBeginOffsetMillis() { return this.beginOffsetMillis; } /** ** The beginning offset in the contact for this transcript. *
* * @param beginOffsetMillis * The beginning offset in the contact for this transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withBeginOffsetMillis(Integer beginOffsetMillis) { setBeginOffsetMillis(beginOffsetMillis); return this; } /** ** The end offset in the contact for this transcript. *
* * @param endOffsetMillis * The end offset in the contact for this transcript. */ public void setEndOffsetMillis(Integer endOffsetMillis) { this.endOffsetMillis = endOffsetMillis; } /** ** The end offset in the contact for this transcript. *
* * @return The end offset in the contact for this transcript. */ public Integer getEndOffsetMillis() { return this.endOffsetMillis; } /** ** The end offset in the contact for this transcript. *
* * @param endOffsetMillis * The end offset in the contact for this transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withEndOffsetMillis(Integer endOffsetMillis) { setEndOffsetMillis(endOffsetMillis); return this; } /** ** The sentiment of the detected for this piece of transcript. *
* * @param sentiment * The sentiment of the detected for this piece of transcript. * @see SentimentValue */ public void setSentiment(String sentiment) { this.sentiment = sentiment; } /** ** The sentiment of the detected for this piece of transcript. *
* * @return The sentiment of the detected for this piece of transcript. * @see SentimentValue */ public String getSentiment() { return this.sentiment; } /** ** The sentiment of the detected for this piece of transcript. *
* * @param sentiment * The sentiment of the detected for this piece of transcript. * @return Returns a reference to this object so that method calls can be chained together. * @see SentimentValue */ public Transcript withSentiment(String sentiment) { setSentiment(sentiment); return this; } /** ** The sentiment of the detected for this piece of transcript. *
* * @param sentiment * The sentiment of the detected for this piece of transcript. * @return Returns a reference to this object so that method calls can be chained together. * @see SentimentValue */ public Transcript withSentiment(SentimentValue sentiment) { this.sentiment = sentiment.toString(); return this; } /** ** List of positions where issues were detected on the transcript. *
* * @return List of positions where issues were detected on the transcript. */ public java.util.List* List of positions where issues were detected on the transcript. *
* * @param issuesDetected * List of positions where issues were detected on the transcript. */ public void setIssuesDetected(java.util.Collection* List of positions where issues were detected on the transcript. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIssuesDetected(java.util.Collection)} or {@link #withIssuesDetected(java.util.Collection)} if you want * to override the existing values. *
* * @param issuesDetected * List of positions where issues were detected on the transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withIssuesDetected(IssueDetected... issuesDetected) { if (this.issuesDetected == null) { setIssuesDetected(new java.util.ArrayList* List of positions where issues were detected on the transcript. *
* * @param issuesDetected * List of positions where issues were detected on the transcript. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withIssuesDetected(java.util.Collection