public LoadBalancerAttributes unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerAttributes loadBalancerAttributes = new LoadBalancerAttributes(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; loadBalancerAttributes.setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setAccessLog(AccessLogStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setConnectionDraining(ConnectionDrainingStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setConnectionSettings(ConnectionSettingsStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.withAdditionalAttributes(new ArrayList<AdditionalAttribute>()); continue; loadBalancerAttributes.withAdditionalAttributes(AdditionalAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLoadBalancerAttributesResult == false) return false; DescribeLoadBalancerAttributesResult other = (DescribeLoadBalancerAttributesResult) obj; if (other.getLoadBalancerAttributes() == null ^ this.getLoadBalancerAttributes() == null) return false; if (other.getLoadBalancerAttributes() != null && other.getLoadBalancerAttributes().equals(this.getLoadBalancerAttributes()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCrossZoneLoadBalancing() == null) ? 0 : getCrossZoneLoadBalancing().hashCode()); hashCode = prime * hashCode + ((getAccessLog() == null) ? 0 : getAccessLog().hashCode()); hashCode = prime * hashCode + ((getConnectionDraining() == null) ? 0 : getConnectionDraining().hashCode()); hashCode = prime * hashCode + ((getConnectionSettings() == null) ? 0 : getConnectionSettings().hashCode()); hashCode = prime * hashCode + ((getAdditionalAttributes() == null) ? 0 : getAdditionalAttributes().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerAttributes() == null) ? 0 : getLoadBalancerAttributes().hashCode()); return hashCode; }
/** * <p> * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Configure * Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html" * >Configure Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withCrossZoneLoadBalancing(CrossZoneLoadBalancing crossZoneLoadBalancing) { setCrossZoneLoadBalancing(crossZoneLoadBalancing); return this; }
/** * <p> * If enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html">Enable Access * Logs</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param accessLog * If enabled, the load balancer captures detailed information of all requests and delivers the information * to the Amazon S3 bucket that you specify.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html">Enable * Access Logs</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withAccessLog(AccessLog accessLog) { setAccessLog(accessLog); return this; }
/** * <p> * This parameter is reserved. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param additionalAttributes <p> * This parameter is reserved. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public LoadBalancerAttributes withAdditionalAttributes( AdditionalAttribute... additionalAttributes) { if (getAdditionalAttributes() == null) { this.additionalAttributes = new java.util.ArrayList<AdditionalAttribute>( additionalAttributes.length); } for (AdditionalAttribute value : additionalAttributes) { this.additionalAttributes.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getLoadBalancerAttributes() == null) ? 0 : getLoadBalancerAttributes().hashCode()); return hashCode; }
/** * <p> * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Configure * Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html" * >Configure Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withCrossZoneLoadBalancing(CrossZoneLoadBalancing crossZoneLoadBalancing) { setCrossZoneLoadBalancing(crossZoneLoadBalancing); return this; }
/** * <p> * If enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html">Enable Access * Logs</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param accessLog * If enabled, the load balancer captures detailed information of all requests and delivers the information * to the Amazon S3 bucket that you specify.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html">Enable * Access Logs</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withAccessLog(AccessLog accessLog) { setAccessLog(accessLog); return this; }
return false; LoadBalancerAttributes other = (LoadBalancerAttributes) obj; if (other.getCrossZoneLoadBalancing() == null ^ this.getCrossZoneLoadBalancing() == null) return false; if (other.getCrossZoneLoadBalancing() != null && other.getCrossZoneLoadBalancing().equals(this.getCrossZoneLoadBalancing()) == false) return false; if (other.getAccessLog() == null ^ this.getAccessLog() == null) return false; if (other.getAccessLog() != null && other.getAccessLog().equals(this.getAccessLog()) == false) return false; if (other.getConnectionDraining() == null ^ this.getConnectionDraining() == null) return false; if (other.getConnectionDraining() != null && other.getConnectionDraining().equals(this.getConnectionDraining()) == false) return false; if (other.getConnectionSettings() == null ^ this.getConnectionSettings() == null) return false; if (other.getConnectionSettings() != null && other.getConnectionSettings().equals(this.getConnectionSettings()) == false) return false; if (other.getAdditionalAttributes() == null ^ this.getAdditionalAttributes() == null) return false; if (other.getAdditionalAttributes() != null && other.getAdditionalAttributes().equals(this.getAdditionalAttributes()) == false) return false; return true;
public LoadBalancerAttributes unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerAttributes loadBalancerAttributes = new LoadBalancerAttributes(); if (context.testExpression("CrossZoneLoadBalancing", targetDepth)) { loadBalancerAttributes .setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller .getInstance().unmarshall(context)); continue; loadBalancerAttributes.setAccessLog(AccessLogStaxUnmarshaller.getInstance() .unmarshall(context)); continue; loadBalancerAttributes.setConnectionDraining(ConnectionDrainingStaxUnmarshaller .getInstance().unmarshall(context)); continue; loadBalancerAttributes.setConnectionSettings(ConnectionSettingsStaxUnmarshaller .getInstance().unmarshall(context)); continue; .withAdditionalAttributes(AdditionalAttributeStaxUnmarshaller .getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode()); hashCode = prime * hashCode + ((getLoadBalancerAttributes() == null) ? 0 : getLoadBalancerAttributes().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyLoadBalancerAttributesRequest == false) return false; ModifyLoadBalancerAttributesRequest other = (ModifyLoadBalancerAttributesRequest) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getLoadBalancerAttributes() == null ^ this.getLoadBalancerAttributes() == null) return false; if (other.getLoadBalancerAttributes() != null && other.getLoadBalancerAttributes().equals(this.getLoadBalancerAttributes()) == false) return false; return true; }
public LoadBalancerAttributes getLoadBalancerAttributes(LoadBalancerDescription sourceLoadBalancer, AmazonElasticLoadBalancing sourceClient) { LoadBalancerAttributes sourceAttributes = sourceClient.describeLoadBalancerAttributes( new DescribeLoadBalancerAttributesRequest().withLoadBalancerName(sourceLoadBalancer.getLoadBalancerName())).getLoadBalancerAttributes(); if (sourceLoadBalancer.getListenerDescriptions().stream().anyMatch(l -> l.getListener().getInstancePort() == 0)) { sourceAttributes.setCrossZoneLoadBalancing(new CrossZoneLoadBalancing().withEnabled(true)); } return sourceAttributes; }
/** * 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 (getCrossZoneLoadBalancing() != null) sb.append("CrossZoneLoadBalancing: ").append(getCrossZoneLoadBalancing()).append(","); if (getAccessLog() != null) sb.append("AccessLog: ").append(getAccessLog()).append(","); if (getConnectionDraining() != null) sb.append("ConnectionDraining: ").append(getConnectionDraining()).append(","); if (getConnectionSettings() != null) sb.append("ConnectionSettings: ").append(getConnectionSettings()).append(","); if (getAdditionalAttributes() != null) sb.append("AdditionalAttributes: ").append(getAdditionalAttributes()); sb.append("}"); return sb.toString(); }
public LoadBalancerAttributes unmarshall(StaxUnmarshallerContext context) throws Exception { LoadBalancerAttributes loadBalancerAttributes = new LoadBalancerAttributes(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; loadBalancerAttributes.setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setAccessLog(AccessLogStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setConnectionDraining(ConnectionDrainingStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.setConnectionSettings(ConnectionSettingsStaxUnmarshaller.getInstance().unmarshall(context)); continue; loadBalancerAttributes.withAdditionalAttributes(new ArrayList<AdditionalAttribute>()); continue; loadBalancerAttributes.withAdditionalAttributes(AdditionalAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerAttributes() == null) ? 0 : getLoadBalancerAttributes() .hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyLoadBalancerAttributesResult == false) return false; ModifyLoadBalancerAttributesResult other = (ModifyLoadBalancerAttributesResult) obj; if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null) return false; if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false) return false; if (other.getLoadBalancerAttributes() == null ^ this.getLoadBalancerAttributes() == null) return false; if (other.getLoadBalancerAttributes() != null && other.getLoadBalancerAttributes().equals(this.getLoadBalancerAttributes()) == false) return false; return true; }
CrossZoneLoadBalancing crossZoneLoadBalancing = loadBalancerAttributes.getCrossZoneLoadBalancing(); if (crossZoneLoadBalancing != null) { AccessLog accessLog = loadBalancerAttributes.getAccessLog(); if (accessLog != null) { ConnectionDraining connectionDraining = loadBalancerAttributes.getConnectionDraining(); if (connectionDraining != null) { ConnectionSettings connectionSettings = loadBalancerAttributes.getConnectionSettings(); if (connectionSettings != null) { if (!loadBalancerAttributes.getAdditionalAttributes().isEmpty() || !((com.amazonaws.internal.SdkInternalList<AdditionalAttribute>) loadBalancerAttributes.getAdditionalAttributes()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<AdditionalAttribute> additionalAttributesList = (com.amazonaws.internal.SdkInternalList<AdditionalAttribute>) loadBalancerAttributes .getAdditionalAttributes(); int additionalAttributesListIndex = 1;