BindOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.BindOptions

Implements

public final class BindOptions
implements JsonSerializable<BindOptions>

Describes the bind options for the container.

Constructor Summary

Constructor Description
BindOptions()

Creates an instance of BindOptions class.

Method Summary

Modifier and Type Method and Description
Boolean createHostPath()

Get the createHostPath property: Indicate whether to create host path.

static BindOptions fromJson(JsonReader jsonReader)

Reads an instance of BindOptions from the JsonReader.

String propagation()

Get the propagation property: Type of Bind Option.

String selinux()

Get the selinux property: Mention the selinux options.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BindOptions withCreateHostPath(Boolean createHostPath)

Set the createHostPath property: Indicate whether to create host path.

BindOptions withPropagation(String propagation)

Set the propagation property: Type of Bind Option.

BindOptions withSelinux(String selinux)

Set the selinux property: Mention the selinux options.

Methods inherited from java.lang.Object

Constructor Details

BindOptions

public BindOptions()

Creates an instance of BindOptions class.

Method Details

createHostPath

public Boolean createHostPath()

Get the createHostPath property: Indicate whether to create host path.

Returns:

the createHostPath value.

fromJson

public static BindOptions fromJson(JsonReader jsonReader)

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.

propagation

public String propagation()

Get the propagation property: Type of Bind Option.

Returns:

the propagation value.

selinux

public String selinux()

Get the selinux property: Mention the selinux options.

Returns:

the selinux value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to