Class CloudServiceProperties

java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceProperties

public final class CloudServiceProperties extends Object
Cloud service properties.
  • Constructor Details

    • CloudServiceProperties

      public CloudServiceProperties()
  • Method Details

    • packageUrl

      public String packageUrl()
      Get the packageUrl property: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.
      Returns:
      the packageUrl value.
    • withPackageUrl

      public CloudServiceProperties withPackageUrl(String packageUrl)
      Set the packageUrl property: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.
      Parameters:
      packageUrl - the packageUrl value to set.
      Returns:
      the CloudServiceProperties object itself.
    • configuration

      public String configuration()
      Get the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.
      Returns:
      the configuration value.
    • withConfiguration

      public CloudServiceProperties withConfiguration(String configuration)
      Set the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.
      Parameters:
      configuration - the configuration value to set.
      Returns:
      the CloudServiceProperties object itself.
    • configurationUrl

      public String configurationUrl()
      Get the configurationUrl property: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.
      Returns:
      the configurationUrl value.
    • withConfigurationUrl

      public CloudServiceProperties withConfigurationUrl(String configurationUrl)
      Set the configurationUrl property: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.
      Parameters:
      configurationUrl - the configurationUrl value to set.
      Returns:
      the CloudServiceProperties object itself.
    • startCloudService

      public Boolean startCloudService()
      Get the startCloudService property: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.
      Returns:
      the startCloudService value.
    • withStartCloudService

      public CloudServiceProperties withStartCloudService(Boolean startCloudService)
      Set the startCloudService property: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.
      Parameters:
      startCloudService - the startCloudService value to set.
      Returns:
      the CloudServiceProperties object itself.
    • allowModelOverride

      public Boolean allowModelOverride()
      Get the allowModelOverride property: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`.
      Returns:
      the allowModelOverride value.
    • withAllowModelOverride

      public CloudServiceProperties withAllowModelOverride(Boolean allowModelOverride)
      Set the allowModelOverride property: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`.
      Parameters:
      allowModelOverride - the allowModelOverride value to set.
      Returns:
      the CloudServiceProperties object itself.
    • upgradeMode

      public CloudServiceUpgradeMode upgradeMode()
      Get the upgradeMode property: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.
      Returns:
      the upgradeMode value.
    • withUpgradeMode

      public CloudServiceProperties withUpgradeMode(CloudServiceUpgradeMode upgradeMode)
      Set the upgradeMode property: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.
      Parameters:
      upgradeMode - the upgradeMode value to set.
      Returns:
      the CloudServiceProperties object itself.
    • roleProfile

      public CloudServiceRoleProfile roleProfile()
      Get the roleProfile property: Describes the role profile for the cloud service.
      Returns:
      the roleProfile value.
    • withRoleProfile

      public CloudServiceProperties withRoleProfile(CloudServiceRoleProfile roleProfile)
      Set the roleProfile property: Describes the role profile for the cloud service.
      Parameters:
      roleProfile - the roleProfile value to set.
      Returns:
      the CloudServiceProperties object itself.
    • osProfile

      public CloudServiceOsProfile osProfile()
      Get the osProfile property: Describes the OS profile for the cloud service.
      Returns:
      the osProfile value.
    • withOsProfile

      public CloudServiceProperties withOsProfile(CloudServiceOsProfile osProfile)
      Set the osProfile property: Describes the OS profile for the cloud service.
      Parameters:
      osProfile - the osProfile value to set.
      Returns:
      the CloudServiceProperties object itself.
    • networkProfile

      public CloudServiceNetworkProfile networkProfile()
      Get the networkProfile property: Network Profile for the cloud service.
      Returns:
      the networkProfile value.
    • withNetworkProfile

      public CloudServiceProperties withNetworkProfile(CloudServiceNetworkProfile networkProfile)
      Set the networkProfile property: Network Profile for the cloud service.
      Parameters:
      networkProfile - the networkProfile value to set.
      Returns:
      the CloudServiceProperties object itself.
    • extensionProfile

      public CloudServiceExtensionProfile extensionProfile()
      Get the extensionProfile property: Describes a cloud service extension profile.
      Returns:
      the extensionProfile value.
    • withExtensionProfile

      public CloudServiceProperties withExtensionProfile(CloudServiceExtensionProfile extensionProfile)
      Set the extensionProfile property: Describes a cloud service extension profile.
      Parameters:
      extensionProfile - the extensionProfile value to set.
      Returns:
      the CloudServiceProperties object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning state, which only appears in the response.
      Returns:
      the provisioningState value.
    • uniqueId

      public String uniqueId()
      Get the uniqueId property: The unique identifier for the cloud service.
      Returns:
      the uniqueId value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.