Class SourceCreationData
java.lang.Object
com.azure.resourcemanager.elasticsan.models.SourceCreationData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceCreationData>
public final class SourceCreationData
extends Object
implements com.azure.json.JsonSerializable<SourceCreationData>
Data source used when creating the volume.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createSource property: This enumerates the possible sources of a volume creation.static SourceCreationData
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SourceCreationData from the JsonReader.sourceId()
Get the sourceId property: Fully qualified resource ID for the resource.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCreateSource
(VolumeCreateOption createSource) Set the createSource property: This enumerates the possible sources of a volume creation.withSourceId
(String sourceId) Set the sourceId property: Fully qualified resource ID for the resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SourceCreationData
public SourceCreationData()Creates an instance of SourceCreationData class.
-
-
Method Details
-
createSource
Get the createSource property: This enumerates the possible sources of a volume creation.- Returns:
- the createSource value.
-
withCreateSource
Set the createSource property: This enumerates the possible sources of a volume creation.- Parameters:
createSource
- the createSource value to set.- Returns:
- the SourceCreationData object itself.
-
sourceId
Get the sourceId property: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".- Returns:
- the sourceId value.
-
withSourceId
Set the sourceId property: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".- Parameters:
sourceId
- the sourceId value to set.- Returns:
- the SourceCreationData object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<SourceCreationData>
- Throws:
IOException
-
fromJson
Reads an instance of SourceCreationData from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SourceCreationData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the SourceCreationData.
-