/* * 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.connectcampaign.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The possible types of dialer config parameters *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DialerConfig implements Serializable, Cloneable, StructuredPojo { private PredictiveDialerConfig predictiveDialerConfig; private ProgressiveDialerConfig progressiveDialerConfig; /** * @param predictiveDialerConfig */ public void setPredictiveDialerConfig(PredictiveDialerConfig predictiveDialerConfig) { this.predictiveDialerConfig = predictiveDialerConfig; } /** * @return */ public PredictiveDialerConfig getPredictiveDialerConfig() { return this.predictiveDialerConfig; } /** * @param predictiveDialerConfig * @return Returns a reference to this object so that method calls can be chained together. */ public DialerConfig withPredictiveDialerConfig(PredictiveDialerConfig predictiveDialerConfig) { setPredictiveDialerConfig(predictiveDialerConfig); return this; } /** * @param progressiveDialerConfig */ public void setProgressiveDialerConfig(ProgressiveDialerConfig progressiveDialerConfig) { this.progressiveDialerConfig = progressiveDialerConfig; } /** * @return */ public ProgressiveDialerConfig getProgressiveDialerConfig() { return this.progressiveDialerConfig; } /** * @param progressiveDialerConfig * @return Returns a reference to this object so that method calls can be chained together. */ public DialerConfig withProgressiveDialerConfig(ProgressiveDialerConfig progressiveDialerConfig) { setProgressiveDialerConfig(progressiveDialerConfig); return this; } /** * 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 (getPredictiveDialerConfig() != null) sb.append("PredictiveDialerConfig: ").append(getPredictiveDialerConfig()).append(","); if (getProgressiveDialerConfig() != null) sb.append("ProgressiveDialerConfig: ").append(getProgressiveDialerConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DialerConfig == false) return false; DialerConfig other = (DialerConfig) obj; if (other.getPredictiveDialerConfig() == null ^ this.getPredictiveDialerConfig() == null) return false; if (other.getPredictiveDialerConfig() != null && other.getPredictiveDialerConfig().equals(this.getPredictiveDialerConfig()) == false) return false; if (other.getProgressiveDialerConfig() == null ^ this.getProgressiveDialerConfig() == null) return false; if (other.getProgressiveDialerConfig() != null && other.getProgressiveDialerConfig().equals(this.getProgressiveDialerConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPredictiveDialerConfig() == null) ? 0 : getPredictiveDialerConfig().hashCode()); hashCode = prime * hashCode + ((getProgressiveDialerConfig() == null) ? 0 : getProgressiveDialerConfig().hashCode()); return hashCode; } @Override public DialerConfig clone() { try { return (DialerConfig) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.connectcampaign.model.transform.DialerConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }