DiskBackedMessageBuffer Class

  • java.lang.Object
    • com.azure.resourcemanager.iotoperations.models.DiskBackedMessageBuffer

Implements

public final class DiskBackedMessageBuffer
implements JsonSerializable<DiskBackedMessageBuffer>

DiskBackedMessageBuffer properties.

Constructor Summary

Constructor Description
DiskBackedMessageBuffer()

Creates an instance of DiskBackedMessageBuffer class.

Method Summary

Modifier and Type Method and Description
VolumeClaimSpec ephemeralVolumeClaimSpec()

Get the ephemeralVolumeClaimSpec property: Use the specified persistent volume claim template to mount a "generic ephemeral volume" for the message buffer.

static DiskBackedMessageBuffer fromJson(JsonReader jsonReader)

Reads an instance of DiskBackedMessageBuffer from the JsonReader.

String maxSize()

Get the maxSize property: The max size of the message buffer on disk.

VolumeClaimSpec persistentVolumeClaimSpec()

Get the persistentVolumeClaimSpec property: Use the specified persistent volume claim template to mount a persistent volume for the message buffer.

JsonWriter toJson(JsonWriter jsonWriter)
DiskBackedMessageBuffer withEphemeralVolumeClaimSpec(VolumeClaimSpec ephemeralVolumeClaimSpec)

Set the ephemeralVolumeClaimSpec property: Use the specified persistent volume claim template to mount a "generic ephemeral volume" for the message buffer.

DiskBackedMessageBuffer withMaxSize(String maxSize)

Set the maxSize property: The max size of the message buffer on disk.

DiskBackedMessageBuffer withPersistentVolumeClaimSpec(VolumeClaimSpec persistentVolumeClaimSpec)

Set the persistentVolumeClaimSpec property: Use the specified persistent volume claim template to mount a persistent volume for the message buffer.

Methods inherited from java.lang.Object

Constructor Details

DiskBackedMessageBuffer

public DiskBackedMessageBuffer()

Creates an instance of DiskBackedMessageBuffer class.

Method Details

ephemeralVolumeClaimSpec

public VolumeClaimSpec ephemeralVolumeClaimSpec()

Get the ephemeralVolumeClaimSpec property: Use the specified persistent volume claim template to mount a "generic ephemeral volume" for the message buffer. See https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/\#generic-ephemeral-volumes for details.

Returns:

the ephemeralVolumeClaimSpec value.

fromJson

public static DiskBackedMessageBuffer fromJson(JsonReader jsonReader)

Reads an instance of DiskBackedMessageBuffer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiskBackedMessageBuffer 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.

maxSize

public String maxSize()

Get the maxSize property: The max size of the message buffer on disk. If a PVC template is specified using one of ephemeralVolumeClaimSpec or persistentVolumeClaimSpec, then this size is used as the request and limit sizes of that template. If neither ephemeralVolumeClaimSpec nor persistentVolumeClaimSpec are specified, then an emptyDir volume is mounted with this size as its limit. See https://kubernetes.io/docs/concepts/storage/volumes/\#emptydir for details.

Returns:

the maxSize value.

persistentVolumeClaimSpec

public VolumeClaimSpec persistentVolumeClaimSpec()

Get the persistentVolumeClaimSpec property: Use the specified persistent volume claim template to mount a persistent volume for the message buffer.

Returns:

the persistentVolumeClaimSpec value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withEphemeralVolumeClaimSpec

public DiskBackedMessageBuffer withEphemeralVolumeClaimSpec(VolumeClaimSpec ephemeralVolumeClaimSpec)

Set the ephemeralVolumeClaimSpec property: Use the specified persistent volume claim template to mount a "generic ephemeral volume" for the message buffer. See https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/\#generic-ephemeral-volumes for details.

Parameters:

ephemeralVolumeClaimSpec - the ephemeralVolumeClaimSpec value to set.

Returns:

the DiskBackedMessageBuffer object itself.

withMaxSize

public DiskBackedMessageBuffer withMaxSize(String maxSize)

Set the maxSize property: The max size of the message buffer on disk. If a PVC template is specified using one of ephemeralVolumeClaimSpec or persistentVolumeClaimSpec, then this size is used as the request and limit sizes of that template. If neither ephemeralVolumeClaimSpec nor persistentVolumeClaimSpec are specified, then an emptyDir volume is mounted with this size as its limit. See https://kubernetes.io/docs/concepts/storage/volumes/\#emptydir for details.

Parameters:

maxSize - the maxSize value to set.

Returns:

the DiskBackedMessageBuffer object itself.

withPersistentVolumeClaimSpec

public DiskBackedMessageBuffer withPersistentVolumeClaimSpec(VolumeClaimSpec persistentVolumeClaimSpec)

Set the persistentVolumeClaimSpec property: Use the specified persistent volume claim template to mount a persistent volume for the message buffer.

Parameters:

persistentVolumeClaimSpec - the persistentVolumeClaimSpec value to set.

Returns:

the DiskBackedMessageBuffer object itself.

Applies to