Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class CreateAppRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.CreateAppRequest
All Implemented Interfaces:
Serializable

public class CreateAppRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateApp operation.

Creates an app for a specified stack. For more information, see Creating Apps .

See Also:
AWSOpsWorks.createApp(CreateAppRequest), Serialized Form

Constructor Summary
CreateAppRequest()
           
 
Method Summary
 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 bag.
 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 bag.
 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 bag.
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateAppRequest

public CreateAppRequest()
Method Detail

getStackId

public String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public CreateAppRequest withStackId(String stackId)
The stack ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackId - The stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getShortname

public String getShortname()
The app's short name.

Returns:
The app's short name.

setShortname

public void setShortname(String shortname)
The app's short name.

Parameters:
shortname - The app's short name.

withShortname

public CreateAppRequest withShortname(String shortname)
The app's short name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
shortname - The app's short name.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
The app name.

Returns:
The app name.

setName

public void setName(String name)
The app name.

Parameters:
name - The app name.

withName

public CreateAppRequest withName(String name)
The app name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The app name.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
A description of the app.

Returns:
A description of the app.

setDescription

public void setDescription(String description)
A description of the app.

Parameters:
description - A description of the app.

withDescription

public CreateAppRequest withDescription(String description)
A description of the app.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - A description of the app.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

public String getType()
The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. OpsWorks deploys an application to those instances that are members of the corresponding layer.

Constraints:
Allowed Values: rails, php, nodejs, static, other

Returns:
The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. OpsWorks deploys an application to those instances that are members of the corresponding layer.
See Also:
AppType

setType

public void setType(String type)
The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. OpsWorks deploys an application to those instances that are members of the corresponding layer.

Constraints:
Allowed Values: rails, php, nodejs, static, 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. OpsWorks deploys an application to those instances that are members of the corresponding layer.
See Also:
AppType

withType

public CreateAppRequest withType(String type)
The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. OpsWorks deploys an application to those instances that are members of the corresponding layer.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: rails, php, nodejs, static, 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. OpsWorks deploys an application to those instances that are members of the corresponding layer.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AppType

setType

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. OpsWorks deploys an application to those instances that are members of the corresponding layer.

Constraints:
Allowed Values: rails, php, nodejs, static, 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. OpsWorks deploys an application to those instances that are members of the corresponding layer.
See Also:
AppType

withType

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. OpsWorks deploys an application to those instances that are members of the corresponding layer.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: rails, php, nodejs, static, 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. OpsWorks deploys an application to those instances that are members of the corresponding layer.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AppType

getAppSource

public Source getAppSource()
A Source object that specifies the app repository.

Returns:
A Source object that specifies the app repository.

setAppSource

public void setAppSource(Source appSource)
A Source object that specifies the app repository.

Parameters:
appSource - A Source object that specifies the app repository.

withAppSource

public CreateAppRequest withAppSource(Source appSource)
A Source object that specifies the app repository.

Returns a reference to this object so that method calls can be chained together.

Parameters:
appSource - A Source object that specifies the app repository.
Returns:
A reference to this updated object so that method calls can be chained together.

getDomains

public List<String> getDomains()
The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

Returns:
The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

setDomains

public void setDomains(Collection<String> domains)
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

public CreateAppRequest withDomains(String... domains)
The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

Returns a reference to this object so that method calls can be chained together.

Parameters:
domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
Returns:
A reference to this updated object so that method calls can be chained together.

withDomains

public CreateAppRequest withDomains(Collection<String> domains)
The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

Returns a reference to this object so that method calls can be chained together.

Parameters:
domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
Returns:
A reference to this updated 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.

setEnableSsl

public void setEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.

Parameters:
enableSsl - Whether to enable SSL for the app.

withEnableSsl

public CreateAppRequest withEnableSsl(Boolean enableSsl)
Whether to enable SSL for the app.

Returns a reference to this object so that method calls can be chained together.

Parameters:
enableSsl - Whether to enable SSL for the app.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnableSsl

public Boolean getEnableSsl()
Whether to enable SSL for the app.

Returns:
Whether to enable SSL for the app.

getSslConfiguration

public SslConfiguration getSslConfiguration()
An SslConfiguration object with the SSL configuration.

Returns:
An SslConfiguration object with the SSL configuration.

setSslConfiguration

public void setSslConfiguration(SslConfiguration sslConfiguration)
An SslConfiguration object with the SSL configuration.

Parameters:
sslConfiguration - An SslConfiguration object with the SSL configuration.

withSslConfiguration

public CreateAppRequest withSslConfiguration(SslConfiguration sslConfiguration)
An SslConfiguration object with the SSL configuration.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sslConfiguration - An SslConfiguration object with the SSL configuration.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributes

public Map<String,String> getAttributes()
One or more user-defined key/value pairs to be added to the stack attributes bag.

Returns:
One or more user-defined key/value pairs to be added to the stack attributes bag.

setAttributes

public void setAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes bag.

Parameters:
attributes - One or more user-defined key/value pairs to be added to the stack attributes bag.

withAttributes

public CreateAppRequest withAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes bag.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributes - One or more user-defined key/value pairs to be added to the stack attributes bag.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.