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