@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchTemplateAndOverridesResponse == false) return false; LaunchTemplateAndOverridesResponse other = (LaunchTemplateAndOverridesResponse) obj; if (other.getLaunchTemplateSpecification() == null ^ this.getLaunchTemplateSpecification() == null) return false; if (other.getLaunchTemplateSpecification() != null && other.getLaunchTemplateSpecification().equals(this.getLaunchTemplateSpecification()) == false) return false; if (other.getOverrides() == null ^ this.getOverrides() == null) return false; if (other.getOverrides() != null && other.getOverrides().equals(this.getOverrides()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateAndOverrides() == null) ? 0 : getLaunchTemplateAndOverrides().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); return hashCode; }
/** * <p> * The launch template. * </p> * * @param launchTemplateSpecification * The launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplateAndOverridesResponse withLaunchTemplateSpecification(FleetLaunchTemplateSpecification launchTemplateSpecification) { setLaunchTemplateSpecification(launchTemplateSpecification); return this; }
public LaunchTemplateAndOverridesResponse unmarshall(StaxUnmarshallerContext context) throws Exception { LaunchTemplateAndOverridesResponse launchTemplateAndOverridesResponse = new LaunchTemplateAndOverridesResponse(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return launchTemplateAndOverridesResponse; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("launchTemplateSpecification", targetDepth)) { launchTemplateAndOverridesResponse.setLaunchTemplateSpecification(FleetLaunchTemplateSpecificationStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } if (context.testExpression("overrides", targetDepth)) { launchTemplateAndOverridesResponse.setOverrides(FleetLaunchTemplateOverridesStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return launchTemplateAndOverridesResponse; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateFleetError == false) return false; CreateFleetError other = (CreateFleetError) obj; if (other.getLaunchTemplateAndOverrides() == null ^ this.getLaunchTemplateAndOverrides() == null) return false; if (other.getLaunchTemplateAndOverrides() != null && other.getLaunchTemplateAndOverrides().equals(this.getLaunchTemplateAndOverrides()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null) return false; if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null) return false; if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; return true; }
/** * <p> * Any parameters that you specify override the same parameters in the launch template. * </p> * * @param overrides * Any parameters that you specify override the same parameters in the launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplateAndOverridesResponse withOverrides(FleetLaunchTemplateOverrides overrides) { setOverrides(overrides); return this; }
public LaunchTemplateAndOverridesResponse unmarshall(StaxUnmarshallerContext context) throws Exception { LaunchTemplateAndOverridesResponse launchTemplateAndOverridesResponse = new LaunchTemplateAndOverridesResponse(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return launchTemplateAndOverridesResponse; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("launchTemplateSpecification", targetDepth)) { launchTemplateAndOverridesResponse.setLaunchTemplateSpecification(FleetLaunchTemplateSpecificationStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } if (context.testExpression("overrides", targetDepth)) { launchTemplateAndOverridesResponse.setOverrides(FleetLaunchTemplateOverridesStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return launchTemplateAndOverridesResponse; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeFleetError == false) return false; DescribeFleetError other = (DescribeFleetError) obj; if (other.getLaunchTemplateAndOverrides() == null ^ this.getLaunchTemplateAndOverrides() == null) return false; if (other.getLaunchTemplateAndOverrides() != null && other.getLaunchTemplateAndOverrides().equals(this.getLaunchTemplateAndOverrides()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null) return false; if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null) return false; if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; return true; }
/** * <p> * Any parameters that you specify override the same parameters in the launch template. * </p> * * @param overrides * Any parameters that you specify override the same parameters in the launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplateAndOverridesResponse withOverrides(FleetLaunchTemplateOverrides overrides) { setOverrides(overrides); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateSpecification() == null) ? 0 : getLaunchTemplateSpecification().hashCode()); hashCode = prime * hashCode + ((getOverrides() == null) ? 0 : getOverrides().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateAndOverrides() == null) ? 0 : getLaunchTemplateAndOverrides().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); return hashCode; }
if (other.getLaunchTemplateAndOverrides() == null ^ this.getLaunchTemplateAndOverrides() == null) return false; if (other.getLaunchTemplateAndOverrides() != null && other.getLaunchTemplateAndOverrides().equals(this.getLaunchTemplateAndOverrides()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null)
/** * <p> * The launch template. * </p> * * @param launchTemplateSpecification * The launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplateAndOverridesResponse withLaunchTemplateSpecification(FleetLaunchTemplateSpecification launchTemplateSpecification) { setLaunchTemplateSpecification(launchTemplateSpecification); 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 (getLaunchTemplateSpecification() != null) sb.append("LaunchTemplateSpecification: ").append(getLaunchTemplateSpecification()).append(","); if (getOverrides() != null) sb.append("Overrides: ").append(getOverrides()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateAndOverrides() == null) ? 0 : getLaunchTemplateAndOverrides().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getInstanceIds() == null) ? 0 : getInstanceIds().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); return hashCode; }
if (other.getLaunchTemplateAndOverrides() == null ^ this.getLaunchTemplateAndOverrides() == null) return false; if (other.getLaunchTemplateAndOverrides() != null && other.getLaunchTemplateAndOverrides().equals(this.getLaunchTemplateAndOverrides()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchTemplateAndOverridesResponse == false) return false; LaunchTemplateAndOverridesResponse other = (LaunchTemplateAndOverridesResponse) obj; if (other.getLaunchTemplateSpecification() == null ^ this.getLaunchTemplateSpecification() == null) return false; if (other.getLaunchTemplateSpecification() != null && other.getLaunchTemplateSpecification().equals(this.getLaunchTemplateSpecification()) == false) return false; if (other.getOverrides() == null ^ this.getOverrides() == null) return false; if (other.getOverrides() != null && other.getOverrides().equals(this.getOverrides()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateAndOverrides() == null) ? 0 : getLaunchTemplateAndOverrides().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getInstanceIds() == null) ? 0 : getInstanceIds().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeFleetError == false) return false; DescribeFleetError other = (DescribeFleetError) obj; if (other.getLaunchTemplateAndOverrides() == null ^ this.getLaunchTemplateAndOverrides() == null) return false; if (other.getLaunchTemplateAndOverrides() != null && other.getLaunchTemplateAndOverrides().equals(this.getLaunchTemplateAndOverrides()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null) return false; if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null) return false; if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateSpecification() == null) ? 0 : getLaunchTemplateSpecification().hashCode()); hashCode = prime * hashCode + ((getOverrides() == null) ? 0 : getOverrides().hashCode()); return hashCode; }