Interface CreateAppRequest.Builder

    • Method Detail

      • stackId

        CreateAppRequest.Builder stackId​(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.
      • shortname

        CreateAppRequest.Builder shortname​(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.
      • name

        CreateAppRequest.Builder name​(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.
      • description

        CreateAppRequest.Builder description​(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.
      • dataSources

        CreateAppRequest.Builder dataSources​(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.
      • dataSources

        CreateAppRequest.Builder dataSources​(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.
      • type

        CreateAppRequest.Builder type​(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 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 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 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 other.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppType, AppType
      • type

        CreateAppRequest.Builder type​(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 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 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 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 other.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AppType, AppType
      • appSource

        CreateAppRequest.Builder appSource​(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.
      • domains

        CreateAppRequest.Builder domains​(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.
      • domains

        CreateAppRequest.Builder domains​(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.
      • enableSsl

        CreateAppRequest.Builder enableSsl​(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.
      • sslConfiguration

        CreateAppRequest.Builder sslConfiguration​(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.
      • attributesWithStrings

        CreateAppRequest.Builder attributesWithStrings​(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.
      • attributes

        CreateAppRequest.Builder attributes​(Map<AppAttributesKeys,​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.
      • environment

        CreateAppRequest.Builder environment​(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 20 KB. 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 20KB)."

        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 20 KB. 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 20KB)."

        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.
      • environment

        CreateAppRequest.Builder environment​(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 20 KB. 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 20KB)."

        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 20 KB. 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 20KB)."

        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.
      • environment

        CreateAppRequest.Builder environment​(Consumer<EnvironmentVariable.Builder>... 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 20 KB. 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 20KB)."

        If you have specified one or more environment variables, you cannot modify the stack's Chef version.

        This is a convenience method that creates an instance of the EnvironmentVariable.Builder avoiding the need to create one manually via EnvironmentVariable.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #environment(List).

        Parameters:
        environment - a consumer that will call methods on EnvironmentVariable.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #environment(java.util.Collection)