public final class ImageReference
extends com.azure.core.management.SubResource
Constructor and Description |
---|
ImageReference() |
Modifier and Type | Method and Description |
---|---|
String |
exactVersion()
Get the exactVersion property: Specifies in decimal numbers, the version of platform image or marketplace image
used to create the virtual machine.
|
String |
offer()
Get the offer property: Specifies the offer of the platform image or marketplace image used to create the virtual
machine.
|
String |
publisher()
Get the publisher property: The image publisher.
|
String |
sku()
Get the sku property: The image SKU.
|
void |
validate()
Validates the instance.
|
String |
version()
Get the version property: Specifies the version of the platform image or marketplace image used to create the
virtual machine.
|
ImageReference |
withOffer(String offer)
Set the offer property: Specifies the offer of the platform image or marketplace image used to create the virtual
machine.
|
ImageReference |
withPublisher(String publisher)
Set the publisher property: The image publisher.
|
ImageReference |
withSku(String sku)
Set the sku property: The image SKU.
|
ImageReference |
withVersion(String version)
Set the version property: Specifies the version of the platform image or marketplace image used to create the
virtual machine.
|
public String publisher()
public ImageReference withPublisher(String publisher)
publisher
- the publisher value to set.public String offer()
public ImageReference withOffer(String offer)
offer
- the offer value to set.public String sku()
public ImageReference withSku(String sku)
sku
- the sku value to set.public String version()
public ImageReference withVersion(String version)
version
- the version value to set.public String exactVersion()
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.