Class OsImageProfile
java.lang.Object
com.azure.resourcemanager.workloads.models.OsImageProfile
OS image profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoffer()
Get the offer property: OS image offer.Get the publisher property: OS image publisher.sku()
Get the sku property: OS image sku.void
validate()
Validates the instance.version()
Get the version property: OS image version.withOffer
(OSImageOffer offer) Set the offer property: OS image offer.withPublisher
(OSImagePublisher publisher) Set the publisher property: OS image publisher.withSku
(OSImageSku sku) Set the sku property: OS image sku.withVersion
(OSImageVersion version) Set the version property: OS image version.
-
Constructor Details
-
OsImageProfile
public OsImageProfile()
-
-
Method Details
-
publisher
Get the publisher property: OS image publisher.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: OS image publisher.- Parameters:
publisher
- the publisher value to set.- Returns:
- the OsImageProfile object itself.
-
offer
Get the offer property: OS image offer.- Returns:
- the offer value.
-
withOffer
Set the offer property: OS image offer.- Parameters:
offer
- the offer value to set.- Returns:
- the OsImageProfile object itself.
-
sku
Get the sku property: OS image sku.- Returns:
- the sku value.
-
withSku
Set the sku property: OS image sku.- Parameters:
sku
- the sku value to set.- Returns:
- the OsImageProfile object itself.
-
version
Get the version property: OS image version.- Returns:
- the version value.
-
withVersion
Set the version property: OS image version.- Parameters:
version
- the version value to set.- Returns:
- the OsImageProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-