/* * 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.connectparticipant.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateParticipantConnectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
* This is a header parameter. *
** The ParticipantToken as obtained from StartChatContact API * response. *
*/ private String participantToken; /** ** Amazon Connect Participant is used to mark the participant as connected for customer participant in message * streaming, as well as for agent or manager participant in non-streaming chats. *
*/ private Boolean connectParticipant; /** *
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
ConnectParticipant
is
* true
.
* @see ConnectionType
*/
public java.util.List
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
ConnectParticipant
is
* true
.
* @see ConnectionType
*/
public void setType(java.util.Collection
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setType(java.util.Collection)} or {@link #withType(java.util.Collection)} if you want to override the * existing values. *
* * @param type * Type of connection information required. This can be omitted ifConnectParticipant
is
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public CreateParticipantConnectionRequest withType(String... type) {
if (this.type == null) {
setType(new java.util.ArrayList
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
ConnectParticipant
is
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public CreateParticipantConnectionRequest withType(java.util.Collection
* Type of connection information required. This can be omitted if ConnectParticipant
is
* true
.
*
ConnectParticipant
is
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public CreateParticipantConnectionRequest withType(ConnectionType... type) {
java.util.ArrayList* This is a header parameter. *
** The ParticipantToken as obtained from StartChatContact API * response. *
* * @param participantToken * This is a header parameter. ** The ParticipantToken as obtained from StartChatContact API response. */ public void setParticipantToken(String participantToken) { this.participantToken = participantToken; } /** *
* This is a header parameter. *
** The ParticipantToken as obtained from StartChatContact API * response. *
* * @return This is a header parameter. ** The ParticipantToken as obtained from StartChatContact API response. */ public String getParticipantToken() { return this.participantToken; } /** *
* This is a header parameter. *
** The ParticipantToken as obtained from StartChatContact API * response. *
* * @param participantToken * This is a header parameter. ** The ParticipantToken as obtained from StartChatContact API response. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateParticipantConnectionRequest withParticipantToken(String participantToken) { setParticipantToken(participantToken); return this; } /** *
* Amazon Connect Participant is used to mark the participant as connected for customer participant in message * streaming, as well as for agent or manager participant in non-streaming chats. *
* * @param connectParticipant * Amazon Connect Participant is used to mark the participant as connected for customer participant in * message streaming, as well as for agent or manager participant in non-streaming chats. */ public void setConnectParticipant(Boolean connectParticipant) { this.connectParticipant = connectParticipant; } /** ** Amazon Connect Participant is used to mark the participant as connected for customer participant in message * streaming, as well as for agent or manager participant in non-streaming chats. *
* * @return Amazon Connect Participant is used to mark the participant as connected for customer participant in * message streaming, as well as for agent or manager participant in non-streaming chats. */ public Boolean getConnectParticipant() { return this.connectParticipant; } /** ** Amazon Connect Participant is used to mark the participant as connected for customer participant in message * streaming, as well as for agent or manager participant in non-streaming chats. *
* * @param connectParticipant * Amazon Connect Participant is used to mark the participant as connected for customer participant in * message streaming, as well as for agent or manager participant in non-streaming chats. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateParticipantConnectionRequest withConnectParticipant(Boolean connectParticipant) { setConnectParticipant(connectParticipant); return this; } /** ** Amazon Connect Participant is used to mark the participant as connected for customer participant in message * streaming, as well as for agent or manager participant in non-streaming chats. *
* * @return Amazon Connect Participant is used to mark the participant as connected for customer participant in * message streaming, as well as for agent or manager participant in non-streaming chats. */ public Boolean isConnectParticipant() { return this.connectParticipant; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getParticipantToken() != null) sb.append("ParticipantToken: ").append(getParticipantToken()).append(","); if (getConnectParticipant() != null) sb.append("ConnectParticipant: ").append(getConnectParticipant()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateParticipantConnectionRequest == false) return false; CreateParticipantConnectionRequest other = (CreateParticipantConnectionRequest) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getParticipantToken() == null ^ this.getParticipantToken() == null) return false; if (other.getParticipantToken() != null && other.getParticipantToken().equals(this.getParticipantToken()) == false) return false; if (other.getConnectParticipant() == null ^ this.getConnectParticipant() == null) return false; if (other.getConnectParticipant() != null && other.getConnectParticipant().equals(this.getConnectParticipant()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getParticipantToken() == null) ? 0 : getParticipantToken().hashCode()); hashCode = prime * hashCode + ((getConnectParticipant() == null) ? 0 : getConnectParticipant().hashCode()); return hashCode; } @Override public CreateParticipantConnectionRequest clone() { return (CreateParticipantConnectionRequest) super.clone(); } }