Class CreateAppRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.CreateAppRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateAppRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • CreateAppRequest

      public CreateAppRequest()
  • Method Details

    • setStackId

      public void setStackId(String stackId)

      The stack ID.

      Parameters:
      stackId - The stack ID.
    • getStackId

      public String getStackId()

      The stack ID.

      Returns:
      The stack ID.
    • withStackId

      public CreateAppRequest withStackId(String stackId)

      The stack ID.

      Parameters:
      stackId - The stack ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setShortname

      public void setShortname(String shortname)

      The app's short name.

      Parameters:
      shortname - The app's short name.
    • getShortname

      public String getShortname()

      The app's short name.

      Returns:
      The app's short name.
    • withShortname

      public CreateAppRequest withShortname(String shortname)

      The app's short name.

      Parameters:
      shortname - The app's short name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setName

      public void setName(String name)

      The app name.

      Parameters:
      name - The app name.
    • getName

      public String getName()

      The app name.

      Returns:
      The app name.
    • withName

      public CreateAppRequest withName(String name)

      The app name.

      Parameters:
      name - The app name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      A description of the app.

      Parameters:
      description - A description of the app.
    • getDescription

      public String getDescription()

      A description of the app.

      Returns:
      A description of the app.
    • withDescription

      public CreateAppRequest withDescription(String description)

      A description of the app.

      Parameters:
      description - A description of the app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDataSources

      public List<DataSource> getDataSources()

      The app's data source.

      Returns:
      The app's data source.
    • setDataSources

      public void setDataSources(Collection<DataSource> dataSources)

      The app's data source.

      Parameters:
      dataSources - The app's data source.
    • withDataSources

      public CreateAppRequest withDataSources(DataSource... dataSources)

      The app's data source.

      NOTE: This method appends the values to the existing list (if any). Use setDataSources(java.util.Collection) or withDataSources(java.util.Collection) if you want to override the existing values.

      Parameters:
      dataSources - The app's data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDataSources

      public CreateAppRequest withDataSources(Collection<DataSource> dataSources)

      The app's data source.

      Parameters:
      dataSources - The app's data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setType

      public void setType(String 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 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 other.

      Parameters:
      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 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 other.
      See Also:
    • getType

      public String getType()

      The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks 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 other.

      Returns:
      The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks 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 other.
      See Also:
    • withType

      public CreateAppRequest withType(String 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 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 other.

      Parameters:
      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 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 other.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setType

      public void setType(AppType 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 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 other.

      Parameters:
      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 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 other.
      See Also:
    • withType

      public CreateAppRequest withType(AppType 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 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 other.

      Parameters:
      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 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 other.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAppSource

      public void setAppSource(Source appSource)

      A Source object that specifies the app repository.

      Parameters:
      appSource - A Source object that specifies the app repository.
    • getAppSource

      public Source getAppSource()

      A Source object that specifies the app repository.

      Returns:
      A Source object that specifies the app repository.
    • withAppSource

      public CreateAppRequest withAppSource(Source appSource)

      A Source object that specifies the app repository.

      Parameters:
      appSource - A Source object that specifies the app repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDomains

      public List<String> getDomains()

      The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

      Returns:
      The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
    • setDomains

      public void setDomains(Collection<String> domains)

      The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

      Parameters:
      domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
    • withDomains

      public CreateAppRequest withDomains(String... domains)

      The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

      NOTE: This method appends the values to the existing list (if any). Use setDomains(java.util.Collection) or withDomains(java.util.Collection) if you want to override the existing values.

      Parameters:
      domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDomains

      public CreateAppRequest withDomains(Collection<String> domains)

      The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

      Parameters:
      domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setEnableSsl

      public void setEnableSsl(Boolean enableSsl)

      Whether to enable SSL for the app.

      Parameters:
      enableSsl - Whether to enable SSL for the app.
    • getEnableSsl

      public Boolean getEnableSsl()

      Whether to enable SSL for the app.

      Returns:
      Whether to enable SSL for the app.
    • withEnableSsl

      public CreateAppRequest withEnableSsl(Boolean enableSsl)

      Whether to enable SSL for the app.

      Parameters:
      enableSsl - Whether to enable SSL for the app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isEnableSsl

      public Boolean isEnableSsl()

      Whether to enable SSL for the app.

      Returns:
      Whether to enable SSL for the app.
    • setSslConfiguration

      public void setSslConfiguration(SslConfiguration sslConfiguration)

      An SslConfiguration object with the SSL configuration.

      Parameters:
      sslConfiguration - An SslConfiguration object with the SSL configuration.
    • getSslConfiguration

      public SslConfiguration getSslConfiguration()

      An SslConfiguration object with the SSL configuration.

      Returns:
      An SslConfiguration object with the SSL configuration.
    • withSslConfiguration

      public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration)

      An SslConfiguration object with the SSL configuration.

      Parameters:
      sslConfiguration - An SslConfiguration object with the SSL configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttributes

      public Map<String,String> getAttributes()

      One or more user-defined key/value pairs to be added to the stack attributes.

      Returns:
      One or more user-defined key/value pairs to be added to the stack attributes.
    • setAttributes

      public void setAttributes(Map<String,String> attributes)

      One or more user-defined key/value pairs to be added to the stack attributes.

      Parameters:
      attributes - One or more user-defined key/value pairs to be added to the stack attributes.
    • withAttributes

      public CreateAppRequest withAttributes(Map<String,String> attributes)

      One or more user-defined key/value pairs to be added to the stack attributes.

      Parameters:
      attributes - One or more user-defined key/value pairs to be added to the stack attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addAttributesEntry

      public CreateAppRequest addAttributesEntry(String key, String value)
    • clearAttributesEntries

      public CreateAppRequest clearAttributesEntries()
      Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
    • getEnvironment

      public List<EnvironmentVariable> getEnvironment()

      An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
      Returns:
      An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
    • setEnvironment

      public void setEnvironment(Collection<EnvironmentVariable> environment)

      An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
      Parameters:
      environment - An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
    • withEnvironment

      public CreateAppRequest withEnvironment(EnvironmentVariable... environment)

      An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.

      NOTE: This method appends the values to the existing list (if any). Use setEnvironment(java.util.Collection) or withEnvironment(java.util.Collection) if you want to override the existing values.

      Parameters:
      environment - An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withEnvironment

      public CreateAppRequest withEnvironment(Collection<EnvironmentVariable> environment)

      An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
      Parameters:
      environment - An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables.

      There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

      This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateAppRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: