Class EncryptionTransitionRequest
java.lang.Object
com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionTransitionRequest>
public final class EncryptionTransitionRequest
extends Object
implements com.azure.json.JsonSerializable<EncryptionTransitionRequest>
Encryption transition request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EncryptionTransitionRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionTransitionRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionTransitionRequest from the JsonReader.Get the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualNetworkId property: Identifier for the virtual network.withPrivateEndpointId(String privateEndpointId) Set the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.withVirtualNetworkId(String virtualNetworkId) Set the virtualNetworkId property: Identifier for the virtual network.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncryptionTransitionRequest
public EncryptionTransitionRequest()Creates an instance of EncryptionTransitionRequest class.
-
-
Method Details
-
virtualNetworkId
Get the virtualNetworkId property: Identifier for the virtual network.- Returns:
- the virtualNetworkId value.
-
withVirtualNetworkId
Set the virtualNetworkId property: Identifier for the virtual network.- Parameters:
virtualNetworkId- the virtualNetworkId value to set.- Returns:
- the EncryptionTransitionRequest object itself.
-
privateEndpointId
Get the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.- Returns:
- the privateEndpointId value.
-
withPrivateEndpointId
Set the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.- Parameters:
privateEndpointId- the privateEndpointId value to set.- Returns:
- the EncryptionTransitionRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EncryptionTransitionRequest>- Throws:
IOException
-
fromJson
public static EncryptionTransitionRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncryptionTransitionRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionTransitionRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EncryptionTransitionRequest.
-