public class App extends Object implements Serializable
A description of the app.
Constructor and Description |
---|
App() |
Modifier and Type | Method and Description |
---|---|
App |
addAttributesEntry(String key,
String value)
The stack attributes.
|
App |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
String |
getAppId()
The app ID.
|
Source |
getAppSource()
A
Source object that describes the app repository. |
Map<String,String> |
getAttributes()
The stack attributes.
|
String |
getCreatedAt()
When the app was created.
|
List<DataSource> |
getDataSources()
The app's data sources.
|
String |
getDescription()
A description of the app.
|
List<String> |
getDomains()
The app vhost 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 app stack ID.
|
String |
getType()
The app type.
|
int |
hashCode() |
Boolean |
isEnableSsl()
Whether to enable SSL for the app.
|
void |
setAppId(String appId)
The app ID.
|
void |
setAppSource(Source appSource)
A
Source object that describes the app repository. |
void |
setAttributes(Map<String,String> attributes)
The stack attributes.
|
void |
setCreatedAt(String createdAt)
When the app was created.
|
void |
setDataSources(Collection<DataSource> dataSources)
The app's data sources.
|
void |
setDescription(String description)
A description of the app.
|
void |
setDomains(Collection<String> domains)
The app vhost 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 app 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.
|
App |
withAppId(String appId)
The app ID.
|
App |
withAppSource(Source appSource)
A
Source object that describes the app repository. |
App |
withAttributes(Map<String,String> attributes)
The stack attributes.
|
App |
withCreatedAt(String createdAt)
When the app was created.
|
App |
withDataSources(Collection<DataSource> dataSources)
The app's data sources.
|
App |
withDataSources(DataSource... dataSources)
The app's data sources.
|
App |
withDescription(String description)
A description of the app.
|
App |
withDomains(Collection<String> domains)
The app vhost settings with multiple domains separated by commas.
|
App |
withDomains(String... domains)
The app vhost settings with multiple domains separated by commas.
|
App |
withEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.
|
App |
withName(String name)
The app name.
|
App |
withShortname(String shortname)
The app's short name.
|
App |
withSslConfiguration(SslConfiguration sslConfiguration)
An
SslConfiguration object with the SSL configuration. |
App |
withStackId(String stackId)
The app stack ID.
|
App |
withType(AppType type)
The app type.
|
App |
withType(String type)
The app type.
|
public String getAppId()
public void setAppId(String appId)
appId
- The app ID.public App withAppId(String appId)
Returns a reference to this object so that method calls can be chained together.
appId
- The app ID.public String getStackId()
public void setStackId(String stackId)
stackId
- The app stack ID.public App withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The app stack ID.public String getShortname()
public void setShortname(String shortname)
shortname
- The app's short name.public App 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 App 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 App 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 sources.public App withDataSources(DataSource... dataSources)
Returns a reference to this object so that method calls can be chained together.
dataSources
- The app's data sources.public App withDataSources(Collection<DataSource> dataSources)
Returns a reference to this object so that method calls can be chained together.
dataSources
- The app's data sources.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.AppType
public App 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.AppType
public void setType(AppType type)
Constraints:
Allowed Values: rails, php, nodejs, static, other
type
- The app type.AppType
public App 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.AppType
public Source getAppSource()
Source
object that describes the app repository.Source
object that describes the app repository.public void setAppSource(Source appSource)
Source
object that describes the app repository.appSource
- A Source
object that describes the app repository.public App withAppSource(Source appSource)
Source
object that describes the app repository.
Returns a reference to this object so that method calls can be chained together.
appSource
- A Source
object that describes 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 vhost settings with multiple domains separated by commas. For
example: 'www.example.com, example.com'
public App 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 vhost settings with multiple domains separated by commas. For
example: 'www.example.com, example.com'
public App 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 vhost 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 App 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 App 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
- The stack attributes.public App withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- The stack attributes.public App 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 App clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt
- When the app was created.public App withCreatedAt(String createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt
- When the app was created.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.