@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; }
/** * <p> * The Classic Load Balancers. * </p> * * @param classicLoadBalancersConfig * The Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancersConfig withClassicLoadBalancersConfig(ClassicLoadBalancersConfig classicLoadBalancersConfig) { setClassicLoadBalancersConfig(classicLoadBalancersConfig); return this; }
/** * <p> * The target groups. * </p> * * @param targetGroupsConfig * The target groups. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancersConfig withTargetGroupsConfig(TargetGroupsConfig targetGroupsConfig) { setTargetGroupsConfig(targetGroupsConfig); return this; }
public LoadBalancersConfig unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancersConfig loadBalancersConfig = new LoadBalancersConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loadBalancersConfig; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("classicLoadBalancersConfig", targetDepth)) { loadBalancersConfig.setClassicLoadBalancersConfig(ClassicLoadBalancersConfigStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("targetGroupsConfig", targetDepth)) { loadBalancersConfig.setTargetGroupsConfig(TargetGroupsConfigStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loadBalancersConfig; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAllocationStrategy() == null) ? 0 : getAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getOnDemandAllocationStrategy() == null) ? 0 : getOnDemandAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getExcessCapacityTerminationPolicy() == null) ? 0 : getExcessCapacityTerminationPolicy().hashCode()); hashCode = prime * hashCode + ((getFulfilledCapacity() == null) ? 0 : getFulfilledCapacity().hashCode()); hashCode = prime * hashCode + ((getOnDemandFulfilledCapacity() == null) ? 0 : getOnDemandFulfilledCapacity().hashCode()); hashCode = prime * hashCode + ((getIamFleetRole() == null) ? 0 : getIamFleetRole().hashCode()); hashCode = prime * hashCode + ((getLaunchSpecifications() == null) ? 0 : getLaunchSpecifications().hashCode()); hashCode = prime * hashCode + ((getLaunchTemplateConfigs() == null) ? 0 : getLaunchTemplateConfigs().hashCode()); hashCode = prime * hashCode + ((getSpotPrice() == null) ? 0 : getSpotPrice().hashCode()); hashCode = prime * hashCode + ((getTargetCapacity() == null) ? 0 : getTargetCapacity().hashCode()); hashCode = prime * hashCode + ((getOnDemandTargetCapacity() == null) ? 0 : getOnDemandTargetCapacity().hashCode()); hashCode = prime * hashCode + ((getTerminateInstancesWithExpiration() == null) ? 0 : getTerminateInstancesWithExpiration().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getValidFrom() == null) ? 0 : getValidFrom().hashCode()); hashCode = prime * hashCode + ((getValidUntil() == null) ? 0 : getValidUntil().hashCode()); hashCode = prime * hashCode + ((getReplaceUnhealthyInstances() == null) ? 0 : getReplaceUnhealthyInstances().hashCode()); hashCode = prime * hashCode + ((getInstanceInterruptionBehavior() == null) ? 0 : getInstanceInterruptionBehavior().hashCode()); hashCode = prime * hashCode + ((getLoadBalancersConfig() == null) ? 0 : getLoadBalancersConfig().hashCode()); hashCode = prime * hashCode + ((getInstancePoolsToUseCount() == null) ? 0 : getInstancePoolsToUseCount().hashCode()); return hashCode; }
if (other.getLoadBalancersConfig() == null ^ this.getLoadBalancersConfig() == null) return false; if (other.getLoadBalancersConfig() != null && other.getLoadBalancersConfig().equals(this.getLoadBalancersConfig()) == false) return false; if (other.getInstancePoolsToUseCount() == null ^ this.getInstancePoolsToUseCount() == null)
public LoadBalancersConfig unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancersConfig loadBalancersConfig = new LoadBalancersConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loadBalancersConfig; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("classicLoadBalancersConfig", targetDepth)) { loadBalancersConfig.setClassicLoadBalancersConfig(ClassicLoadBalancersConfigStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("targetGroupsConfig", targetDepth)) { loadBalancersConfig.setTargetGroupsConfig(TargetGroupsConfigStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loadBalancersConfig; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAllocationStrategy() == null) ? 0 : getAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getOnDemandAllocationStrategy() == null) ? 0 : getOnDemandAllocationStrategy().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getExcessCapacityTerminationPolicy() == null) ? 0 : getExcessCapacityTerminationPolicy().hashCode()); hashCode = prime * hashCode + ((getFulfilledCapacity() == null) ? 0 : getFulfilledCapacity().hashCode()); hashCode = prime * hashCode + ((getOnDemandFulfilledCapacity() == null) ? 0 : getOnDemandFulfilledCapacity().hashCode()); hashCode = prime * hashCode + ((getIamFleetRole() == null) ? 0 : getIamFleetRole().hashCode()); hashCode = prime * hashCode + ((getLaunchSpecifications() == null) ? 0 : getLaunchSpecifications().hashCode()); hashCode = prime * hashCode + ((getLaunchTemplateConfigs() == null) ? 0 : getLaunchTemplateConfigs().hashCode()); hashCode = prime * hashCode + ((getSpotPrice() == null) ? 0 : getSpotPrice().hashCode()); hashCode = prime * hashCode + ((getTargetCapacity() == null) ? 0 : getTargetCapacity().hashCode()); hashCode = prime * hashCode + ((getOnDemandTargetCapacity() == null) ? 0 : getOnDemandTargetCapacity().hashCode()); hashCode = prime * hashCode + ((getTerminateInstancesWithExpiration() == null) ? 0 : getTerminateInstancesWithExpiration().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getValidFrom() == null) ? 0 : getValidFrom().hashCode()); hashCode = prime * hashCode + ((getValidUntil() == null) ? 0 : getValidUntil().hashCode()); hashCode = prime * hashCode + ((getReplaceUnhealthyInstances() == null) ? 0 : getReplaceUnhealthyInstances().hashCode()); hashCode = prime * hashCode + ((getInstanceInterruptionBehavior() == null) ? 0 : getInstanceInterruptionBehavior().hashCode()); hashCode = prime * hashCode + ((getLoadBalancersConfig() == null) ? 0 : getLoadBalancersConfig().hashCode()); hashCode = prime * hashCode + ((getInstancePoolsToUseCount() == null) ? 0 : getInstancePoolsToUseCount().hashCode()); return hashCode; }
if (other.getLoadBalancersConfig() == null ^ this.getLoadBalancersConfig() == null) return false; if (other.getLoadBalancersConfig() != null && other.getLoadBalancersConfig().equals(this.getLoadBalancersConfig()) == false) return false; if (other.getInstancePoolsToUseCount() == null ^ this.getInstancePoolsToUseCount() == null)
@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; }
/** * <p> * The target groups. * </p> * * @param targetGroupsConfig * The target groups. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancersConfig withTargetGroupsConfig(TargetGroupsConfig targetGroupsConfig) { setTargetGroupsConfig(targetGroupsConfig); return this; }
/** * <p> * The Classic Load Balancers. * </p> * * @param classicLoadBalancersConfig * The Classic Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancersConfig withClassicLoadBalancersConfig(ClassicLoadBalancersConfig classicLoadBalancersConfig) { setClassicLoadBalancersConfig(classicLoadBalancersConfig); 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 (getClassicLoadBalancersConfig() != null) sb.append("ClassicLoadBalancersConfig: ").append(getClassicLoadBalancersConfig()).append(","); if (getTargetGroupsConfig() != null) sb.append("TargetGroupsConfig: ").append(getTargetGroupsConfig()); sb.append("}"); return sb.toString(); }
@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; }
/** * 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 (getClassicLoadBalancersConfig() != null) sb.append("ClassicLoadBalancersConfig: ").append(getClassicLoadBalancersConfig()).append(","); if (getTargetGroupsConfig() != null) sb.append("TargetGroupsConfig: ").append(getTargetGroupsConfig()); sb.append("}"); return sb.toString(); }
if (loadBalancersConfig != null) { ClassicLoadBalancersConfig classicLoadBalancersConfig = loadBalancersConfig.getClassicLoadBalancersConfig(); if (classicLoadBalancersConfig != null) { TargetGroupsConfig targetGroupsConfig = loadBalancersConfig.getTargetGroupsConfig(); if (targetGroupsConfig != null) {
if (loadBalancersConfig != null) { ClassicLoadBalancersConfig classicLoadBalancersConfig = loadBalancersConfig.getClassicLoadBalancersConfig(); if (classicLoadBalancersConfig != null) { TargetGroupsConfig targetGroupsConfig = loadBalancersConfig.getTargetGroupsConfig(); if (targetGroupsConfig != null) {