Class KeyForDiskEncryptionSet


  • public final class KeyForDiskEncryptionSet
    extends Object
    Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.
    • Constructor Detail

      • KeyForDiskEncryptionSet

        public KeyForDiskEncryptionSet()
    • Method Detail

      • sourceVault

        public SourceVault sourceVault()
        Get the sourceVault property: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.
        Returns:
        the sourceVault value.
      • withSourceVault

        public KeyForDiskEncryptionSet withSourceVault​(SourceVault sourceVault)
        Set the sourceVault property: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.
        Parameters:
        sourceVault - the sourceVault value to set.
        Returns:
        the KeyForDiskEncryptionSet object itself.
      • keyUrl

        public String keyUrl()
        Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.
        Returns:
        the keyUrl value.
      • withKeyUrl

        public KeyForDiskEncryptionSet withKeyUrl​(String keyUrl)
        Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.
        Parameters:
        keyUrl - the keyUrl value to set.
        Returns:
        the KeyForDiskEncryptionSet object itself.
      • validate

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