public class CreateAppRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private Source |
appSource
A
Source object that specifies the app repository. |
private SdkInternalMap<java.lang.String,java.lang.String> |
attributes
One or more user-defined key/value pairs to be added to the stack
attributes.
|
private SdkInternalList<DataSource> |
dataSources
The app's data source.
|
private java.lang.String |
description
A description of the app.
|
private SdkInternalList<java.lang.String> |
domains
The app virtual host settings, with multiple domains separated by commas.
|
private java.lang.Boolean |
enableSsl
Whether to enable SSL for the app.
|
private SdkInternalList<EnvironmentVariable> |
environment
An array of
EnvironmentVariable objects that specify
environment variables to be associated with the app. |
private java.lang.String |
name
The app name.
|
private java.lang.String |
shortname
The app's short name.
|
private SslConfiguration |
sslConfiguration
An
SslConfiguration object with the SSL configuration. |
private java.lang.String |
stackId
The stack ID.
|
private java.lang.String |
type
The app type.
|
NOOP
Constructor and Description |
---|
CreateAppRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAppRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
CreateAppRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
CreateAppRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Source |
getAppSource()
A
Source object that specifies the app repository. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
One or more user-defined key/value pairs to be added to the stack
attributes.
|
java.util.List<DataSource> |
getDataSources()
The app's data source.
|
java.lang.String |
getDescription()
A description of the app.
|
java.util.List<java.lang.String> |
getDomains()
The app virtual host settings, with multiple domains separated by commas.
|
java.lang.Boolean |
getEnableSsl()
Whether to enable SSL for the app.
|
java.util.List<EnvironmentVariable> |
getEnvironment()
An array of
EnvironmentVariable objects that specify
environment variables to be associated with the app. |
java.lang.String |
getName()
The app name.
|
java.lang.String |
getShortname()
The app's short name.
|
SslConfiguration |
getSslConfiguration()
An
SslConfiguration object with the SSL configuration. |
java.lang.String |
getStackId()
The stack ID.
|
java.lang.String |
getType()
The app type.
|
int |
hashCode() |
java.lang.Boolean |
isEnableSsl()
Whether to enable SSL for the app.
|
void |
setAppSource(Source appSource)
A
Source object that specifies the app repository. |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes.
|
void |
setDataSources(java.util.Collection<DataSource> dataSources)
The app's data source.
|
void |
setDescription(java.lang.String description)
A description of the app.
|
void |
setDomains(java.util.Collection<java.lang.String> domains)
The app virtual host settings, with multiple domains separated by commas.
|
void |
setEnableSsl(java.lang.Boolean enableSsl)
Whether to enable SSL for the app.
|
void |
setEnvironment(java.util.Collection<EnvironmentVariable> environment)
An array of
EnvironmentVariable objects that specify
environment variables to be associated with the app. |
void |
setName(java.lang.String name)
The app name.
|
void |
setShortname(java.lang.String shortname)
The app's short name.
|
void |
setSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfiguration object with the SSL configuration. |
void |
setStackId(java.lang.String stackId)
The stack ID.
|
void |
setType(AppType type)
The app type.
|
void |
setType(java.lang.String type)
The app type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAppRequest |
withAppSource(Source appSource)
A
Source object that specifies the app repository. |
CreateAppRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes.
|
CreateAppRequest |
withDataSources(java.util.Collection<DataSource> dataSources)
The app's data source.
|
CreateAppRequest |
withDataSources(DataSource... dataSources)
The app's data source.
|
CreateAppRequest |
withDescription(java.lang.String description)
A description of the app.
|
CreateAppRequest |
withDomains(java.util.Collection<java.lang.String> domains)
The app virtual host settings, with multiple domains separated by commas.
|
CreateAppRequest |
withDomains(java.lang.String... domains)
The app virtual host settings, with multiple domains separated by commas.
|
CreateAppRequest |
withEnableSsl(java.lang.Boolean enableSsl)
Whether to enable SSL for the app.
|
CreateAppRequest |
withEnvironment(java.util.Collection<EnvironmentVariable> environment)
An array of
EnvironmentVariable objects that specify
environment variables to be associated with the app. |
CreateAppRequest |
withEnvironment(EnvironmentVariable... environment)
An array of
EnvironmentVariable objects that specify
environment variables to be associated with the app. |
CreateAppRequest |
withName(java.lang.String name)
The app name.
|
CreateAppRequest |
withShortname(java.lang.String shortname)
The app's short name.
|
CreateAppRequest |
withSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfiguration object with the SSL configuration. |
CreateAppRequest |
withStackId(java.lang.String stackId)
The stack ID.
|
CreateAppRequest |
withType(AppType type)
The app type.
|
CreateAppRequest |
withType(java.lang.String type)
The app type.
|
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
private java.lang.String stackId
The stack ID.
private java.lang.String shortname
The app's short name.
private java.lang.String name
The app name.
private java.lang.String description
A description of the app.
private SdkInternalList<DataSource> dataSources
The app's data source.
private java.lang.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
.
private Source appSource
A Source
object that specifies the app repository.
private SdkInternalList<java.lang.String> domains
The app virtual host settings, with multiple domains separated by commas.
For example: 'www.example.com, example.com'
private java.lang.Boolean enableSsl
Whether to enable SSL for the app.
private SslConfiguration sslConfiguration
An SslConfiguration
object with the SSL configuration.
private SdkInternalMap<java.lang.String,java.lang.String> attributes
One or more user-defined key/value pairs to be added to the stack attributes.
private SdkInternalList<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)."
public void setStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public java.lang.String getStackId()
The stack ID.
public CreateAppRequest withStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public void setShortname(java.lang.String shortname)
The app's short name.
shortname
- The app's short name.public java.lang.String getShortname()
The app's short name.
public CreateAppRequest withShortname(java.lang.String shortname)
The app's short name.
shortname
- The app's short name.public void setName(java.lang.String name)
The app name.
name
- The app name.public java.lang.String getName()
The app name.
public CreateAppRequest withName(java.lang.String name)
The app name.
name
- The app name.public void setDescription(java.lang.String description)
A description of the app.
description
- A description of the app.public java.lang.String getDescription()
A description of the app.
public CreateAppRequest withDescription(java.lang.String description)
A description of the app.
description
- A description of the app.public java.util.List<DataSource> getDataSources()
The app's data source.
public void setDataSources(java.util.Collection<DataSource> dataSources)
The app's data source.
dataSources
- The app's data source.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.
dataSources
- The app's data source.public CreateAppRequest withDataSources(java.util.Collection<DataSource> dataSources)
The app's data source.
dataSources
- The app's data source.public void setType(java.lang.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
.
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
.AppType
public java.lang.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
.
other
.AppType
public CreateAppRequest withType(java.lang.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
.
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
.AppType
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
.
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
.AppType
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
.
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
.AppType
public void setAppSource(Source appSource)
A Source
object that specifies the app repository.
appSource
- A Source
object that specifies the app repository.public Source getAppSource()
A Source
object that specifies the app repository.
Source
object that specifies the app repository.public CreateAppRequest withAppSource(Source appSource)
A Source
object that specifies the app repository.
appSource
- A Source
object that specifies the app repository.public java.util.List<java.lang.String> getDomains()
The app virtual host settings, with multiple domains separated by commas.
For example: 'www.example.com, example.com'
'www.example.com, example.com'
public void setDomains(java.util.Collection<java.lang.String> domains)
The app virtual host settings, with multiple domains separated by commas.
For example: 'www.example.com, example.com'
domains
- The app virtual host settings, with multiple domains separated by
commas. For example: 'www.example.com, example.com'
public CreateAppRequest withDomains(java.lang.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.
domains
- The app virtual host settings, with multiple domains separated by
commas. For example: 'www.example.com, example.com'
public CreateAppRequest withDomains(java.util.Collection<java.lang.String> domains)
The app virtual host settings, with multiple domains separated by commas.
For example: 'www.example.com, example.com'
domains
- The app virtual host settings, with multiple domains separated by
commas. For example: 'www.example.com, example.com'
public void setEnableSsl(java.lang.Boolean enableSsl)
Whether to enable SSL for the app.
enableSsl
- Whether to enable SSL for the app.public java.lang.Boolean getEnableSsl()
Whether to enable SSL for the app.
public CreateAppRequest withEnableSsl(java.lang.Boolean enableSsl)
Whether to enable SSL for the app.
enableSsl
- Whether to enable SSL for the app.public java.lang.Boolean isEnableSsl()
Whether to enable SSL for the app.
public void setSslConfiguration(SslConfiguration sslConfiguration)
An SslConfiguration
object with the SSL configuration.
sslConfiguration
- An SslConfiguration
object with the SSL
configuration.public SslConfiguration getSslConfiguration()
An SslConfiguration
object with the SSL configuration.
SslConfiguration
object with the SSL
configuration.public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration)
An SslConfiguration
object with the SSL configuration.
sslConfiguration
- An SslConfiguration
object with the SSL
configuration.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
One or more user-defined key/value pairs to be added to the stack attributes.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.
attributes
- One or more user-defined key/value pairs to be added to the stack
attributes.public CreateAppRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.
attributes
- One or more user-defined key/value pairs to be added to the stack
attributes.public CreateAppRequest addAttributesEntry(java.lang.String key, java.lang.String value)
public CreateAppRequest clearAttributesEntries()
public java.util.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)."
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)."
public void setEnvironment(java.util.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)."
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)."
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)."
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.
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)."
public CreateAppRequest withEnvironment(java.util.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)."
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)."
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateAppRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()