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 Details

    • ComputeInstanceDataMount

      public ComputeInstanceDataMount()
      Creates an instance of ComputeInstanceDataMount class.
  • Method Details

    • source

      public String source()
      Get the source property: Source of the ComputeInstance data mount.
      Returns:
      the source value.
    • withSource

      public ComputeInstanceDataMount withSource(String source)
      Set the source property: Source of the ComputeInstance data mount.
      Parameters:
      source - the source value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • sourceType

      public SourceType sourceType()
      Get the sourceType property: Data source type.
      Returns:
      the sourceType value.
    • withSourceType

      public ComputeInstanceDataMount withSourceType(SourceType sourceType)
      Set the sourceType property: Data source type.
      Parameters:
      sourceType - the sourceType value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • mountName

      public String mountName()
      Get the mountName property: name of the ComputeInstance data mount.
      Returns:
      the mountName value.
    • withMountName

      public ComputeInstanceDataMount withMountName(String mountName)
      Set the mountName property: name of the ComputeInstance data mount.
      Parameters:
      mountName - the mountName value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • mountAction

      public MountAction mountAction()
      Get the mountAction property: Mount Action.
      Returns:
      the mountAction value.
    • withMountAction

      public ComputeInstanceDataMount withMountAction(MountAction mountAction)
      Set the mountAction property: Mount Action.
      Parameters:
      mountAction - the mountAction value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • createdBy

      public String createdBy()
      Get the createdBy property: who this data mount created by.
      Returns:
      the createdBy value.
    • withCreatedBy

      public ComputeInstanceDataMount withCreatedBy(String createdBy)
      Set the createdBy property: who this data mount created by.
      Parameters:
      createdBy - the createdBy value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • mountPath

      public String mountPath()
      Get the mountPath property: Path of this data mount.
      Returns:
      the mountPath value.
    • withMountPath

      public ComputeInstanceDataMount withMountPath(String mountPath)
      Set the mountPath property: Path of this data mount.
      Parameters:
      mountPath - the mountPath value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • mountState

      public MountState mountState()
      Get the mountState property: Mount state.
      Returns:
      the mountState value.
    • withMountState

      public ComputeInstanceDataMount withMountState(MountState mountState)
      Set the mountState property: Mount state.
      Parameters:
      mountState - the mountState value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • mountedOn

      public OffsetDateTime mountedOn()
      Get the mountedOn property: The time when the disk mounted.
      Returns:
      the mountedOn value.
    • withMountedOn

      public ComputeInstanceDataMount withMountedOn(OffsetDateTime mountedOn)
      Set the mountedOn property: The time when the disk mounted.
      Parameters:
      mountedOn - the mountedOn value to set.
      Returns:
      the ComputeInstanceDataMount object itself.
    • error

      public String error()
      Get the error property: Error of this data mount.
      Returns:
      the error value.
    • withError

      public ComputeInstanceDataMount withError(String error)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.