public class CreateAppRequest extends AmazonWebServiceRequest implements Serializable
CreateApp operation
.
Creates an app for a specified stack. For more information, see Creating Apps .
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
CreateAppRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAppRequest |
addAttributesEntry(String key,
String value)
One or more user-defined key/value pairs to be added to the stack
attributes.
|
CreateAppRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Source |
getAppSource()
A
Source object that specifies the app repository. |
Map<String,String> |
getAttributes()
One or more user-defined key/value pairs to be added to the stack
attributes.
|
List<DataSource> |
getDataSources()
The app's data source.
|
String |
getDescription()
A description of the app.
|
List<String> |
getDomains()
The app virtual host settings, with multiple domains separated by
commas.
|
Boolean |
getEnableSsl()
Whether to enable SSL for the app.
|
String |
getName()
The app name.
|
String |
getShortname()
The app's short name.
|
SslConfiguration |
getSslConfiguration()
An
SslConfiguration object with the SSL configuration. |
String |
getStackId()
The stack ID.
|
String |
getType()
The app type.
|
int |
hashCode() |
Boolean |
isEnableSsl()
Whether to enable SSL for the app.
|
void |
setAppSource(Source appSource)
A
Source object that specifies the app repository. |
void |
setAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes.
|
void |
setDataSources(Collection<DataSource> dataSources)
The app's data source.
|
void |
setDescription(String description)
A description of the app.
|
void |
setDomains(Collection<String> domains)
The app virtual host settings, with multiple domains separated by
commas.
|
void |
setEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.
|
void |
setName(String name)
The app name.
|
void |
setShortname(String shortname)
The app's short name.
|
void |
setSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfiguration object with the SSL configuration. |
void |
setStackId(String stackId)
The stack ID.
|
void |
setType(AppType type)
The app type.
|
void |
setType(String type)
The app type.
|
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(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes.
|
CreateAppRequest |
withDataSources(Collection<DataSource> dataSources)
The app's data source.
|
CreateAppRequest |
withDataSources(DataSource... dataSources)
The app's data source.
|
CreateAppRequest |
withDescription(String description)
A description of the app.
|
CreateAppRequest |
withDomains(Collection<String> domains)
The app virtual host settings, with multiple domains separated by
commas.
|
CreateAppRequest |
withDomains(String... domains)
The app virtual host settings, with multiple domains separated by
commas.
|
CreateAppRequest |
withEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.
|
CreateAppRequest |
withName(String name)
The app name.
|
CreateAppRequest |
withShortname(String shortname)
The app's short name.
|
CreateAppRequest |
withSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfiguration object with the SSL configuration. |
CreateAppRequest |
withStackId(String stackId)
The stack ID.
|
CreateAppRequest |
withType(AppType type)
The app type.
|
CreateAppRequest |
withType(String type)
The app type.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackId()
public void setStackId(String stackId)
stackId
- The stack ID.public CreateAppRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The stack ID.public String getShortname()
public void setShortname(String shortname)
shortname
- The app's short name.public CreateAppRequest withShortname(String shortname)
Returns a reference to this object so that method calls can be chained together.
shortname
- The app's short name.public String getName()
public void setName(String name)
name
- The app name.public CreateAppRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The app name.public String getDescription()
public void setDescription(String description)
description
- A description of the app.public CreateAppRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description of the app.public List<DataSource> getDataSources()
public void setDataSources(Collection<DataSource> dataSources)
dataSources
- The app's data source.public CreateAppRequest withDataSources(DataSource... dataSources)
Returns a reference to this object so that method calls can be chained together.
dataSources
- The app's data source.public CreateAppRequest withDataSources(Collection<DataSource> dataSources)
Returns a reference to this object so that method calls can be chained together.
dataSources
- The app's data source.public String getType()
Constraints:
Allowed Values: rails, php, nodejs, static, other
AppType
public void setType(String type)
Constraints:
Allowed Values: rails, php, nodejs, static, 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.AppType
public CreateAppRequest withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: rails, php, nodejs, static, 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.AppType
public void setType(AppType type)
Constraints:
Allowed Values: rails, php, nodejs, static, 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.AppType
public CreateAppRequest withType(AppType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: rails, php, nodejs, static, 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.AppType
public Source getAppSource()
Source
object that specifies the app repository.Source
object that specifies the app repository.public void setAppSource(Source appSource)
Source
object that specifies the app repository.appSource
- A Source
object that specifies the app repository.public CreateAppRequest withAppSource(Source appSource)
Source
object that specifies the app repository.
Returns a reference to this object so that method calls can be chained together.
appSource
- A Source
object that specifies the app repository.public List<String> getDomains()
'www.example.com, example.com'
'www.example.com, example.com'
public void setDomains(Collection<String> domains)
'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(String... domains)
'www.example.com, example.com'
Returns a reference to this object so that method calls can be chained together.
domains
- The app virtual host settings, with multiple domains separated by
commas. For example: 'www.example.com, example.com'
public CreateAppRequest withDomains(Collection<String> domains)
'www.example.com, example.com'
Returns a reference to this object so that method calls can be chained together.
domains
- The app virtual host settings, with multiple domains separated by
commas. For example: 'www.example.com, example.com'
public Boolean isEnableSsl()
public void setEnableSsl(Boolean enableSsl)
enableSsl
- Whether to enable SSL for the app.public CreateAppRequest withEnableSsl(Boolean enableSsl)
Returns a reference to this object so that method calls can be chained together.
enableSsl
- Whether to enable SSL for the app.public Boolean getEnableSsl()
public SslConfiguration getSslConfiguration()
SslConfiguration
object with the SSL configuration.SslConfiguration
object with the SSL configuration.public void setSslConfiguration(SslConfiguration sslConfiguration)
SslConfiguration
object with the SSL configuration.sslConfiguration
- An SslConfiguration
object with the SSL configuration.public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration)
SslConfiguration
object with the SSL configuration.
Returns a reference to this object so that method calls can be chained together.
sslConfiguration
- An SslConfiguration
object with the SSL configuration.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- One or more user-defined key/value pairs to be added to the stack
attributes.public CreateAppRequest withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- One or more user-defined key/value pairs to be added to the stack
attributes.public CreateAppRequest addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into Attributes.public CreateAppRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.