VirtualNetworkEncryption Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. VirtualNetworkEncryption
- com.
Implements
public final class VirtualNetworkEncryption
implements JsonSerializable<VirtualNetworkEncryption>
Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkEncryption() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
enabled()
Get the enabled property: Indicates if encryption is enabled on the virtual network. |
Virtual |
enforcement()
Get the enforcement property: If the encrypted VNet allows VM that does not support encryption. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withEnabled(boolean enabled)
Set the enabled property: Indicates if encryption is enabled on the virtual network. |
Virtual |
withEnforcement(VirtualNetworkEncryptionEnforcement enforcement)
Set the enforcement property: If the encrypted VNet allows VM that does not support encryption. |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkEncryption
public VirtualNetworkEncryption()
Creates an instance of VirtualNetworkEncryption class.
Method Details
enabled
public boolean enabled()
Get the enabled property: Indicates if encryption is enabled on the virtual network.
Returns:
enforcement
public VirtualNetworkEncryptionEnforcement enforcement()
Get the enforcement property: If the encrypted VNet allows VM that does not support encryption. This field is for future support, AllowUnencrypted is the only supported value at general availability.
Returns:
fromJson
public static VirtualNetworkEncryption fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkEncryption from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public VirtualNetworkEncryption withEnabled(boolean enabled)
Set the enabled property: Indicates if encryption is enabled on the virtual network.
Parameters:
Returns:
withEnforcement
public VirtualNetworkEncryption withEnforcement(VirtualNetworkEncryptionEnforcement enforcement)
Set the enforcement property: If the encrypted VNet allows VM that does not support encryption. This field is for future support, AllowUnencrypted is the only supported value at general availability.
Parameters:
Returns:
Applies to
Azure SDK for Java