ImageReference Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl<ImageReferenceInner>
      • com.microsoft.azure.management.compute.ImageReference

public class ImageReference

The image reference.

Constructor Summary

Constructor Description
ImageReference()

Creates ImageReference.

ImageReference(ImageReferenceInner inner)

Creates ImageReference.

Method Summary

Modifier and Type Method and Description
String id()
ImageReferenceInner inner()
String offer()

Get the offer value.

String publisher()

Get the publisher value.

String sku()
String version()

Get the version value.

ImageReference withId(String id)

Sets the image resource ID value.

ImageReference withOffer(String offer)

Set the offer value.

ImageReference withPublisher(String publisher)

Set the publisher value.

ImageReference withSku(String sku)

Sets the SKU.

ImageReference withVersion(String version)

Set the version value.

Constructor Details

ImageReference

public ImageReference()

Creates ImageReference.

ImageReference

public ImageReference(ImageReferenceInner inner)

Creates ImageReference.

Parameters:

inner - the inner object

Method Details

id

public String id()

Returns:

the resource ID of the image

inner

public ImageReferenceInner inner()

offer

public String offer()

Get the offer value.

Returns:

the offer value

publisher

public String publisher()

Get the publisher value.

Returns:

the publisher value

sku

public String sku()

Returns:

the SKU

version

public String version()

Get the version value.

Returns:

the version value

withId

public ImageReference withId(String id)

Sets the image resource ID value.

Parameters:

id - the ID

Returns:

the ImageReference object itself.

withOffer

public ImageReference withOffer(String offer)

Set the offer value.

Parameters:

offer - the offer value to set

Returns:

the ImageReference object itself.

withPublisher

public ImageReference withPublisher(String publisher)

Set the publisher value.

Parameters:

publisher - the publisher value to set

Returns:

the ImageReference object itself.

withSku

public ImageReference withSku(String sku)

Sets the SKU.

Parameters:

sku - the SKU

Returns:

the ImageReference object itself.

withVersion

public ImageReference withVersion(String version)

Set the version value.

Parameters:

version - the version value to set

Returns:

the ImageReference object itself.

Applies to