@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getListeners() == null) ? 0 : getListeners().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancer() == null) ? 0 : getLoadBalancer().hashCode()); return hashCode; }
/** * <p> * The domain name of the LoadBalancer. * </p> * * @param domain * The domain name of the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withDomain(String domain) { setDomain(domain); return this; }
public LoadBalancerDescription unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerDescription loadBalancerDescription = new LoadBalancerDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; loadBalancerDescription.setLoadBalancerName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerDescription.setDomain(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerDescription.withListeners(new ArrayList<Listener>()); continue; loadBalancerDescription.withListeners(ListenerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list of Listeners used by the LoadBalancer. * </p> * * @param listeners * A list of Listeners used by the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withListeners(java.util.Collection<Listener> listeners) { setListeners(listeners); return this; }
/** * <p> * The name of the LoadBalancer. * </p> * * @param loadBalancerName * The name of the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withLoadBalancerName(String loadBalancerName) { setLoadBalancerName(loadBalancerName); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EnvironmentResourcesDescription == false) return false; EnvironmentResourcesDescription other = (EnvironmentResourcesDescription) obj; if (other.getLoadBalancer() == null ^ this.getLoadBalancer() == null) return false; if (other.getLoadBalancer() != null && other.getLoadBalancer().equals(this.getLoadBalancer()) == false) return false; return true; }
public LoadBalancerDescription unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerDescription loadBalancerDescription = new LoadBalancerDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; loadBalancerDescription.setLoadBalancerName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerDescription.setDomain(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerDescription.withListeners(new ArrayList<Listener>()); continue; loadBalancerDescription.withListeners(ListenerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list of Listeners used by the LoadBalancer. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setListeners(java.util.Collection)} or {@link #withListeners(java.util.Collection)} if you want to * override the existing values. * </p> * * @param listeners * A list of Listeners used by the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withListeners(Listener... listeners) { if (this.listeners == null) { setListeners(new com.amazonaws.internal.SdkInternalList<Listener>(listeners.length)); } for (Listener ele : listeners) { this.listeners.add(ele); } return this; }
/** * <p> * The name of the LoadBalancer. * </p> * * @param loadBalancerName * The name of the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withLoadBalancerName(String loadBalancerName) { setLoadBalancerName(loadBalancerName); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EnvironmentResourcesDescription == false) return false; EnvironmentResourcesDescription other = (EnvironmentResourcesDescription) obj; if (other.getLoadBalancer() == null ^ this.getLoadBalancer() == null) return false; if (other.getLoadBalancer() != null && other.getLoadBalancer().equals(this.getLoadBalancer()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoadBalancerDescription == false) return false; LoadBalancerDescription other = (LoadBalancerDescription) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getListeners() == null ^ this.getListeners() == null) return false; if (other.getListeners() != null && other.getListeners().equals(this.getListeners()) == false) return false; return true; }
/** * <p> * A list of Listeners used by the LoadBalancer. * </p> * * @param listeners * A list of Listeners used by the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withListeners(java.util.Collection<Listener> listeners) { setListeners(listeners); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancer() == null) ? 0 : getLoadBalancer().hashCode()); return hashCode; }
/** * <p> * The domain name of the LoadBalancer. * </p> * * @param domain * The domain name of the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withDomain(String domain) { setDomain(domain); 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 (getLoadBalancerName() != null) sb.append("LoadBalancerName: ").append(getLoadBalancerName()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getListeners() != null) sb.append("Listeners: ").append(getListeners()); sb.append("}"); return sb.toString(); }
/** * <p> * A list of Listeners used by the LoadBalancer. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setListeners(java.util.Collection)} or {@link #withListeners(java.util.Collection)} if you want to * override the existing values. * </p> * * @param listeners * A list of Listeners used by the LoadBalancer. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerDescription withListeners(Listener... listeners) { if (this.listeners == null) { setListeners(new com.amazonaws.internal.SdkInternalList<Listener>(listeners.length)); } for (Listener ele : listeners) { this.listeners.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getListeners() == null) ? 0 : getListeners().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoadBalancerDescription == false) return false; LoadBalancerDescription other = (LoadBalancerDescription) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getListeners() == null ^ this.getListeners() == null) return false; if (other.getListeners() != null && other.getListeners().equals(this.getListeners()) == false) return false; return true; }
/** * 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 (getLoadBalancerName() != null) sb.append("LoadBalancerName: ").append(getLoadBalancerName()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getListeners() != null) sb.append("Listeners: ").append(getListeners()); sb.append("}"); return sb.toString(); }