Class CreateAppRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesEntry(String key, String value) Removes all the entries added into Attributes.clone()Creates a shallow clone of this request.booleanASourceobject that specifies the app repository.One or more user-defined key/value pairs to be added to the stack attributes.The app's data source.A description of the app.The app virtual host settings, with multiple domains separated by commas.Whether to enable SSL for the app.An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.getName()The app name.The app's short name.AnSslConfigurationobject with the SSL configuration.The stack ID.getType()The app type.inthashCode()Whether to enable SSL for the app.voidsetAppSource(Source appSource) ASourceobject that specifies the app repository.voidsetAttributes(Map<String, String> attributes) One or more user-defined key/value pairs to be added to the stack attributes.voidsetDataSources(Collection<DataSource> dataSources) The app's data source.voidsetDescription(String description) A description of the app.voidsetDomains(Collection<String> domains) The app virtual host settings, with multiple domains separated by commas.voidsetEnableSsl(Boolean enableSsl) Whether to enable SSL for the app.voidsetEnvironment(Collection<EnvironmentVariable> environment) An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.voidThe app name.voidsetShortname(String shortname) The app's short name.voidsetSslConfiguration(SslConfiguration sslConfiguration) AnSslConfigurationobject with the SSL configuration.voidsetStackId(String stackId) The stack ID.voidThe app type.voidThe app type.toString()Returns a string representation of this object; useful for testing and debugging.withAppSource(Source appSource) ASourceobject that specifies the app repository.withAttributes(Map<String, String> attributes) One or more user-defined key/value pairs to be added to the stack attributes.withDataSources(DataSource... dataSources) The app's data source.withDataSources(Collection<DataSource> dataSources) The app's data source.withDescription(String description) A description of the app.withDomains(String... domains) The app virtual host settings, with multiple domains separated by commas.withDomains(Collection<String> domains) The app virtual host settings, with multiple domains separated by commas.withEnableSsl(Boolean enableSsl) Whether to enable SSL for the app.withEnvironment(EnvironmentVariable... environment) An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.withEnvironment(Collection<EnvironmentVariable> environment) An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.The app name.withShortname(String shortname) The app's short name.withSslConfiguration(SslConfiguration sslConfiguration) AnSslConfigurationobject with the SSL configuration.withStackId(String stackId) The stack ID.The app type.The app type.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateAppRequest
public CreateAppRequest()
-
-
Method Details
-
setStackId
-
getStackId
-
withStackId
The stack ID.
- Parameters:
stackId- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShortname
The app's short name.
- Parameters:
shortname- The app's short name.
-
getShortname
-
withShortname
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
-
getName
-
withName
The app name.
- Parameters:
name- The app name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description of the app.
- Parameters:
description- A description of the app.
-
getDescription
-
withDescription
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
-
setDataSources
The app's data source.
- Parameters:
dataSources- The app's data source.
-
withDataSources
The app's data source.
NOTE: This method appends the values to the existing list (if any). Use
setDataSources(java.util.Collection)orwithDataSources(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
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
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, specifyother.- See Also:
-
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
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, specifyother.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
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, specifyother.- See Also:
-
withType
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, specifyother.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAppSource
A
Sourceobject that specifies the app repository.- Parameters:
appSource- ASourceobject that specifies the app repository.
-
getAppSource
A
Sourceobject that specifies the app repository.- Returns:
- A
Sourceobject that specifies the app repository.
-
withAppSource
A
Sourceobject that specifies the app repository.- Parameters:
appSource- ASourceobject that specifies the app repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDomains
-
setDomains
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
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)orwithDomains(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
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
Whether to enable SSL for the app.
- Parameters:
enableSsl- Whether to enable SSL for the app.
-
getEnableSsl
Whether to enable SSL for the app.
- Returns:
- Whether to enable SSL for the app.
-
withEnableSsl
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
Whether to enable SSL for the app.
- Returns:
- Whether to enable SSL for the app.
-
setSslConfiguration
An
SslConfigurationobject with the SSL configuration.- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.
-
getSslConfiguration
An
SslConfigurationobject with the SSL configuration.- Returns:
- An
SslConfigurationobject with the SSL configuration.
-
withSslConfiguration
An
SslConfigurationobject with the SSL configuration.- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
-
setAttributes
-
withAttributes
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
-
clearAttributesEntries
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together. -
getEnvironment
An array of
EnvironmentVariableobjects 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
EnvironmentVariableobjects 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
An array of
EnvironmentVariableobjects 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 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 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
An array of
EnvironmentVariableobjects 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)orwithEnvironment(java.util.Collection)if you want to override the existing values.- 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 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
An array of
EnvironmentVariableobjects 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 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 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
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-