Class App
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.App
-
- All Implemented Interfaces:
Serializable,Cloneable
public class App extends Object implements Serializable, Cloneable
A description of the app.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description App()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppaddAttributesEntry(String key, String value)AppclearAttributesEntries()Removes all the entries added into Attributes.Appclone()booleanequals(Object obj)StringgetAppId()The app ID.SourcegetAppSource()ASourceobject that describes the app repository.Map<String,String>getAttributes()The stack attributes.StringgetCreatedAt()When the app was created.List<DataSource>getDataSources()The app's data sources.StringgetDescription()A description of the app.List<String>getDomains()The app vhost settings with multiple domains separated by commas.BooleangetEnableSsl()Whether to enable SSL for the app.List<EnvironmentVariable>getEnvironment()An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.StringgetName()The app name.StringgetShortname()The app's short name.SslConfigurationgetSslConfiguration()AnSslConfigurationobject with the SSL configuration.StringgetStackId()The app stack ID.StringgetType()The app type.inthashCode()BooleanisEnableSsl()Whether to enable SSL for the app.voidsetAppId(String appId)The app ID.voidsetAppSource(Source appSource)ASourceobject that describes the app repository.voidsetAttributes(Map<String,String> attributes)The stack attributes.voidsetCreatedAt(String createdAt)When the app was created.voidsetDataSources(Collection<DataSource> dataSources)The app's data sources.voidsetDescription(String description)A description of the app.voidsetDomains(Collection<String> domains)The app vhost 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.voidsetName(String name)The app name.voidsetShortname(String shortname)The app's short name.voidsetSslConfiguration(SslConfiguration sslConfiguration)AnSslConfigurationobject with the SSL configuration.voidsetStackId(String stackId)The app stack ID.voidsetType(AppType type)The app type.voidsetType(String type)The app type.StringtoString()Returns a string representation of this object; useful for testing and debugging.AppwithAppId(String appId)The app ID.AppwithAppSource(Source appSource)ASourceobject that describes the app repository.AppwithAttributes(Map<String,String> attributes)The stack attributes.AppwithCreatedAt(String createdAt)When the app was created.AppwithDataSources(DataSource... dataSources)The app's data sources.AppwithDataSources(Collection<DataSource> dataSources)The app's data sources.AppwithDescription(String description)A description of the app.AppwithDomains(String... domains)The app vhost settings with multiple domains separated by commas.AppwithDomains(Collection<String> domains)The app vhost settings with multiple domains separated by commas.AppwithEnableSsl(Boolean enableSsl)Whether to enable SSL for the app.AppwithEnvironment(EnvironmentVariable... environment)An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.AppwithEnvironment(Collection<EnvironmentVariable> environment)An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.AppwithName(String name)The app name.AppwithShortname(String shortname)The app's short name.AppwithSslConfiguration(SslConfiguration sslConfiguration)AnSslConfigurationobject with the SSL configuration.AppwithStackId(String stackId)The app stack ID.AppwithType(AppType type)The app type.AppwithType(String type)The app type.
-
-
-
Method Detail
-
setAppId
public void setAppId(String appId)
The app ID.
- Parameters:
appId- The app ID.
-
getAppId
public String getAppId()
The app ID.
- Returns:
- The app ID.
-
withAppId
public App withAppId(String appId)
The app ID.
- Parameters:
appId- The app ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
public void setStackId(String stackId)
The app stack ID.
- Parameters:
stackId- The app stack ID.
-
getStackId
public String getStackId()
The app stack ID.
- Returns:
- The app stack ID.
-
withStackId
public App withStackId(String stackId)
The app stack ID.
- Parameters:
stackId- The app stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShortname
public void setShortname(String shortname)
The app's short name.
- Parameters:
shortname- The app's short name.
-
getShortname
public String getShortname()
The app's short name.
- Returns:
- The app's short name.
-
withShortname
public App withShortname(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.
-
setName
public void setName(String name)
The app name.
- Parameters:
name- The app name.
-
getName
public String getName()
The app name.
- Returns:
- The app name.
-
withName
public App withName(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.
-
setDescription
public void setDescription(String description)
A description of the app.
- Parameters:
description- A description of the app.
-
getDescription
public String getDescription()
A description of the app.
- Returns:
- A description of the app.
-
withDescription
public App withDescription(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.
-
getDataSources
public List<DataSource> getDataSources()
The app's data sources.
- Returns:
- The app's data sources.
-
setDataSources
public void setDataSources(Collection<DataSource> dataSources)
The app's data sources.
- Parameters:
dataSources- The app's data sources.
-
withDataSources
public App withDataSources(DataSource... dataSources)
The app's data sources.
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 sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDataSources
public App withDataSources(Collection<DataSource> dataSources)
The app's data sources.
- Parameters:
dataSources- The app's data sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The app type.
- Parameters:
type- The app type.- See Also:
AppType
-
withType
public App withType(String type)
The app type.
- Parameters:
type- The app type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppType
-
setType
public void setType(AppType type)
The app type.
- Parameters:
type- The app type.- See Also:
AppType
-
withType
public App withType(AppType type)
The app type.
- Parameters:
type- The app type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppType
-
setAppSource
public void setAppSource(Source appSource)
A
Sourceobject that describes the app repository.- Parameters:
appSource- ASourceobject that describes the app repository.
-
getAppSource
public Source getAppSource()
A
Sourceobject that describes the app repository.- Returns:
- A
Sourceobject that describes the app repository.
-
withAppSource
public App withAppSource(Source appSource)
A
Sourceobject that describes the app repository.- Parameters:
appSource- ASourceobject that describes the app repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDomains
public List<String> getDomains()
The app vhost settings with multiple domains separated by commas. For example:
'www.example.com, example.com'- Returns:
- The app vhost settings with multiple domains separated by commas.
For example:
'www.example.com, example.com'
-
setDomains
public void setDomains(Collection<String> domains)
The app vhost settings with multiple domains separated by commas. For example:
'www.example.com, example.com'- Parameters:
domains- The app vhost settings with multiple domains separated by commas. For example:'www.example.com, example.com'
-
withDomains
public App withDomains(String... domains)
The app vhost 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 vhost 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
public App withDomains(Collection<String> domains)
The app vhost settings with multiple domains separated by commas. For example:
'www.example.com, example.com'- Parameters:
domains- The app vhost 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
public void setEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.
- Parameters:
enableSsl- Whether to enable SSL for the app.
-
getEnableSsl
public Boolean getEnableSsl()
Whether to enable SSL for the app.
- Returns:
- Whether to enable SSL for the app.
-
withEnableSsl
public App withEnableSsl(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.
-
isEnableSsl
public Boolean isEnableSsl()
Whether to enable SSL for the app.
- Returns:
- Whether to enable SSL for the app.
-
setSslConfiguration
public void setSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfigurationobject with the SSL configuration.- Parameters:
sslConfiguration- AnSslConfigurationobject with the SSL configuration.
-
getSslConfiguration
public SslConfiguration getSslConfiguration()
An
SslConfigurationobject with the SSL configuration.- Returns:
- An
SslConfigurationobject with the SSL configuration.
-
withSslConfiguration
public App withSslConfiguration(SslConfiguration sslConfiguration)
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
public Map<String,String> getAttributes()
The stack attributes.
- Returns:
- The stack attributes.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
The stack attributes.
- Parameters:
attributes- The stack attributes.
-
withAttributes
public App withAttributes(Map<String,String> attributes)
The stack attributes.
- Parameters:
attributes- The stack attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clearAttributesEntries
public App clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(String createdAt)
When the app was created.
- Parameters:
createdAt- When the app was created.
-
getCreatedAt
public String getCreatedAt()
When the app was created.
- Returns:
- When the app was created.
-
withCreatedAt
public App withCreatedAt(String createdAt)
When the app was created.
- Parameters:
createdAt- When the app was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEnvironment
public List<EnvironmentVariable> 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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. - 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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message.
-
setEnvironment
public void setEnvironment(Collection<EnvironmentVariable> environment)
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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. - 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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message.
-
withEnvironment
public App withEnvironment(EnvironmentVariable... environment)
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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. 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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. - Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEnvironment
public App withEnvironment(Collection<EnvironmentVariable> environment)
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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. - 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 instances. 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, but if you do exceed it, you will cause an exception (API) with an "Environment: is too large (maximum is 10KB)" message. - Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-