Class ComputeInstanceDataMount
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeInstanceDataMount
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeInstanceDataMount>
public final class ComputeInstanceDataMount
extends Object
implements com.azure.json.JsonSerializable<ComputeInstanceDataMount>
Defines an Aml Instance DataMount.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeInstanceDataMount class. -
Method Summary
Modifier and TypeMethodDescriptionGet the createdBy property: who this data mount created by.error()Get the error property: Error of this data mount.static ComputeInstanceDataMountfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeInstanceDataMount from the JsonReader.Get the mountAction property: Mount Action.Get the mountedOn property: The time when the disk mounted.Get the mountName property: name of the ComputeInstance data mount.Get the mountPath property: Path of this data mount.Get the mountState property: Mount state.source()Get the source property: Source of the ComputeInstance data mount.Get the sourceType property: Data source type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCreatedBy(String createdBy) Set the createdBy property: who this data mount created by.Set the error property: Error of this data mount.withMountAction(MountAction mountAction) Set the mountAction property: Mount Action.withMountedOn(OffsetDateTime mountedOn) Set the mountedOn property: The time when the disk mounted.withMountName(String mountName) Set the mountName property: name of the ComputeInstance data mount.withMountPath(String mountPath) Set the mountPath property: Path of this data mount.withMountState(MountState mountState) Set the mountState property: Mount state.withSource(String source) Set the source property: Source of the ComputeInstance data mount.withSourceType(SourceType sourceType) Set the sourceType property: Data source type.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
-
ComputeInstanceDataMount
public ComputeInstanceDataMount()Creates an instance of ComputeInstanceDataMount class.
-
-
Method Details
-
source
Get the source property: Source of the ComputeInstance data mount.- Returns:
- the source value.
-
withSource
Set the source property: Source of the ComputeInstance data mount.- Parameters:
source- the source value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
sourceType
Get the sourceType property: Data source type.- Returns:
- the sourceType value.
-
withSourceType
Set the sourceType property: Data source type.- Parameters:
sourceType- the sourceType value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
mountName
Get the mountName property: name of the ComputeInstance data mount.- Returns:
- the mountName value.
-
withMountName
Set the mountName property: name of the ComputeInstance data mount.- Parameters:
mountName- the mountName value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
mountAction
Get the mountAction property: Mount Action.- Returns:
- the mountAction value.
-
withMountAction
Set the mountAction property: Mount Action.- Parameters:
mountAction- the mountAction value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
createdBy
Get the createdBy property: who this data mount created by.- Returns:
- the createdBy value.
-
withCreatedBy
Set the createdBy property: who this data mount created by.- Parameters:
createdBy- the createdBy value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
mountPath
Get the mountPath property: Path of this data mount.- Returns:
- the mountPath value.
-
withMountPath
Set the mountPath property: Path of this data mount.- Parameters:
mountPath- the mountPath value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
mountState
Get the mountState property: Mount state.- Returns:
- the mountState value.
-
withMountState
Set the mountState property: Mount state.- Parameters:
mountState- the mountState value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
mountedOn
Get the mountedOn property: The time when the disk mounted.- Returns:
- the mountedOn value.
-
withMountedOn
Set the mountedOn property: The time when the disk mounted.- Parameters:
mountedOn- the mountedOn value to set.- Returns:
- the ComputeInstanceDataMount object itself.
-
error
Get the error property: Error of this data mount.- Returns:
- the error value.
-
withError
Set the error property: Error of this data mount.- Parameters:
error- the error value to set.- Returns:
- the ComputeInstanceDataMount 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<ComputeInstanceDataMount>- Throws:
IOException
-
fromJson
public static ComputeInstanceDataMount fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeInstanceDataMount from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ComputeInstanceDataMount 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 ComputeInstanceDataMount.
-