if (getAppId() != null) sb.append("AppId: ").append(getAppId()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getShortname() != null) sb.append("Shortname: ").append(getShortname()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getShortname() == null ^ this.getShortname() == null)
/** * Marshall the given parameter object. */ public void marshall(App app, ProtocolMarshaller protocolMarshaller) { if (app == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(app.getAppId(), APPID_BINDING); protocolMarshaller.marshall(app.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(app.getShortname(), SHORTNAME_BINDING); protocolMarshaller.marshall(app.getName(), NAME_BINDING); protocolMarshaller.marshall(app.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(app.getDataSources(), DATASOURCES_BINDING); protocolMarshaller.marshall(app.getType(), TYPE_BINDING); protocolMarshaller.marshall(app.getAppSource(), APPSOURCE_BINDING); protocolMarshaller.marshall(app.getDomains(), DOMAINS_BINDING); protocolMarshaller.marshall(app.getEnableSsl(), ENABLESSL_BINDING); protocolMarshaller.marshall(app.getSslConfiguration(), SSLCONFIGURATION_BINDING); protocolMarshaller.marshall(app.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(app.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(app.getEnvironment(), ENVIRONMENT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getAppId() != null) sb.append("AppId: ").append(getAppId()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getShortname() != null) sb.append("Shortname: ").append(getShortname()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getShortname() == null ^ this.getShortname() == null)
/** * Marshall the given parameter object. */ public void marshall(App app, ProtocolMarshaller protocolMarshaller) { if (app == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(app.getAppId(), APPID_BINDING); protocolMarshaller.marshall(app.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(app.getShortname(), SHORTNAME_BINDING); protocolMarshaller.marshall(app.getName(), NAME_BINDING); protocolMarshaller.marshall(app.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(app.getDataSources(), DATASOURCES_BINDING); protocolMarshaller.marshall(app.getType(), TYPE_BINDING); protocolMarshaller.marshall(app.getAppSource(), APPSOURCE_BINDING); protocolMarshaller.marshall(app.getDomains(), DOMAINS_BINDING); protocolMarshaller.marshall(app.getEnableSsl(), ENABLESSL_BINDING); protocolMarshaller.marshall(app.getSslConfiguration(), SSLCONFIGURATION_BINDING); protocolMarshaller.marshall(app.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(app.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(app.getEnvironment(), ENVIRONMENT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }