@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchTemplateId() == null) ? 0 : getLaunchTemplateId().hashCode()); hashCode = prime * hashCode + ((getLaunchTemplateName() == null) ? 0 : getLaunchTemplateName().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); return hashCode; }
@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; }
/** * <p> * The ID of the launch template. You must specify either a template ID or a template name. * </p> * * @param launchTemplateId * The ID of the launch template. You must specify either a template ID or a template name. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withLaunchTemplateId(String launchTemplateId) { setLaunchTemplateId(launchTemplateId); return this; }
public FleetLaunchTemplateSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { FleetLaunchTemplateSpecification fleetLaunchTemplateSpecification = new FleetLaunchTemplateSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return fleetLaunchTemplateSpecification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("launchTemplateId", targetDepth)) { fleetLaunchTemplateSpecification.setLaunchTemplateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("launchTemplateName", targetDepth)) { fleetLaunchTemplateSpecification.setLaunchTemplateName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("version", targetDepth)) { fleetLaunchTemplateSpecification.setVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return fleetLaunchTemplateSpecification; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchTemplateConfig == false) return false; LaunchTemplateConfig other = (LaunchTemplateConfig) 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; }
/** * <p> * The name of the launch template. You must specify either a template name or a template ID. * </p> * * @param launchTemplateName * The name of the launch template. You must specify either a template name or a template ID. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withLaunchTemplateName(String launchTemplateName) { setLaunchTemplateName(launchTemplateName); return this; }
/** * <p> * The version number of the launch template. You must specify a version number. * </p> * * @param version * The version number of the launch template. You must specify a version number. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withVersion(String version) { setVersion(version); return this; }
public FleetLaunchTemplateSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { FleetLaunchTemplateSpecification fleetLaunchTemplateSpecification = new FleetLaunchTemplateSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return fleetLaunchTemplateSpecification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("launchTemplateId", targetDepth)) { fleetLaunchTemplateSpecification.setLaunchTemplateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("launchTemplateName", targetDepth)) { fleetLaunchTemplateSpecification.setLaunchTemplateName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("version", targetDepth)) { fleetLaunchTemplateSpecification.setVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return fleetLaunchTemplateSpecification; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FleetLaunchTemplateConfig == false) return false; FleetLaunchTemplateConfig other = (FleetLaunchTemplateConfig) 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; }
/** * <p> * The name of the launch template. You must specify either a template name or a template ID. * </p> * * @param launchTemplateName * The name of the launch template. You must specify either a template name or a template ID. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withLaunchTemplateName(String launchTemplateName) { setLaunchTemplateName(launchTemplateName); return this; }
/** * <p> * The version number of the launch template. You must specify a version number. * </p> * * @param version * The version number of the launch template. You must specify a version number. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withVersion(String version) { setVersion(version); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FleetLaunchTemplateSpecification == false) return false; FleetLaunchTemplateSpecification other = (FleetLaunchTemplateSpecification) obj; if (other.getLaunchTemplateId() == null ^ this.getLaunchTemplateId() == null) return false; if (other.getLaunchTemplateId() != null && other.getLaunchTemplateId().equals(this.getLaunchTemplateId()) == false) return false; if (other.getLaunchTemplateName() == null ^ this.getLaunchTemplateName() == null) return false; if (other.getLaunchTemplateName() != null && other.getLaunchTemplateName().equals(this.getLaunchTemplateName()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == 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; }
@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; }
/** * <p> * The ID of the launch template. You must specify either a template ID or a template name. * </p> * * @param launchTemplateId * The ID of the launch template. You must specify either a template ID or a template name. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetLaunchTemplateSpecification withLaunchTemplateId(String launchTemplateId) { setLaunchTemplateId(launchTemplateId); 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 (getLaunchTemplateId() != null) sb.append("LaunchTemplateId: ").append(getLaunchTemplateId()).append(","); if (getLaunchTemplateName() != null) sb.append("LaunchTemplateName: ").append(getLaunchTemplateName()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()); sb.append("}"); return sb.toString(); }
@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 boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchTemplateConfig == false) return false; LaunchTemplateConfig other = (LaunchTemplateConfig) 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; }
if (launchTemplateSpecification != null) { if (launchTemplateSpecification.getLaunchTemplateId() != null) { request.addParameter("SpotFleetRequestConfig.LaunchTemplateConfigs." + launchTemplateConfigsListIndex + ".LaunchTemplateSpecification.LaunchTemplateId", StringUtils.fromString(launchTemplateSpecification.getLaunchTemplateId())); if (launchTemplateSpecification.getLaunchTemplateName() != null) { request.addParameter("SpotFleetRequestConfig.LaunchTemplateConfigs." + launchTemplateConfigsListIndex + ".LaunchTemplateSpecification.LaunchTemplateName", StringUtils.fromString(launchTemplateSpecification.getLaunchTemplateName())); if (launchTemplateSpecification.getVersion() != null) { request.addParameter("SpotFleetRequestConfig.LaunchTemplateConfigs." + launchTemplateConfigsListIndex + ".LaunchTemplateSpecification.Version", StringUtils.fromString(launchTemplateSpecification.getVersion()));
@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; }