@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClassicLoadBalancers() == null) ? 0 : getClassicLoadBalancers().hashCode()); return hashCode; }
/** * <p> * One or more Classic Load Balancers. * </p> * * @param classicLoadBalancers * One or more Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public ClassicLoadBalancersConfig withClassicLoadBalancers(java.util.Collection<ClassicLoadBalancer> classicLoadBalancers) { setClassicLoadBalancers(classicLoadBalancers); return this; }
public ClassicLoadBalancersConfig unmarshall(StaxUnmarshallerContext context) throws Exception { ClassicLoadBalancersConfig classicLoadBalancersConfig = new ClassicLoadBalancersConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return classicLoadBalancersConfig; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("classicLoadBalancers", targetDepth)) { classicLoadBalancersConfig.withClassicLoadBalancers(new ArrayList<ClassicLoadBalancer>()); continue; } if (context.testExpression("classicLoadBalancers/item", targetDepth)) { classicLoadBalancersConfig.withClassicLoadBalancers(ClassicLoadBalancerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return classicLoadBalancersConfig; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClassicLoadBalancersConfig() == null) ? 0 : getClassicLoadBalancersConfig().hashCode()); hashCode = prime * hashCode + ((getTargetGroupsConfig() == null) ? 0 : getTargetGroupsConfig().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoadBalancersConfig == false) return false; LoadBalancersConfig other = (LoadBalancersConfig) obj; if (other.getClassicLoadBalancersConfig() == null ^ this.getClassicLoadBalancersConfig() == null) return false; if (other.getClassicLoadBalancersConfig() != null && other.getClassicLoadBalancersConfig().equals(this.getClassicLoadBalancersConfig()) == false) return false; if (other.getTargetGroupsConfig() == null ^ this.getTargetGroupsConfig() == null) return false; if (other.getTargetGroupsConfig() != null && other.getTargetGroupsConfig().equals(this.getTargetGroupsConfig()) == false) return false; return true; }
public ClassicLoadBalancersConfig unmarshall(StaxUnmarshallerContext context) throws Exception { ClassicLoadBalancersConfig classicLoadBalancersConfig = new ClassicLoadBalancersConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return classicLoadBalancersConfig; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("classicLoadBalancers", targetDepth)) { classicLoadBalancersConfig.withClassicLoadBalancers(new ArrayList<ClassicLoadBalancer>()); continue; } if (context.testExpression("classicLoadBalancers/item", targetDepth)) { classicLoadBalancersConfig.withClassicLoadBalancers(ClassicLoadBalancerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return classicLoadBalancersConfig; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClassicLoadBalancersConfig() == null) ? 0 : getClassicLoadBalancersConfig().hashCode()); hashCode = prime * hashCode + ((getTargetGroupsConfig() == null) ? 0 : getTargetGroupsConfig().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoadBalancersConfig == false) return false; LoadBalancersConfig other = (LoadBalancersConfig) obj; if (other.getClassicLoadBalancersConfig() == null ^ this.getClassicLoadBalancersConfig() == null) return false; if (other.getClassicLoadBalancersConfig() != null && other.getClassicLoadBalancersConfig().equals(this.getClassicLoadBalancersConfig()) == false) return false; if (other.getTargetGroupsConfig() == null ^ this.getTargetGroupsConfig() == null) return false; if (other.getTargetGroupsConfig() != null && other.getTargetGroupsConfig().equals(this.getTargetGroupsConfig()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ClassicLoadBalancersConfig == false) return false; ClassicLoadBalancersConfig other = (ClassicLoadBalancersConfig) obj; if (other.getClassicLoadBalancers() == null ^ this.getClassicLoadBalancers() == null) return false; if (other.getClassicLoadBalancers() != null && other.getClassicLoadBalancers().equals(this.getClassicLoadBalancers()) == false) return false; return true; }
/** * <p> * One or more Classic Load Balancers. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setClassicLoadBalancers(java.util.Collection)} or {@link #withClassicLoadBalancers(java.util.Collection)} * if you want to override the existing values. * </p> * * @param classicLoadBalancers * One or more Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public ClassicLoadBalancersConfig withClassicLoadBalancers(ClassicLoadBalancer... classicLoadBalancers) { if (this.classicLoadBalancers == null) { setClassicLoadBalancers(new com.amazonaws.internal.SdkInternalList<ClassicLoadBalancer>(classicLoadBalancers.length)); } for (ClassicLoadBalancer ele : classicLoadBalancers) { this.classicLoadBalancers.add(ele); } 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 (getClassicLoadBalancers() != null) sb.append("ClassicLoadBalancers: ").append(getClassicLoadBalancers()); sb.append("}"); return sb.toString(); }
/** * <p> * One or more Classic Load Balancers. * </p> * * @param classicLoadBalancers * One or more Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public ClassicLoadBalancersConfig withClassicLoadBalancers(java.util.Collection<ClassicLoadBalancer> classicLoadBalancers) { setClassicLoadBalancers(classicLoadBalancers); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClassicLoadBalancers() == null) ? 0 : getClassicLoadBalancers().hashCode()); return hashCode; }
/** * <p> * One or more Classic Load Balancers. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setClassicLoadBalancers(java.util.Collection)} or {@link #withClassicLoadBalancers(java.util.Collection)} * if you want to override the existing values. * </p> * * @param classicLoadBalancers * One or more Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public ClassicLoadBalancersConfig withClassicLoadBalancers(ClassicLoadBalancer... classicLoadBalancers) { if (this.classicLoadBalancers == null) { setClassicLoadBalancers(new com.amazonaws.internal.SdkInternalList<ClassicLoadBalancer>(classicLoadBalancers.length)); } for (ClassicLoadBalancer ele : classicLoadBalancers) { this.classicLoadBalancers.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ClassicLoadBalancersConfig == false) return false; ClassicLoadBalancersConfig other = (ClassicLoadBalancersConfig) obj; if (other.getClassicLoadBalancers() == null ^ this.getClassicLoadBalancers() == null) return false; if (other.getClassicLoadBalancers() != null && other.getClassicLoadBalancers().equals(this.getClassicLoadBalancers()) == 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 (getClassicLoadBalancers() != null) sb.append("ClassicLoadBalancers: ").append(getClassicLoadBalancers()); sb.append("}"); return sb.toString(); }
.getClassicLoadBalancers(); if (!classicLoadBalancersConfigClassicLoadBalancersList.isEmpty() || !classicLoadBalancersConfigClassicLoadBalancersList.isAutoConstruct()) { int classicLoadBalancersListIndex = 1;
.getClassicLoadBalancers(); if (!classicLoadBalancersConfigClassicLoadBalancersList.isEmpty() || !classicLoadBalancersConfigClassicLoadBalancersList.isAutoConstruct()) { int classicLoadBalancersListIndex = 1;