Class VirtualNetworkEncryption
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VirtualNetworkEncryption
-
public final class VirtualNetworkEncryption extends Object
Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkEncryption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()Get the enabled property: Indicates if encryption is enabled on the virtual network.VirtualNetworkEncryptionEnforcementenforcement()Get the enforcement property: If the encrypted VNet allows VM that does not support encryption.voidvalidate()Validates the instance.VirtualNetworkEncryptionwithEnabled(boolean enabled)Set the enabled property: Indicates if encryption is enabled on the virtual network.VirtualNetworkEncryptionwithEnforcement(VirtualNetworkEncryptionEnforcement enforcement)Set the enforcement property: If the encrypted VNet allows VM that does not support encryption.
-
-
-
Method Detail
-
enabled
public boolean enabled()
Get the enabled property: Indicates if encryption is enabled on the virtual network.- Returns:
- the enabled value.
-
withEnabled
public VirtualNetworkEncryption withEnabled(boolean enabled)
Set the enabled property: Indicates if encryption is enabled on the virtual network.- Parameters:
enabled- the enabled value to set.- Returns:
- the VirtualNetworkEncryption object itself.
-
enforcement
public VirtualNetworkEncryptionEnforcement enforcement()
Get the enforcement property: If the encrypted VNet allows VM that does not support encryption.- Returns:
- the enforcement value.
-
withEnforcement
public VirtualNetworkEncryption withEnforcement(VirtualNetworkEncryptionEnforcement enforcement)
Set the enforcement property: If the encrypted VNet allows VM that does not support encryption.- Parameters:
enforcement- the enforcement value to set.- Returns:
- the VirtualNetworkEncryption object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-