if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDataSources() != null) sb.append("DataSources: ").append(getDataSources()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).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.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDataSources() == null ^ this.getDataSources() == null) return false; if (other.getDataSources() != null && other.getDataSources().equals(this.getDataSources()) == false) return false; if (other.getType() == null ^ this.getType() == 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDataSources() != null) sb.append("DataSources: ").append(getDataSources()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).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.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDataSources() == null ^ this.getDataSources() == null) return false; if (other.getDataSources() != null && other.getDataSources().equals(this.getDataSources()) == false) return false; if (other.getType() == null ^ this.getType() == 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); } }