Class CfnAppMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppMixinProps>
- Enclosing interface:
CfnAppMixinProps
CfnAppMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappSource(CfnAppPropsMixin.SourceProperty appSource) Sets the value ofCfnAppMixinProps.getAppSource()appSource(IResolvable appSource) Sets the value ofCfnAppMixinProps.getAppSource()attributes(Map<String, String> attributes) Sets the value ofCfnAppMixinProps.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnAppMixinProps.getAttributes()build()Builds the configured instance.dataSources(List<? extends Object> dataSources) Sets the value ofCfnAppMixinProps.getDataSources()dataSources(IResolvable dataSources) Sets the value ofCfnAppMixinProps.getDataSources()description(String description) Sets the value ofCfnAppMixinProps.getDescription()Sets the value ofCfnAppMixinProps.getDomains()Sets the value ofCfnAppMixinProps.getEnableSsl()enableSsl(IResolvable enableSsl) Sets the value ofCfnAppMixinProps.getEnableSsl()environment(List<? extends Object> environment) Sets the value ofCfnAppMixinProps.getEnvironment()environment(IResolvable environment) Sets the value ofCfnAppMixinProps.getEnvironment()Sets the value ofCfnAppMixinProps.getName()Sets the value ofCfnAppMixinProps.getShortname()sslConfiguration(CfnAppPropsMixin.SslConfigurationProperty sslConfiguration) Sets the value ofCfnAppMixinProps.getSslConfiguration()sslConfiguration(IResolvable sslConfiguration) Sets the value ofCfnAppMixinProps.getSslConfiguration()Sets the value ofCfnAppMixinProps.getStackId()Sets the value ofCfnAppMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appSource
Sets the value ofCfnAppMixinProps.getAppSource()- Parameters:
appSource- ASourceobject that specifies the app repository.- Returns:
this
-
appSource
@Stability(Stable) public CfnAppMixinProps.Builder appSource(CfnAppPropsMixin.SourceProperty appSource) Sets the value ofCfnAppMixinProps.getAppSource()- Parameters:
appSource- ASourceobject that specifies the app repository.- Returns:
this
-
attributes
Sets the value ofCfnAppMixinProps.getAttributes()- Parameters:
attributes- One or more user-defined key/value pairs to be added to the stack attributes.- Returns:
this
-
attributes
Sets the value ofCfnAppMixinProps.getAttributes()- Parameters:
attributes- One or more user-defined key/value pairs to be added to the stack attributes.- Returns:
this
-
dataSources
Sets the value ofCfnAppMixinProps.getDataSources()- Parameters:
dataSources- The app's data source.- Returns:
this
-
dataSources
Sets the value ofCfnAppMixinProps.getDataSources()- Parameters:
dataSources- The app's data source.- Returns:
this
-
description
Sets the value ofCfnAppMixinProps.getDescription()- Parameters:
description- A description of the app.- Returns:
this
-
domains
Sets the value ofCfnAppMixinProps.getDomains()- Parameters:
domains- The app virtual host settings, with multiple domains separated by commas. For example:'www.example.com, example.com'- Returns:
this
-
enableSsl
Sets the value ofCfnAppMixinProps.getEnableSsl()- Parameters:
enableSsl- Whether to enable SSL for the app.- Returns:
this
-
enableSsl
Sets the value ofCfnAppMixinProps.getEnableSsl()- Parameters:
enableSsl- Whether to enable SSL for the app.- Returns:
this
-
environment
Sets the value ofCfnAppMixinProps.getEnvironment()- Parameters:
environment- An array ofEnvironmentVariableobjects 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:
this
-
environment
Sets the value ofCfnAppMixinProps.getEnvironment()- Parameters:
environment- An array ofEnvironmentVariableobjects 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:
this
-
name
Sets the value ofCfnAppMixinProps.getName()- Parameters:
name- The app name.- Returns:
this
-
shortname
Sets the value ofCfnAppMixinProps.getShortname()- Parameters:
shortname- The app's short name.- Returns:
this
-
sslConfiguration
Sets the value ofCfnAppMixinProps.getSslConfiguration()- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.- Returns:
this
-
sslConfiguration
@Stability(Stable) public CfnAppMixinProps.Builder sslConfiguration(CfnAppPropsMixin.SslConfigurationProperty sslConfiguration) Sets the value ofCfnAppMixinProps.getSslConfiguration()- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.- Returns:
this
-
stackId
Sets the value ofCfnAppMixinProps.getStackId()- Parameters:
stackId- The stack ID.- Returns:
this
-
type
Sets the value ofCfnAppMixinProps.getType()- Parameters:
type- The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. 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, specifyother.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppMixinProps>- Returns:
- a new instance of
CfnAppMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-