CloudServiceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CloudServiceProperties
- com.
Implements
public final class CloudServiceProperties
implements JsonSerializable<CloudServiceProperties>
Cloud service properties.
Constructor Summary
Constructor | Description |
---|---|
CloudServiceProperties() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowModelOverride()
Get the allow |
String |
configuration()
Get the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service. |
String |
configurationUrl()
Get the configuration |
Cloud |
extensionProfile()
Get the extension |
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
Cloud |
networkProfile()
Get the network |
Cloud |
osProfile()
Get the os |
String |
packageUrl()
Get the package |
String |
provisioningState()
Get the provisioning |
Cloud |
roleProfile()
Get the role |
Boolean |
startCloudService()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
String |
uniqueId()
Get the unique |
Cloud |
upgradeMode()
Get the upgrade |
void |
validate()
Validates the instance. |
Cloud |
withAllowModelOverride(Boolean allowModelOverride)
Set the allow |
Cloud |
withConfiguration(String configuration)
Set the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service. |
Cloud |
withConfigurationUrl(String configurationUrl)
Set the configuration |
Cloud |
withExtensionProfile(CloudServiceExtensionProfile extensionProfile)
Set the extension |
Cloud |
withNetworkProfile(CloudServiceNetworkProfile networkProfile)
Set the network |
Cloud |
withOsProfile(CloudServiceOsProfile osProfile)
Set the os |
Cloud |
withPackageUrl(String packageUrl)
Set the package |
Cloud |
withRoleProfile(CloudServiceRoleProfile roleProfile)
Set the role |
Cloud |
withStartCloudService(Boolean startCloudService)
Set the start |
Cloud |
withUpgradeMode(CloudServiceUpgradeMode upgradeMode)
Set the upgrade |
Methods inherited from java.lang.Object
Constructor Details
CloudServiceProperties
public CloudServiceProperties()
Creates an instance of CloudServiceProperties class.
Method Details
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:
configuration
public String configuration()
Get the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.
Returns:
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:
extensionProfile
public CloudServiceExtensionProfile extensionProfile()
Get the extensionProfile property: Describes a cloud service extension profile.
Returns:
fromJson
public static CloudServiceProperties fromJson(JsonReader jsonReader)
Reads an instance of CloudServiceProperties from the JsonReader.
Parameters:
Returns:
Throws:
networkProfile
public CloudServiceNetworkProfile networkProfile()
Get the networkProfile property: Network Profile for the cloud service.
Returns:
osProfile
public CloudServiceOsProfile osProfile()
Get the osProfile property: Describes the OS profile for the cloud service.
Returns:
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:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
roleProfile
public CloudServiceRoleProfile roleProfile()
Get the roleProfile property: Describes the role profile for the cloud service.
Returns:
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:
toJson
uniqueId
public String uniqueId()
Get the uniqueId property: The unique identifier for the cloud service.
Returns:
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
**Auto**
**Manual**
**Simultaneous**
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:
validate
public void validate()
Validates the instance.
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:
Returns:
withConfiguration
public CloudServiceProperties withConfiguration(String configuration)
Set the configuration property: Specifies the XML service configuration (.cscfg) for the cloud service.
Parameters:
Returns:
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:
Returns:
withExtensionProfile
public CloudServiceProperties withExtensionProfile(CloudServiceExtensionProfile extensionProfile)
Set the extensionProfile property: Describes a cloud service extension profile.
Parameters:
Returns:
withNetworkProfile
public CloudServiceProperties withNetworkProfile(CloudServiceNetworkProfile networkProfile)
Set the networkProfile property: Network Profile for the cloud service.
Parameters:
Returns:
withOsProfile
public CloudServiceProperties withOsProfile(CloudServiceOsProfile osProfile)
Set the osProfile property: Describes the OS profile for the cloud service.
Parameters:
Returns:
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:
Returns:
withRoleProfile
public CloudServiceProperties withRoleProfile(CloudServiceRoleProfile roleProfile)
Set the roleProfile property: Describes the role profile for the cloud service.
Parameters:
Returns:
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:
Returns:
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
**Auto**
**Manual**
**Simultaneous**
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:
Returns:
Applies to
Azure SDK for Java