/** * <p> * A <code>Source</code> object that specifies the app repository. * </p> * * @param appSource * A <code>Source</code> object that specifies the app repository. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withAppSource(Source appSource) { setAppSource(appSource); return this; }
/** * <p> * One or more user-defined key/value pairs to be added to the stack attributes. * </p> * * @param attributes * One or more user-defined key/value pairs to be added to the stack attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
/** * <p> * The app's data source. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(java.util.Collection<DataSource> dataSources) { setDataSources(dataSources); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; 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 + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
checkParams(); AWSOpsWorksClient client = getOrCreateClient(AWSOpsWorksClient.class); CreateAppRequest createAppRequest = new CreateAppRequest() .withStackId(stackId).withName(name).withType(type) .withEnableSsl(enableSsl).withShortname(shortname) .withDescription(description); createAppRequest.setDataSources(dataSources); createAppRequest.setDomains(domains); createAppRequest.setAttributes(attributes); .withSshKey(repoSshKey).withRevision(repoRevision) .withPassword(repoPassword).withUsername(repoUsername); createAppRequest.setAppSource(appSource); .withCertificate(sslCertificate).withChain(sslChain) .withPrivateKey(sslPrivateKey); createAppRequest.setSslConfiguration(sslConfiguration);
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(java.util.Collection<String> domains) { setDomains(domains); return this; }
/** * <p> * An <code>SslConfiguration</code> object with the SSL configuration. * </p> * * @param sslConfiguration * An <code>SslConfiguration</code> object with the SSL configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration) { setSslConfiguration(sslConfiguration); return this; }
/** * <p> * The app type. Each supported type is associated with a particular layer. For example, PHP applications are * associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of * the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy * recipes, specify <code>other</code>. * </p> * * @param type * The app type. Each supported type is associated with a particular layer. For example, PHP applications are * associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are * members of the corresponding layer. If your app isn't one of the standard types, or you prefer to * implement your own Deploy recipes, specify <code>other</code>. * @see AppType */ public void setType(AppType type) { withType(type); }
return false; CreateAppRequest other = (CreateAppRequest) obj; 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) return false; if (other.getAppSource() == null ^ this.getAppSource() == null) return false; if (other.getAppSource() != null && other.getAppSource().equals(this.getAppSource()) == false)
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDomains(java.util.Collection)} or {@link #withDomains(java.util.Collection)} if you want to override * the existing values. * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(String... domains) { if (this.domains == null) { setDomains(new com.amazonaws.internal.SdkInternalList<String>(domains.length)); } for (String ele : domains) { this.domains.add(ele); } return this; }
/** * <p> * An <code>SslConfiguration</code> object with the SSL configuration. * </p> * * @param sslConfiguration * An <code>SslConfiguration</code> object with the SSL configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration) { setSslConfiguration(sslConfiguration); return this; }
/** * <p> * The app type. Each supported type is associated with a particular layer. For example, PHP applications are * associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of * the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy * recipes, specify <code>other</code>. * </p> * * @param type * The app type. Each supported type is associated with a particular layer. For example, PHP applications are * associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are * members of the corresponding layer. If your app isn't one of the standard types, or you prefer to * implement your own Deploy recipes, specify <code>other</code>. * @see AppType */ public void setType(AppType type) { withType(type); }
StringBuilder sb = new StringBuilder(); sb.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 (getEnvironment() != null) sb.append("Environment: ").append(getEnvironment()); sb.append("}"); return sb.toString();
/** * <p> * The app's data source. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(DataSource... dataSources) { if (this.dataSources == null) { setDataSources(new com.amazonaws.internal.SdkInternalList<DataSource>(dataSources.length)); } for (DataSource ele : dataSources) { this.dataSources.add(ele); } return this; }
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(java.util.Collection<String> domains) { setDomains(domains); return this; }
/** * <p> * One or more user-defined key/value pairs to be added to the stack attributes. * </p> * * @param attributes * One or more user-defined key/value pairs to be added to the stack attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
/** * <p> * A <code>Source</code> object that specifies the app repository. * </p> * * @param appSource * A <code>Source</code> object that specifies the app repository. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withAppSource(Source appSource) { setAppSource(appSource); return this; }
/** * Marshall the given parameter object. */ public void marshall(CreateAppRequest createAppRequest, ProtocolMarshaller protocolMarshaller) { if (createAppRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createAppRequest.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(createAppRequest.getShortname(), SHORTNAME_BINDING); protocolMarshaller.marshall(createAppRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(createAppRequest.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(createAppRequest.getDataSources(), DATASOURCES_BINDING); protocolMarshaller.marshall(createAppRequest.getType(), TYPE_BINDING); protocolMarshaller.marshall(createAppRequest.getAppSource(), APPSOURCE_BINDING); protocolMarshaller.marshall(createAppRequest.getDomains(), DOMAINS_BINDING); protocolMarshaller.marshall(createAppRequest.getEnableSsl(), ENABLESSL_BINDING); protocolMarshaller.marshall(createAppRequest.getSslConfiguration(), SSLCONFIGURATION_BINDING); protocolMarshaller.marshall(createAppRequest.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(createAppRequest.getEnvironment(), ENVIRONMENT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * The app's data source. * </p> * * @param dataSources * The app's data source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDataSources(java.util.Collection<DataSource> dataSources) { setDataSources(dataSources); return this; }
/** * <p> * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDomains(java.util.Collection)} or {@link #withDomains(java.util.Collection)} if you want to override * the existing values. * </p> * * @param domains * The app virtual host settings, with multiple domains separated by commas. For example: * <code>'www.example.com, example.com'</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppRequest withDomains(String... domains) { if (this.domains == null) { setDomains(new com.amazonaws.internal.SdkInternalList<String>(domains.length)); } for (String ele : domains) { this.domains.add(ele); } return this; }