/* * 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 information about the queue and channel for which priority and delay * can be set. *

*/ public class RoutingProfileQueueConfig implements Serializable { /** *

* Contains information about a queue resource. *

*/ private RoutingProfileQueueReference queueReference; /** *

* 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, 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; /** *

* Contains information about a queue resource. *

* * @return

* Contains information about a queue resource. *

*/ public RoutingProfileQueueReference getQueueReference() { return queueReference; } /** *

* Contains information about a queue resource. *

* * @param queueReference

* Contains information about a queue resource. *

*/ public void setQueueReference(RoutingProfileQueueReference queueReference) { this.queueReference = queueReference; } /** *

* Contains information about a queue resource. *

*

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

* Contains information about a queue resource. *

* @return A reference to this updated object so that method calls can be * chained together. */ public RoutingProfileQueueConfig withQueueReference(RoutingProfileQueueReference queueReference) { this.queueReference = queueReference; 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 RoutingProfileQueueConfig withPriority(Integer priority) { this.priority = priority; return this; } /** *

* The delay, in seconds, 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, 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, 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, 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, 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, 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 RoutingProfileQueueConfig withDelay(Integer delay) { this.delay = delay; 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 (getQueueReference() != null) sb.append("QueueReference: " + getQueueReference() + ","); if (getPriority() != null) sb.append("Priority: " + getPriority() + ","); if (getDelay() != null) sb.append("Delay: " + getDelay()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueReference() == null) ? 0 : getQueueReference().hashCode()); hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode()); hashCode = prime * hashCode + ((getDelay() == null) ? 0 : getDelay().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RoutingProfileQueueConfig == false) return false; RoutingProfileQueueConfig other = (RoutingProfileQueueConfig) obj; if (other.getQueueReference() == null ^ this.getQueueReference() == null) return false; if (other.getQueueReference() != null && other.getQueueReference().equals(this.getQueueReference()) == 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; return true; } }