com.cloudcontrolled.api.model
Class Deployment

java.lang.Object
  extended by com.cloudcontrolled.api.model.AbstractModel
      extended by com.cloudcontrolled.api.model.Deployment

public class Deployment
extends AbstractModel

The deployment object contains information of your currently installed branch of your application. It also provides a raw overview of used resources concerning to that deployment.

Author:
Denis Neuling (denisneuling@gmail.com)

Constructor Summary
Deployment()
           Constructor for Deployment.
 
Method Summary
 BilledAddon[] getBilledAddons()
           getBilledAddons.
 BilledBoxes getBilledBoxes()
           getBilledBoxes.
 BillingAccount getBillingAccount()
           getBillingAccount.
 String getBranch()
           Getter for the field branch.
 String getDateCreated()
           getDateCreated.
 String getDateModified()
           getDateModified.
 String getDefaultSubdomain()
           getDefaultSubdomain.
 String getDepId()
           getDepId.
 int getMaxBoxes()
           getMaxBoxes.
 int getMinBoxes()
           getMinBoxes.
 String getName()
           Getter for the field name.
 Stack getStack()
           Getter for the field stack.
 String getState()
           Getter for the field state.
 String getStaticFiles()
           getStaticFiles.
 String getVersion()
           Getter for the field version.
 boolean isDefault()
           isDefault.
 void setBilledAddons(BilledAddon[] billed_addons)
           setBilledAddons.
 void setBilledBoxes(BilledBoxes billed_boxes)
           setBilledBoxes.
 void setBillingAccount(BillingAccount billing_account)
           setBillingAccount.
 void setBranch(String branch)
           Setter for the field branch.
 void setDateCreated(String date_created)
           setDateCreated.
 void setDateModified(String date_modified)
           setDateModified.
 void setDefault(boolean is_default)
           setDefault.
 void setDefaultSubdomain(String default_subdomain)
           setDefaultSubdomain.
 void setDepId(String dep_id)
           setDepId.
 void setMaxBoxes(int max_boxes)
           setMaxBoxes.
 void setMinBoxes(int min_boxes)
           setMinBoxes.
 void setName(String name)
           Setter for the field name.
 void setStack(Stack stack)
           Setter for the field stack.
 void setState(String state)
           Setter for the field state.
 void setStaticFiles(String static_files)
           setStaticFiles.
 void setVersion(String version)
           Setter for the field version.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Deployment

public Deployment()

Constructor for Deployment.

Method Detail

getName

public String getName()

Getter for the field name.

Returns:
name the name of the deployment

setName

public void setName(String name)

Setter for the field name.

Parameters:
name - the name to set

getDepId

public String getDepId()

getDepId.

Returns:
deploymentId the deployment id

setDepId

public void setDepId(String dep_id)

setDepId.

Parameters:
dep_id - the deployment id to set

getMaxBoxes

public int getMaxBoxes()

getMaxBoxes.

Returns:
maxBoxes the maximum boxes of the deployment

setMaxBoxes

public void setMaxBoxes(int max_boxes)

setMaxBoxes.

Parameters:
max_boxes - the max boxes to set

getMinBoxes

public int getMinBoxes()

getMinBoxes.

Returns:
minBoxes the min boxes of the concerning deployment

setMinBoxes

public void setMinBoxes(int min_boxes)

setMinBoxes.

Parameters:
min_boxes - the min boxes to set

getDateCreated

public String getDateCreated()

getDateCreated.

Returns:
created the datetime when the deployment was created

setDateCreated

public void setDateCreated(String date_created)

setDateCreated.

Parameters:
date_created - the date_created to set

getStaticFiles

public String getStaticFiles()

getStaticFiles.

Returns:
path the path of static files

setStaticFiles

public void setStaticFiles(String static_files)

setStaticFiles.

Parameters:
static_files - the path of static files to set

getStack

public Stack getStack()

Getter for the field stack.

Returns:
stack the stack which belongs to the deployment

setStack

public void setStack(Stack stack)

Setter for the field stack.

Parameters:
stack - the stack to set

getBilledAddons

public BilledAddon[] getBilledAddons()

getBilledAddons.

Returns:
billedAddons the billed add-ons of the concerning deployment

setBilledAddons

public void setBilledAddons(BilledAddon[] billed_addons)

setBilledAddons.

Parameters:
billed_addons - the billed add-ons to set

getBilledBoxes

public BilledBoxes getBilledBoxes()

getBilledBoxes.

Returns:
billedBoxes the billedBoxes of the deployment

setBilledBoxes

public void setBilledBoxes(BilledBoxes billed_boxes)

setBilledBoxes.

Parameters:
billed_boxes - the billed boxes to set

getState

public String getState()

Getter for the field state.

Returns:
state the state of the deployment

setState

public void setState(String state)

Setter for the field state.

Parameters:
state - the state to set

getDefaultSubdomain

public String getDefaultSubdomain()

getDefaultSubdomain.

Returns:
domain the default subdomain on which the deployment is reachable by default

setDefaultSubdomain

public void setDefaultSubdomain(String default_subdomain)

setDefaultSubdomain.

Parameters:
default_subdomain - the default subdoman to set

isDefault

public boolean isDefault()

isDefault.

Returns:
isDefault the boolean value which specifies whether the deployment is the default one

setDefault

public void setDefault(boolean is_default)

setDefault.

Parameters:
is_default - the boolean value to set

getBranch

public String getBranch()

Getter for the field branch.

Returns:
branch the scm branch of the deployment

setBranch

public void setBranch(String branch)

Setter for the field branch.

Parameters:
branch - the branch to set

getVersion

public String getVersion()

Getter for the field version.

Returns:
version the version or commit id of the deployment

setVersion

public void setVersion(String version)

Setter for the field version.

Parameters:
version - the version to set

getDateModified

public String getDateModified()

getDateModified.

Returns:
modified the datetime when the deployment was modified at least

setDateModified

public void setDateModified(String date_modified)

setDateModified.

Parameters:
date_modified - the date modified to set

getBillingAccount

public BillingAccount getBillingAccount()

getBillingAccount.

Returns:
billingAccount the concerning billing accoun of that deployment

setBillingAccount

public void setBillingAccount(BillingAccount billing_account)

setBillingAccount.

Parameters:
billing_account - the billing account to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.