/* * Copyright 2010-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.connectparticipant.model; import java.io.Serializable; public class GetTranscriptResult implements Serializable { /** *
* The initial contact ID for the contact. *
*
* Constraints:
* Length: 1 - 256
*/
private String initialContactId;
/**
*
* The list of messages in the session. *
*/ private java.util.List* The pagination token. Use the value returned previously in the next * subsequent request to retrieve the next set of results. *
*
* Constraints:
* Length: 1 - 1000
*/
private String nextToken;
/**
*
* The initial contact ID for the contact. *
*
* Constraints:
* Length: 1 - 256
*
* @return
* The initial contact ID for the contact. *
*/ public String getInitialContactId() { return initialContactId; } /** ** The initial contact ID for the contact. *
*
* Constraints:
* Length: 1 - 256
*
* @param initialContactId
* The initial contact ID for the contact. *
*/ public void setInitialContactId(String initialContactId) { this.initialContactId = initialContactId; } /** ** The initial contact ID for the contact. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 256
*
* @param initialContactId
* The initial contact ID for the contact. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetTranscriptResult withInitialContactId(String initialContactId) { this.initialContactId = initialContactId; return this; } /** ** The list of messages in the session. *
* * @return* The list of messages in the session. *
*/ public java.util.List* The list of messages in the session. *
* * @param transcript* The list of messages in the session. *
*/ public void setTranscript(java.util.Collection* The list of messages in the session. *
** Returns a reference to this object so that method calls can be chained * together. * * @param transcript
* The list of messages in the session. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetTranscriptResult withTranscript(Item... transcript) { if (getTranscript() == null) { this.transcript = new java.util.ArrayList* The list of messages in the session. *
** Returns a reference to this object so that method calls can be chained * together. * * @param transcript
* The list of messages in the session. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetTranscriptResult withTranscript(java.util.Collection* The pagination token. Use the value returned previously in the next * subsequent request to retrieve the next set of results. *
*
* Constraints:
* Length: 1 - 1000
*
* @return
* The pagination token. Use the value returned previously in the * next subsequent request to retrieve the next set of results. *
*/ public String getNextToken() { return nextToken; } /** ** The pagination token. Use the value returned previously in the next * subsequent request to retrieve the next set of results. *
*
* Constraints:
* Length: 1 - 1000
*
* @param nextToken
* The pagination token. Use the value returned previously in the * next subsequent request to retrieve the next set of results. *
*/ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The pagination token. Use the value returned previously in the next * subsequent request to retrieve the next set of results. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1000
*
* @param nextToken
* The pagination token. Use the value returned previously in the * next subsequent request to retrieve the next set of results. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetTranscriptResult withNextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInitialContactId() != null) sb.append("InitialContactId: " + getInitialContactId() + ","); if (getTranscript() != null) sb.append("Transcript: " + getTranscript() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInitialContactId() == null) ? 0 : getInitialContactId().hashCode()); hashCode = prime * hashCode + ((getTranscript() == null) ? 0 : getTranscript().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTranscriptResult == false) return false; GetTranscriptResult other = (GetTranscriptResult) obj; if (other.getInitialContactId() == null ^ this.getInitialContactId() == null) return false; if (other.getInitialContactId() != null && other.getInitialContactId().equals(this.getInitialContactId()) == false) return false; if (other.getTranscript() == null ^ this.getTranscript() == null) return false; if (other.getTranscript() != null && other.getTranscript().equals(this.getTranscript()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } }