Class BindOptions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createHostPath property: Indicate whether to create host path.static BindOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BindOptions from the JsonReader.Get the propagation property: Type of Bind Option.selinux()Get the selinux property: Mention the selinux options.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCreateHostPath(Boolean createHostPath) Set the createHostPath property: Indicate whether to create host path.withPropagation(String propagation) Set the propagation property: Type of Bind Option.withSelinux(String selinux) Set the selinux property: Mention the selinux options.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
-
BindOptions
public BindOptions()Creates an instance of BindOptions class.
-
-
Method Details
-
propagation
Get the propagation property: Type of Bind Option.- Returns:
- the propagation value.
-
withPropagation
Set the propagation property: Type of Bind Option.- Parameters:
propagation- the propagation value to set.- Returns:
- the BindOptions object itself.
-
createHostPath
Get the createHostPath property: Indicate whether to create host path.- Returns:
- the createHostPath value.
-
withCreateHostPath
Set the createHostPath property: Indicate whether to create host path.- Parameters:
createHostPath- the createHostPath value to set.- Returns:
- the BindOptions object itself.
-
selinux
Get the selinux property: Mention the selinux options.- Returns:
- the selinux value.
-
withSelinux
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BindOptions>- Throws:
IOException
-
fromJson
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.
-