|
| 1 | +/* |
| 2 | + * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | + * You may not use this file except in compliance with the License. |
| 6 | + * A copy of the License is located at |
| 7 | + * |
| 8 | + * http://aws.amazon.com/apache2.0 |
| 9 | + * |
| 10 | + * or in the "license" file accompanying this file. This file is distributed |
| 11 | + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | + * express or implied. See the License for the specific language governing |
| 13 | + * permissions and limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | +package com.amazonaws.services.connect.model; |
| 17 | + |
| 18 | +import java.io.Serializable; |
| 19 | + |
| 20 | +import com.amazonaws.AmazonWebServiceRequest; |
| 21 | + |
| 22 | +/** |
| 23 | + * <p> |
| 24 | + * This API is in preview release for Amazon Connect and is subject to change. |
| 25 | + * </p> |
| 26 | + * <p> |
| 27 | + * Associates a set of quick connects with a queue. |
| 28 | + * </p> |
| 29 | + */ |
| 30 | +public class AssociateQueueQuickConnectsRequest extends AmazonWebServiceRequest implements |
| 31 | + Serializable { |
| 32 | + /** |
| 33 | + * <p> |
| 34 | + * The identifier of the Amazon Connect instance. |
| 35 | + * </p> |
| 36 | + * <p> |
| 37 | + * <b>Constraints:</b><br/> |
| 38 | + * <b>Length: </b>1 - 100<br/> |
| 39 | + */ |
| 40 | + private String instanceId; |
| 41 | + |
| 42 | + /** |
| 43 | + * <p> |
| 44 | + * The identifier for the queue. |
| 45 | + * </p> |
| 46 | + */ |
| 47 | + private String queueId; |
| 48 | + |
| 49 | + /** |
| 50 | + * <p> |
| 51 | + * The quick connects to associate with this queue. |
| 52 | + * </p> |
| 53 | + */ |
| 54 | + private java.util.List<String> quickConnectIds; |
| 55 | + |
| 56 | + /** |
| 57 | + * <p> |
| 58 | + * The identifier of the Amazon Connect instance. |
| 59 | + * </p> |
| 60 | + * <p> |
| 61 | + * <b>Constraints:</b><br/> |
| 62 | + * <b>Length: </b>1 - 100<br/> |
| 63 | + * |
| 64 | + * @return <p> |
| 65 | + * The identifier of the Amazon Connect instance. |
| 66 | + * </p> |
| 67 | + */ |
| 68 | + public String getInstanceId() { |
| 69 | + return instanceId; |
| 70 | + } |
| 71 | + |
| 72 | + /** |
| 73 | + * <p> |
| 74 | + * The identifier of the Amazon Connect instance. |
| 75 | + * </p> |
| 76 | + * <p> |
| 77 | + * <b>Constraints:</b><br/> |
| 78 | + * <b>Length: </b>1 - 100<br/> |
| 79 | + * |
| 80 | + * @param instanceId <p> |
| 81 | + * The identifier of the Amazon Connect instance. |
| 82 | + * </p> |
| 83 | + */ |
| 84 | + public void setInstanceId(String instanceId) { |
| 85 | + this.instanceId = instanceId; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * <p> |
| 90 | + * The identifier of the Amazon Connect instance. |
| 91 | + * </p> |
| 92 | + * <p> |
| 93 | + * Returns a reference to this object so that method calls can be chained |
| 94 | + * together. |
| 95 | + * <p> |
| 96 | + * <b>Constraints:</b><br/> |
| 97 | + * <b>Length: </b>1 - 100<br/> |
| 98 | + * |
| 99 | + * @param instanceId <p> |
| 100 | + * The identifier of the Amazon Connect instance. |
| 101 | + * </p> |
| 102 | + * @return A reference to this updated object so that method calls can be |
| 103 | + * chained together. |
| 104 | + */ |
| 105 | + public AssociateQueueQuickConnectsRequest withInstanceId(String instanceId) { |
| 106 | + this.instanceId = instanceId; |
| 107 | + return this; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * <p> |
| 112 | + * The identifier for the queue. |
| 113 | + * </p> |
| 114 | + * |
| 115 | + * @return <p> |
| 116 | + * The identifier for the queue. |
| 117 | + * </p> |
| 118 | + */ |
| 119 | + public String getQueueId() { |
| 120 | + return queueId; |
| 121 | + } |
| 122 | + |
| 123 | + /** |
| 124 | + * <p> |
| 125 | + * The identifier for the queue. |
| 126 | + * </p> |
| 127 | + * |
| 128 | + * @param queueId <p> |
| 129 | + * The identifier for the queue. |
| 130 | + * </p> |
| 131 | + */ |
| 132 | + public void setQueueId(String queueId) { |
| 133 | + this.queueId = queueId; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * <p> |
| 138 | + * The identifier for the queue. |
| 139 | + * </p> |
| 140 | + * <p> |
| 141 | + * Returns a reference to this object so that method calls can be chained |
| 142 | + * together. |
| 143 | + * |
| 144 | + * @param queueId <p> |
| 145 | + * The identifier for the queue. |
| 146 | + * </p> |
| 147 | + * @return A reference to this updated object so that method calls can be |
| 148 | + * chained together. |
| 149 | + */ |
| 150 | + public AssociateQueueQuickConnectsRequest withQueueId(String queueId) { |
| 151 | + this.queueId = queueId; |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * <p> |
| 157 | + * The quick connects to associate with this queue. |
| 158 | + * </p> |
| 159 | + * |
| 160 | + * @return <p> |
| 161 | + * The quick connects to associate with this queue. |
| 162 | + * </p> |
| 163 | + */ |
| 164 | + public java.util.List<String> getQuickConnectIds() { |
| 165 | + return quickConnectIds; |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * <p> |
| 170 | + * The quick connects to associate with this queue. |
| 171 | + * </p> |
| 172 | + * |
| 173 | + * @param quickConnectIds <p> |
| 174 | + * The quick connects to associate with this queue. |
| 175 | + * </p> |
| 176 | + */ |
| 177 | + public void setQuickConnectIds(java.util.Collection<String> quickConnectIds) { |
| 178 | + if (quickConnectIds == null) { |
| 179 | + this.quickConnectIds = null; |
| 180 | + return; |
| 181 | + } |
| 182 | + |
| 183 | + this.quickConnectIds = new java.util.ArrayList<String>(quickConnectIds); |
| 184 | + } |
| 185 | + |
| 186 | + /** |
| 187 | + * <p> |
| 188 | + * The quick connects to associate with this queue. |
| 189 | + * </p> |
| 190 | + * <p> |
| 191 | + * Returns a reference to this object so that method calls can be chained |
| 192 | + * together. |
| 193 | + * |
| 194 | + * @param quickConnectIds <p> |
| 195 | + * The quick connects to associate with this queue. |
| 196 | + * </p> |
| 197 | + * @return A reference to this updated object so that method calls can be |
| 198 | + * chained together. |
| 199 | + */ |
| 200 | + public AssociateQueueQuickConnectsRequest withQuickConnectIds(String... quickConnectIds) { |
| 201 | + if (getQuickConnectIds() == null) { |
| 202 | + this.quickConnectIds = new java.util.ArrayList<String>(quickConnectIds.length); |
| 203 | + } |
| 204 | + for (String value : quickConnectIds) { |
| 205 | + this.quickConnectIds.add(value); |
| 206 | + } |
| 207 | + return this; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * <p> |
| 212 | + * The quick connects to associate with this queue. |
| 213 | + * </p> |
| 214 | + * <p> |
| 215 | + * Returns a reference to this object so that method calls can be chained |
| 216 | + * together. |
| 217 | + * |
| 218 | + * @param quickConnectIds <p> |
| 219 | + * The quick connects to associate with this queue. |
| 220 | + * </p> |
| 221 | + * @return A reference to this updated object so that method calls can be |
| 222 | + * chained together. |
| 223 | + */ |
| 224 | + public AssociateQueueQuickConnectsRequest withQuickConnectIds( |
| 225 | + java.util.Collection<String> quickConnectIds) { |
| 226 | + setQuickConnectIds(quickConnectIds); |
| 227 | + return this; |
| 228 | + } |
| 229 | + |
| 230 | + /** |
| 231 | + * Returns a string representation of this object; useful for testing and |
| 232 | + * debugging. |
| 233 | + * |
| 234 | + * @return A string representation of this object. |
| 235 | + * @see java.lang.Object#toString() |
| 236 | + */ |
| 237 | + @Override |
| 238 | + public String toString() { |
| 239 | + StringBuilder sb = new StringBuilder(); |
| 240 | + sb.append("{"); |
| 241 | + if (getInstanceId() != null) |
| 242 | + sb.append("InstanceId: " + getInstanceId() + ","); |
| 243 | + if (getQueueId() != null) |
| 244 | + sb.append("QueueId: " + getQueueId() + ","); |
| 245 | + if (getQuickConnectIds() != null) |
| 246 | + sb.append("QuickConnectIds: " + getQuickConnectIds()); |
| 247 | + sb.append("}"); |
| 248 | + return sb.toString(); |
| 249 | + } |
| 250 | + |
| 251 | + @Override |
| 252 | + public int hashCode() { |
| 253 | + final int prime = 31; |
| 254 | + int hashCode = 1; |
| 255 | + |
| 256 | + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); |
| 257 | + hashCode = prime * hashCode + ((getQueueId() == null) ? 0 : getQueueId().hashCode()); |
| 258 | + hashCode = prime * hashCode |
| 259 | + + ((getQuickConnectIds() == null) ? 0 : getQuickConnectIds().hashCode()); |
| 260 | + return hashCode; |
| 261 | + } |
| 262 | + |
| 263 | + @Override |
| 264 | + public boolean equals(Object obj) { |
| 265 | + if (this == obj) |
| 266 | + return true; |
| 267 | + if (obj == null) |
| 268 | + return false; |
| 269 | + |
| 270 | + if (obj instanceof AssociateQueueQuickConnectsRequest == false) |
| 271 | + return false; |
| 272 | + AssociateQueueQuickConnectsRequest other = (AssociateQueueQuickConnectsRequest) obj; |
| 273 | + |
| 274 | + if (other.getInstanceId() == null ^ this.getInstanceId() == null) |
| 275 | + return false; |
| 276 | + if (other.getInstanceId() != null |
| 277 | + && other.getInstanceId().equals(this.getInstanceId()) == false) |
| 278 | + return false; |
| 279 | + if (other.getQueueId() == null ^ this.getQueueId() == null) |
| 280 | + return false; |
| 281 | + if (other.getQueueId() != null && other.getQueueId().equals(this.getQueueId()) == false) |
| 282 | + return false; |
| 283 | + if (other.getQuickConnectIds() == null ^ this.getQuickConnectIds() == null) |
| 284 | + return false; |
| 285 | + if (other.getQuickConnectIds() != null |
| 286 | + && other.getQuickConnectIds().equals(this.getQuickConnectIds()) == false) |
| 287 | + return false; |
| 288 | + return true; |
| 289 | + } |
| 290 | +} |
0 commit comments