VolumeMount Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.VolumeMount

Implements

public final class VolumeMount
implements JsonSerializable<VolumeMount>

The VolumeMount model.

Constructor Summary

Constructor Description
VolumeMount()

Creates an instance of VolumeMount class.

Method Summary

Modifier and Type Method and Description
String containerMountPath()

Get the containerMountPath property: Target path on the container where volume is mounted on.

String data()

Get the data property: Config Data to be mounted on the volume.

static VolumeMount fromJson(JsonReader jsonReader)

Reads an instance of VolumeMount from the JsonReader.

Boolean readOnly()

Get the readOnly property: Boolean to specify if the mount is read only on the container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String volumeSubPath()

Get the volumeSubPath property: Sub path in the volume where volume is mounted from.

VolumeMount withContainerMountPath(String containerMountPath)

Set the containerMountPath property: Target path on the container where volume is mounted on.

VolumeMount withData(String data)

Set the data property: Config Data to be mounted on the volume.

VolumeMount withReadOnly(Boolean readOnly)

Set the readOnly property: Boolean to specify if the mount is read only on the container.

VolumeMount withVolumeSubPath(String volumeSubPath)

Set the volumeSubPath property: Sub path in the volume where volume is mounted from.

Methods inherited from java.lang.Object

Constructor Details

VolumeMount

public VolumeMount()

Creates an instance of VolumeMount class.

Method Details

containerMountPath

public String containerMountPath()

Get the containerMountPath property: Target path on the container where volume is mounted on.

Returns:

the containerMountPath value.

data

public String data()

Get the data property: Config Data to be mounted on the volume.

Returns:

the data value.

fromJson

public static VolumeMount fromJson(JsonReader jsonReader)

Reads an instance of VolumeMount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VolumeMount if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

readOnly

public Boolean readOnly()

Get the readOnly property: Boolean to specify if the mount is read only on the container.

Returns:

the readOnly value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

volumeSubPath

public String volumeSubPath()

Get the volumeSubPath property: Sub path in the volume where volume is mounted from.

Returns:

the volumeSubPath value.

withContainerMountPath

public VolumeMount withContainerMountPath(String containerMountPath)

Set the containerMountPath property: Target path on the container where volume is mounted on.

Parameters:

containerMountPath - the containerMountPath value to set.

Returns:

the VolumeMount object itself.

withData

public VolumeMount withData(String data)

Set the data property: Config Data to be mounted on the volume.

Parameters:

data - the data value to set.

Returns:

the VolumeMount object itself.

withReadOnly

public VolumeMount withReadOnly(Boolean readOnly)

Set the readOnly property: Boolean to specify if the mount is read only on the container.

Parameters:

readOnly - the readOnly value to set.

Returns:

the VolumeMount object itself.

withVolumeSubPath

public VolumeMount withVolumeSubPath(String volumeSubPath)

Set the volumeSubPath property: Sub path in the volume where volume is mounted from.

Parameters:

volumeSubPath - the volumeSubPath value to set.

Returns:

the VolumeMount object itself.

Applies to