/* * 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.connect.model; import java.io.Serializable; /** *

* Contains summary information about a routing profile queue. *

*/ public class RoutingProfileQueueConfigSummary implements Serializable { /** *

* The identifier for the queue. *

*/ private String queueId; /** *

* The Amazon Resource Name (ARN) of the queue. *

*/ private String queueArn; /** *

* The name of the queue. *

*

* Constraints:
* Length: 1 - 256
*/ private String queueName; /** *

* The order in which contacts are to be handled for the queue. For more * information, see Queues: priority and delay. *

*

* Constraints:
* Range: 1 - 99
*/ private Integer priority; /** *

* The delay, in seconds, that a contact should be in the queue before they * are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator * Guide. *

*

* Constraints:
* Range: 0 - 9999
*/ private Integer delay; /** *

* The channels this queue supports. *

*

* Constraints:
* Allowed Values: VOICE, CHAT, TASK */ private String channel; /** *

* The identifier for the queue. *

* * @return

* The identifier for the queue. *

*/ public String getQueueId() { return queueId; } /** *

* The identifier for the queue. *

* * @param queueId

* The identifier for the queue. *

*/ public void setQueueId(String queueId) { this.queueId = queueId; } /** *

* The identifier for the queue. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param queueId

* The identifier for the queue. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfigSummary withQueueId(String queueId) { this.queueId = queueId; return this; } /** *

* The Amazon Resource Name (ARN) of the queue. *

* * @return

* The Amazon Resource Name (ARN) of the queue. *

*/ public String getQueueArn() { return queueArn; } /** *

* The Amazon Resource Name (ARN) of the queue. *

* * @param queueArn

* The Amazon Resource Name (ARN) of the queue. *

*/ public void setQueueArn(String queueArn) { this.queueArn = queueArn; } /** *

* The Amazon Resource Name (ARN) of the queue. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param queueArn

* The Amazon Resource Name (ARN) of the queue. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfigSummary withQueueArn(String queueArn) { this.queueArn = queueArn; return this; } /** *

* The name of the queue. *

*

* Constraints:
* Length: 1 - 256
* * @return

* The name of the queue. *

*/ public String getQueueName() { return queueName; } /** *

* The name of the queue. *

*

* Constraints:
* Length: 1 - 256
* * @param queueName

* The name of the queue. *

*/ public void setQueueName(String queueName) { this.queueName = queueName; } /** *

* The name of the queue. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 256
* * @param queueName

* The name of the queue. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfigSummary withQueueName(String queueName) { this.queueName = queueName; return this; } /** *

* The order in which contacts are to be handled for the queue. For more * information, see Queues: priority and delay. *

*

* Constraints:
* Range: 1 - 99
* * @return

* The order in which contacts are to be handled for the queue. For * more information, see Queues: priority and delay. *

*/ public Integer getPriority() { return priority; } /** *

* The order in which contacts are to be handled for the queue. For more * information, see Queues: priority and delay. *

*

* Constraints:
* Range: 1 - 99
* * @param priority

* The order in which contacts are to be handled for the queue. * For more information, see Queues: priority and delay. *

*/ public void setPriority(Integer priority) { this.priority = priority; } /** *

* The order in which contacts are to be handled for the queue. For more * information, see Queues: priority and delay. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 1 - 99
* * @param priority

* The order in which contacts are to be handled for the queue. * For more information, see Queues: priority and delay. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfigSummary withPriority(Integer priority) { this.priority = priority; return this; } /** *

* The delay, in seconds, that a contact should be in the queue before they * are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator * Guide. *

*

* Constraints:
* Range: 0 - 9999
* * @return

* The delay, in seconds, that a contact should be in the queue * before they are routed to an available agent. For more * information, see Queues: priority and delay in the Amazon Connect * Administrator Guide. *

*/ public Integer getDelay() { return delay; } /** *

* The delay, in seconds, that a contact should be in the queue before they * are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator * Guide. *

*

* Constraints:
* Range: 0 - 9999
* * @param delay

* The delay, in seconds, that a contact should be in the queue * before they are routed to an available agent. For more * information, see Queues: priority and delay in the Amazon Connect * Administrator Guide. *

*/ public void setDelay(Integer delay) { this.delay = delay; } /** *

* The delay, in seconds, that a contact should be in the queue before they * are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator * Guide. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 0 - 9999
* * @param delay

* The delay, in seconds, that a contact should be in the queue * before they are routed to an available agent. For more * information, see Queues: priority and delay in the Amazon Connect * Administrator Guide. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfigSummary withDelay(Integer delay) { this.delay = delay; return this; } /** *

* The channels this queue supports. *

*

* Constraints:
* Allowed Values: VOICE, CHAT, TASK * * @return

* The channels this queue supports. *

* @see Channel */ public String getChannel() { return channel; } /** *

* The channels this queue supports. *

*

* Constraints:
* Allowed Values: VOICE, CHAT, TASK * * @param channel

* The channels this queue supports. *

* @see Channel */ public void setChannel(String channel) { this.channel = channel; } /** *

* The channels this queue supports. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: VOICE, CHAT, TASK * * @param channel

* The channels this queue supports. *

* @return A reference to this updated object so that method calls can be * chained together. * @see Channel */ public RoutingProfileQueueConfigSummary withChannel(String channel) { this.channel = channel; return this; } /** *

* The channels this queue supports. *

*

* Constraints:
* Allowed Values: VOICE, CHAT, TASK * * @param channel

* The channels this queue supports. *

* @see Channel */ public void setChannel(Channel channel) { this.channel = channel.toString(); } /** *

* The channels this queue supports. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Allowed Values: VOICE, CHAT, TASK * * @param channel

* The channels this queue supports. *

* @return A reference to this updated object so that method calls can be * chained together. * @see Channel */ public RoutingProfileQueueConfigSummary withChannel(Channel channel) { this.channel = channel.toString(); 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 (getQueueId() != null) sb.append("QueueId: " + getQueueId() + ","); if (getQueueArn() != null) sb.append("QueueArn: " + getQueueArn() + ","); if (getQueueName() != null) sb.append("QueueName: " + getQueueName() + ","); if (getPriority() != null) sb.append("Priority: " + getPriority() + ","); if (getDelay() != null) sb.append("Delay: " + getDelay() + ","); if (getChannel() != null) sb.append("Channel: " + getChannel()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueId() == null) ? 0 : getQueueId().hashCode()); hashCode = prime * hashCode + ((getQueueArn() == null) ? 0 : getQueueArn().hashCode()); hashCode = prime * hashCode + ((getQueueName() == null) ? 0 : getQueueName().hashCode()); hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode()); hashCode = prime * hashCode + ((getDelay() == null) ? 0 : getDelay().hashCode()); hashCode = prime * hashCode + ((getChannel() == null) ? 0 : getChannel().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RoutingProfileQueueConfigSummary == false) return false; RoutingProfileQueueConfigSummary other = (RoutingProfileQueueConfigSummary) obj; if (other.getQueueId() == null ^ this.getQueueId() == null) return false; if (other.getQueueId() != null && other.getQueueId().equals(this.getQueueId()) == false) return false; if (other.getQueueArn() == null ^ this.getQueueArn() == null) return false; if (other.getQueueArn() != null && other.getQueueArn().equals(this.getQueueArn()) == false) return false; if (other.getQueueName() == null ^ this.getQueueName() == null) return false; if (other.getQueueName() != null && other.getQueueName().equals(this.getQueueName()) == false) return false; if (other.getPriority() == null ^ this.getPriority() == null) return false; if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == false) return false; if (other.getDelay() == null ^ this.getDelay() == null) return false; if (other.getDelay() != null && other.getDelay().equals(this.getDelay()) == false) return false; if (other.getChannel() == null ^ this.getChannel() == null) return false; if (other.getChannel() != null && other.getChannel().equals(this.getChannel()) == false) return false; return true; } }