Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticbeanstalk.model
Class CreateApplicationVersionRequest

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

public class CreateApplicationVersionRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateApplicationVersion operation.

Creates an application version for the specified application.

NOTE:Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.

See Also:
AWSElasticBeanstalk.createApplicationVersion(CreateApplicationVersionRequest), Serialized Form

Constructor Summary
CreateApplicationVersionRequest()
          Default constructor for a new CreateApplicationVersionRequest object.
CreateApplicationVersionRequest(String applicationName, String versionLabel)
          Constructs a new CreateApplicationVersionRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getApplicationName()
          The name of the application.
 Boolean getAutoCreateApplication()
          Determines how the system behaves if the specified application for this version does not already exist:
 String getDescription()
          Describes this version.
 S3Location getSourceBundle()
          The Amazon S3 bucket and key that identify the location of the source bundle for this version.
 String getVersionLabel()
          A label identifying this version.
 int hashCode()
           
 Boolean isAutoCreateApplication()
          Determines how the system behaves if the specified application for this version does not already exist:
 void setApplicationName(String applicationName)
          The name of the application.
 void setAutoCreateApplication(Boolean autoCreateApplication)
          Determines how the system behaves if the specified application for this version does not already exist:
 void setDescription(String description)
          Describes this version.
 void setSourceBundle(S3Location sourceBundle)
          The Amazon S3 bucket and key that identify the location of the source bundle for this version.
 void setVersionLabel(String versionLabel)
          A label identifying this version.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateApplicationVersionRequest withApplicationName(String applicationName)
          The name of the application.
 CreateApplicationVersionRequest withAutoCreateApplication(Boolean autoCreateApplication)
          Determines how the system behaves if the specified application for this version does not already exist:
 CreateApplicationVersionRequest withDescription(String description)
          Describes this version.
 CreateApplicationVersionRequest withSourceBundle(S3Location sourceBundle)
          The Amazon S3 bucket and key that identify the location of the source bundle for this version.
 CreateApplicationVersionRequest withVersionLabel(String versionLabel)
          A label identifying this version.
 
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

CreateApplicationVersionRequest

public CreateApplicationVersionRequest()
Default constructor for a new CreateApplicationVersionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateApplicationVersionRequest

public CreateApplicationVersionRequest(String applicationName,
                                       String versionLabel)
Constructs a new CreateApplicationVersionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
applicationName - The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.
versionLabel - A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Method Detail

getApplicationName

public String getApplicationName()
The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Returns:
The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

setApplicationName

public void setApplicationName(String applicationName)
The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Parameters:
applicationName - The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

withApplicationName

public CreateApplicationVersionRequest withApplicationName(String applicationName)
The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

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

Constraints:
Length: 1 - 100

Parameters:
applicationName - The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.
Returns:
A reference to this updated object so that method calls can be chained together.

getVersionLabel

public String getVersionLabel()
A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Returns:
A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.


setVersionLabel

public void setVersionLabel(String versionLabel)
A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Constraints:
Length: 1 - 100

Parameters:
versionLabel - A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.


withVersionLabel

public CreateApplicationVersionRequest withVersionLabel(String versionLabel)
A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

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

Constraints:
Length: 1 - 100

Parameters:
versionLabel - A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Describes this version.

Constraints:
Length: 0 - 200

Returns:
Describes this version.

setDescription

public void setDescription(String description)
Describes this version.

Constraints:
Length: 0 - 200

Parameters:
description - Describes this version.

withDescription

public CreateApplicationVersionRequest withDescription(String description)
Describes this version.

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

Constraints:
Length: 0 - 200

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

getSourceBundle

public S3Location getSourceBundle()
The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

Returns:
The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.


setSourceBundle

public void setSourceBundle(S3Location sourceBundle)
The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

Parameters:
sourceBundle - The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.


withSourceBundle

public CreateApplicationVersionRequest withSourceBundle(S3Location sourceBundle)
The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

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

Parameters:
sourceBundle - The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

Returns:
A reference to this updated object so that method calls can be chained together.

isAutoCreateApplication

public Boolean isAutoCreateApplication()
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

Returns:
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false


setAutoCreateApplication

public void setAutoCreateApplication(Boolean autoCreateApplication)
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

Parameters:
autoCreateApplication - Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false


withAutoCreateApplication

public CreateApplicationVersionRequest withAutoCreateApplication(Boolean autoCreateApplication)
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

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

Parameters:
autoCreateApplication - Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

Returns:
A reference to this updated object so that method calls can be chained together.

getAutoCreateApplication

public Boolean getAutoCreateApplication()
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

Returns:
Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false


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.