org.soyatec.windowsazure.management
Class DeploymentConfiguration

java.lang.Object
  extended by org.soyatec.windowsazure.management.Configuration
      extended by org.soyatec.windowsazure.management.DeploymentConfiguration

public class DeploymentConfiguration
extends Configuration

This class defines the configuration of a deployment.

Author:
xiaowei.ye@soyatec.com

Constructor Summary
DeploymentConfiguration()
          Construct a new DeploymentConfiguration object.
DeploymentConfiguration(java.lang.String name, java.lang.String pkgUrl, BlobStream stream, java.lang.String label)
          Construct a new DeploymentConfiguration object.
DeploymentConfiguration(java.lang.String name, java.lang.String pkgUrl, java.lang.String configurefileUrl, java.lang.String label)
          Construct a new DeploymentConfiguration object.
 
Method Summary
 java.lang.String getBase64Label()
           
 BlobStream getConfigurationFileStream()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 boolean isStartDeployment()
           
 boolean isTreatWarningsAsError()
           
 void setConfigurationFileStream(BlobStream configurationFileStream)
           
 void setLabel(java.lang.String label)
           
 void setName(java.lang.String name)
           
 void setStartDeployment(boolean startDeployment)
           
 void setTreatWarningsAsError(boolean treatWarningsAsError)
           
 void validate()
          Validate whether the name, packageBlobUrl, configurationFileUrl or label of the DeploymentConfiguration is empty.
 
Methods inherited from class org.soyatec.windowsazure.management.Configuration
getBase64ConfigurationFile, getConfigurationFileUrl, getPackageBlobUrl, setConfigurationFileUrl, setPackageBlobUrl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentConfiguration

public DeploymentConfiguration()
Construct a new DeploymentConfiguration object.


DeploymentConfiguration

public DeploymentConfiguration(java.lang.String name,
                               java.lang.String pkgUrl,
                               java.lang.String configurefileUrl,
                               java.lang.String label)
Construct a new DeploymentConfiguration object.


DeploymentConfiguration

public DeploymentConfiguration(java.lang.String name,
                               java.lang.String pkgUrl,
                               BlobStream stream,
                               java.lang.String label)
Construct a new DeploymentConfiguration object.

Method Detail

getConfigurationFileStream

public BlobStream getConfigurationFileStream()

setConfigurationFileStream

public void setConfigurationFileStream(BlobStream configurationFileStream)

validate

public void validate()
Validate whether the name, packageBlobUrl, configurationFileUrl or label of the DeploymentConfiguration is empty.


getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getLabel

public java.lang.String getLabel()
Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - the label to set

getBase64Label

public java.lang.String getBase64Label()
Returns:
the base64Label

setStartDeployment

public void setStartDeployment(boolean startDeployment)

isStartDeployment

public boolean isStartDeployment()

setTreatWarningsAsError

public void setTreatWarningsAsError(boolean treatWarningsAsError)

isTreatWarningsAsError

public boolean isTreatWarningsAsError()