Class CloudServiceProperties
java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceProperties
Cloud service properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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.Get the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.Get the configurationUrl property: Specifies a URL that refers to the location of the service configuration in the Blob service.Get the extensionProfile property: Describes a cloud service extension profile.Get the networkProfile property: Network Profile for the cloud service.Get the osProfile property: Describes the OS profile for the cloud service.Get the packageUrl property: Specifies a URL that refers to the location of the service package in the Blob service.Get the provisioningState property: The provisioning state, which only appears in the response.Get the roleProfile property: Describes the role profile for the cloud service.Get the startCloudService property: (Optional) Indicates whether to start the cloud service immediately after it is created.uniqueId()Get the uniqueId property: The unique identifier for the cloud service.Get the upgradeMode property: Update mode for the cloud service.voidvalidate()Validates the instance.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.withConfiguration(String configuration) Set the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.withConfigurationUrl(String configurationUrl) Set the configurationUrl property: Specifies a URL that refers to the location of the service configuration in the Blob service.withExtensionProfile(CloudServiceExtensionProfile extensionProfile) Set the extensionProfile property: Describes a cloud service extension profile.withNetworkProfile(CloudServiceNetworkProfile networkProfile) Set the networkProfile property: Network Profile for the cloud service.withOsProfile(CloudServiceOsProfile osProfile) Set the osProfile property: Describes the OS profile for the cloud service.withPackageUrl(String packageUrl) Set the packageUrl property: Specifies a URL that refers to the location of the service package in the Blob service.withRoleProfile(CloudServiceRoleProfile roleProfile) Set the roleProfile property: Describes the role profile for the cloud service.withStartCloudService(Boolean startCloudService) Set the startCloudService property: (Optional) Indicates whether to start the cloud service immediately after it is created.withUpgradeMode(CloudServiceUpgradeMode upgradeMode) Set the upgradeMode property: Update mode for the cloud service.
-
Constructor Details
-
CloudServiceProperties
public CloudServiceProperties()Creates an instance of CloudServiceProperties class.
-
-
Method Details
-
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
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
Get the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.- Returns:
- the configuration value.
-
withConfiguration
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
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
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
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
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
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
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
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
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
Get the roleProfile property: Describes the role profile for the cloud service.- Returns:
- the roleProfile value.
-
withRoleProfile
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
Get the osProfile property: Describes the OS profile for the cloud service.- Returns:
- the osProfile value.
-
withOsProfile
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
Get the networkProfile property: Network Profile for the cloud service.- Returns:
- the networkProfile value.
-
withNetworkProfile
Set the networkProfile property: Network Profile for the cloud service.- Parameters:
networkProfile- the networkProfile value to set.- Returns:
- the CloudServiceProperties object itself.
-
extensionProfile
Get the extensionProfile property: Describes a cloud service extension profile.- Returns:
- the extensionProfile value.
-
withExtensionProfile
Set the extensionProfile property: Describes a cloud service extension profile.- Parameters:
extensionProfile- the extensionProfile value to set.- Returns:
- the CloudServiceProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
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.
-