PoolImage Class

  • java.lang.Object
    • com.azure.resourcemanager.devopsinfrastructure.models.PoolImage

Implements

public final class PoolImage
implements JsonSerializable<PoolImage>

The VM image of the machines in the pool.

Constructor Summary

Constructor Description
PoolImage()

Creates an instance of PoolImage class.

Method Summary

Modifier and Type Method and Description
List<String> aliases()

Get the aliases property: List of aliases to reference the image by.

String buffer()

Get the buffer property: The percentage of the buffer to be allocated to this image.

static PoolImage fromJson(JsonReader jsonReader)

Reads an instance of PoolImage from the JsonReader.

String resourceId()

Get the resourceId property: The resource id of the image.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String wellKnownImageName()

Get the wellKnownImageName property: The image to use from a well-known set of images made available to customers.

PoolImage withAliases(List<String> aliases)

Set the aliases property: List of aliases to reference the image by.

PoolImage withBuffer(String buffer)

Set the buffer property: The percentage of the buffer to be allocated to this image.

PoolImage withResourceId(String resourceId)

Set the resourceId property: The resource id of the image.

PoolImage withWellKnownImageName(String wellKnownImageName)

Set the wellKnownImageName property: The image to use from a well-known set of images made available to customers.

Methods inherited from java.lang.Object

Constructor Details

PoolImage

public PoolImage()

Creates an instance of PoolImage class.

Method Details

aliases

public List<String> aliases()

Get the aliases property: List of aliases to reference the image by.

Returns:

the aliases value.

buffer

public String buffer()

Get the buffer property: The percentage of the buffer to be allocated to this image.

Returns:

the buffer value.

fromJson

public static PoolImage fromJson(JsonReader jsonReader)

Reads an instance of PoolImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceId

public String resourceId()

Get the resourceId property: The resource id of the image.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

wellKnownImageName

public String wellKnownImageName()

Get the wellKnownImageName property: The image to use from a well-known set of images made available to customers.

Returns:

the wellKnownImageName value.

withAliases

public PoolImage withAliases(List<String> aliases)

Set the aliases property: List of aliases to reference the image by.

Parameters:

aliases - the aliases value to set.

Returns:

the PoolImage object itself.

withBuffer

public PoolImage withBuffer(String buffer)

Set the buffer property: The percentage of the buffer to be allocated to this image.

Parameters:

buffer - the buffer value to set.

Returns:

the PoolImage object itself.

withResourceId

public PoolImage withResourceId(String resourceId)

Set the resourceId property: The resource id of the image.

Parameters:

resourceId - the resourceId value to set.

Returns:

the PoolImage object itself.

withWellKnownImageName

public PoolImage withWellKnownImageName(String wellKnownImageName)

Set the wellKnownImageName property: The image to use from a well-known set of images made available to customers.

Parameters:

wellKnownImageName - the wellKnownImageName value to set.

Returns:

the PoolImage object itself.

Applies to