Class CloudServiceExtensionProperties
java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceExtensionProperties
Extension Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceExtensionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.Get the forceUpdateTag property: Tag to force apply the provided public and protected settings.Get the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.Get the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.Get the provisioningState property: The provisioning state, which only appears in the response.Get the publisher property: The name of the extension handler publisher.Get the rolesAppliedTo property: Optional list of roles to apply this extension.settings()Get the settings property: Public settings for the extension.type()Get the type property: Specifies the type of the extension.Get the typeHandlerVersion property: Specifies the version of the extension.voidvalidate()Validates the instance.withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) Set the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.withForceUpdateTag(String forceUpdateTag) Set the forceUpdateTag property: Tag to force apply the provided public and protected settings.withProtectedSettings(Object protectedSettings) Set the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.withProtectedSettingsFromKeyVault(CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault) Set the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.withPublisher(String publisher) Set the publisher property: The name of the extension handler publisher.withRolesAppliedTo(List<String> rolesAppliedTo) Set the rolesAppliedTo property: Optional list of roles to apply this extension.withSettings(Object settings) Set the settings property: Public settings for the extension.Set the type property: Specifies the type of the extension.withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: Specifies the version of the extension.
-
Constructor Details
-
CloudServiceExtensionProperties
public CloudServiceExtensionProperties()Creates an instance of CloudServiceExtensionProperties class.
-
-
Method Details
-
publisher
Get the publisher property: The name of the extension handler publisher.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The name of the extension handler publisher.- Parameters:
publisher- the publisher value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
type
Get the type property: Specifies the type of the extension.- Returns:
- the type value.
-
withType
Set the type property: Specifies the type of the extension.- Parameters:
type- the type value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
typeHandlerVersion
Get the typeHandlerVersion property: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
Set the typeHandlerVersion property: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
autoUpgradeMinorVersion
Get the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.- Returns:
- the autoUpgradeMinorVersion value.
-
withAutoUpgradeMinorVersion
Set the autoUpgradeMinorVersion property: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.- Parameters:
autoUpgradeMinorVersion- the autoUpgradeMinorVersion value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
settings
Get the settings property: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.- Returns:
- the settings value.
-
withSettings
Set the settings property: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.- Parameters:
settings- the settings value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
protectedSettings
Get the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.- Returns:
- the protectedSettings value.
-
withProtectedSettings
Set the protectedSettings property: Protected settings for the extension which are encrypted before sent to the role instance.- Parameters:
protectedSettings- the protectedSettings value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
protectedSettingsFromKeyVault
Get the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.- Returns:
- the protectedSettingsFromKeyVault value.
-
withProtectedSettingsFromKeyVault
public CloudServiceExtensionProperties withProtectedSettingsFromKeyVault(CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault) Set the protectedSettingsFromKeyVault property: Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.- Parameters:
protectedSettingsFromKeyVault- the protectedSettingsFromKeyVault value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
forceUpdateTag
Get the forceUpdateTag property: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not.- Returns:
- the forceUpdateTag value.
-
withForceUpdateTag
Set the forceUpdateTag property: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not.- Parameters:
forceUpdateTag- the forceUpdateTag value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
rolesAppliedTo
Get the rolesAppliedTo property: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.- Returns:
- the rolesAppliedTo value.
-
withRolesAppliedTo
Set the rolesAppliedTo property: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.- Parameters:
rolesAppliedTo- the rolesAppliedTo value to set.- Returns:
- the CloudServiceExtensionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-