java.lang.Object
com.azure.resourcemanager.machinelearning.models.BindOptions
All Implemented Interfaces:
com.azure.json.JsonSerializable<BindOptions>

public final class BindOptions extends Object implements com.azure.json.JsonSerializable<BindOptions>
Describes the bind options for the container.
  • Constructor Details

    • BindOptions

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

    • propagation

      public String propagation()
      Get the propagation property: Type of Bind Option.
      Returns:
      the propagation value.
    • withPropagation

      public BindOptions withPropagation(String propagation)
      Set the propagation property: Type of Bind Option.
      Parameters:
      propagation - the propagation value to set.
      Returns:
      the BindOptions object itself.
    • createHostPath

      public Boolean createHostPath()
      Get the createHostPath property: Indicate whether to create host path.
      Returns:
      the createHostPath value.
    • withCreateHostPath

      public BindOptions withCreateHostPath(Boolean createHostPath)
      Set the createHostPath property: Indicate whether to create host path.
      Parameters:
      createHostPath - the createHostPath value to set.
      Returns:
      the BindOptions object itself.
    • selinux

      public String selinux()
      Get the selinux property: Mention the selinux options.
      Returns:
      the selinux value.
    • withSelinux

      public BindOptions withSelinux(String selinux)
      Set the selinux property: Mention the selinux options.
      Parameters:
      selinux - the selinux value to set.
      Returns:
      the BindOptions 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<BindOptions>
      Throws:
      IOException
    • fromJson

      public static BindOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BindOptions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BindOptions 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 BindOptions.