@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetup() == null) ? 0 : getSetup().hashCode()); hashCode = prime * hashCode + ((getConfigure() == null) ? 0 : getConfigure().hashCode()); hashCode = prime * hashCode + ((getDeploy() == null) ? 0 : getDeploy().hashCode()); hashCode = prime * hashCode + ((getUndeploy() == null) ? 0 : getUndeploy().hashCode()); hashCode = prime * hashCode + ((getShutdown() == null) ? 0 : getShutdown().hashCode()); return hashCode; }
/** * 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 (getSetup() != null) sb.append("Setup: ").append(getSetup()).append(","); if (getConfigure() != null) sb.append("Configure: ").append(getConfigure()).append(","); if (getDeploy() != null) sb.append("Deploy: ").append(getDeploy()).append(","); if (getUndeploy() != null) sb.append("Undeploy: ").append(getUndeploy()).append(","); if (getShutdown() != null) sb.append("Shutdown: ").append(getShutdown()); sb.append("}"); return sb.toString(); }
if (other.getConfigure() != null && other.getConfigure().equals(this.getConfigure()) == false) return false; if (other.getDeploy() == null ^ this.getDeploy() == null) return false; if (other.getDeploy() != null && other.getDeploy().equals(this.getDeploy()) == false) return false; if (other.getUndeploy() == null ^ this.getUndeploy() == null)
/** * Marshall the given parameter object. */ public void marshall(Recipes recipes, ProtocolMarshaller protocolMarshaller) { if (recipes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(recipes.getSetup(), SETUP_BINDING); protocolMarshaller.marshall(recipes.getConfigure(), CONFIGURE_BINDING); protocolMarshaller.marshall(recipes.getDeploy(), DEPLOY_BINDING); protocolMarshaller.marshall(recipes.getUndeploy(), UNDEPLOY_BINDING); protocolMarshaller.marshall(recipes.getShutdown(), SHUTDOWN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetup() == null) ? 0 : getSetup().hashCode()); hashCode = prime * hashCode + ((getConfigure() == null) ? 0 : getConfigure().hashCode()); hashCode = prime * hashCode + ((getDeploy() == null) ? 0 : getDeploy().hashCode()); hashCode = prime * hashCode + ((getUndeploy() == null) ? 0 : getUndeploy().hashCode()); hashCode = prime * hashCode + ((getShutdown() == null) ? 0 : getShutdown().hashCode()); return hashCode; }
/** * 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 (getSetup() != null) sb.append("Setup: ").append(getSetup()).append(","); if (getConfigure() != null) sb.append("Configure: ").append(getConfigure()).append(","); if (getDeploy() != null) sb.append("Deploy: ").append(getDeploy()).append(","); if (getUndeploy() != null) sb.append("Undeploy: ").append(getUndeploy()).append(","); if (getShutdown() != null) sb.append("Shutdown: ").append(getShutdown()); sb.append("}"); return sb.toString(); }
if (other.getConfigure() != null && other.getConfigure().equals(this.getConfigure()) == false) return false; if (other.getDeploy() == null ^ this.getDeploy() == null) return false; if (other.getDeploy() != null && other.getDeploy().equals(this.getDeploy()) == false) return false; if (other.getUndeploy() == null ^ this.getUndeploy() == null)
/** * Marshall the given parameter object. */ public void marshall(Recipes recipes, ProtocolMarshaller protocolMarshaller) { if (recipes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(recipes.getSetup(), SETUP_BINDING); protocolMarshaller.marshall(recipes.getConfigure(), CONFIGURE_BINDING); protocolMarshaller.marshall(recipes.getDeploy(), DEPLOY_BINDING); protocolMarshaller.marshall(recipes.getUndeploy(), UNDEPLOY_BINDING); protocolMarshaller.marshall(recipes.getShutdown(), SHUTDOWN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }