@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; }
public App unmarshall(JsonUnmarshallerContext context) throws Exception { App app = new App(); if (context.testExpression("AppId", targetDepth)) { context.nextToken(); app.setAppId(context.getUnmarshaller(String.class).unmarshall(context)); app.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); app.setShortname(context.getUnmarshaller(String.class).unmarshall(context)); app.setName(context.getUnmarshaller(String.class).unmarshall(context)); app.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); app.setDataSources(new ListUnmarshaller<DataSource>(DataSourceJsonUnmarshaller.getInstance()).unmarshall(context)); app.setType(context.getUnmarshaller(String.class).unmarshall(context)); app.setAppSource(SourceJsonUnmarshaller.getInstance().unmarshall(context)); app.setDomains(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); app.setEnableSsl(context.getUnmarshaller(Boolean.class).unmarshall(context)); app.setSslConfiguration(SslConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); app.setAttributes(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .unmarshall(context));
public App unmarshall(JsonUnmarshallerContext context) throws Exception { App app = new App(); if (context.testExpression("AppId", targetDepth)) { context.nextToken(); app.setAppId(context.getUnmarshaller(String.class).unmarshall(context)); app.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); app.setShortname(context.getUnmarshaller(String.class).unmarshall(context)); app.setName(context.getUnmarshaller(String.class).unmarshall(context)); app.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); app.setDataSources(new ListUnmarshaller<DataSource>(DataSourceJsonUnmarshaller.getInstance()).unmarshall(context)); app.setType(context.getUnmarshaller(String.class).unmarshall(context)); app.setAppSource(SourceJsonUnmarshaller.getInstance().unmarshall(context)); app.setDomains(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); app.setEnableSsl(context.getUnmarshaller(Boolean.class).unmarshall(context)); app.setSslConfiguration(SslConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); app.setAttributes(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .unmarshall(context));
return false; App other = (App) obj; if (other.getAppId() == null ^ this.getAppId() == null) return false; 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) return false; if (other.getShortname() != null && other.getShortname().equals(this.getShortname()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; 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) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); 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(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); 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(","); if (getAppSource() != null) sb.append("AppSource: ").append(getAppSource()).append(","); if (getDomains() != null) sb.append("Domains: ").append(getDomains()).append(","); if (getEnableSsl() != null) sb.append("EnableSsl: ").append(getEnableSsl()).append(","); if (getSslConfiguration() != null) sb.append("SslConfiguration: ").append(getSslConfiguration()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getEnvironment() != 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); } }
@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; }
return false; App other = (App) obj; if (other.getAppId() == null ^ this.getAppId() == null) return false; 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) return false; if (other.getShortname() != null && other.getShortname().equals(this.getShortname()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; 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) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); 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(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); 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(","); if (getAppSource() != null) sb.append("AppSource: ").append(getAppSource()).append(","); if (getDomains() != null) sb.append("Domains: ").append(getDomains()).append(","); if (getEnableSsl() != null) sb.append("EnableSsl: ").append(getEnableSsl()).append(","); if (getSslConfiguration() != null) sb.append("SslConfiguration: ").append(getSslConfiguration()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getEnvironment() != 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); } }