Class PlatformProperties
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.PlatformProperties
-
public final class PlatformProperties extends Object
The platform properties against which the run has to happen.
-
-
Constructor Summary
Constructors Constructor Description PlatformProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Architecturearchitecture()Get the architecture property: The OS architecture.OSos()Get the os property: The operating system type required for the run.voidvalidate()Validates the instance.Variantvariant()Get the variant property: Variant of the CPU.PlatformPropertieswithArchitecture(Architecture architecture)Set the architecture property: The OS architecture.PlatformPropertieswithOs(OS os)Set the os property: The operating system type required for the run.PlatformPropertieswithVariant(Variant variant)Set the variant property: Variant of the CPU.
-
-
-
Method Detail
-
os
public OS os()
Get the os property: The operating system type required for the run.- Returns:
- the os value.
-
withOs
public PlatformProperties withOs(OS os)
Set the os property: The operating system type required for the run.- Parameters:
os- the os value to set.- Returns:
- the PlatformProperties object itself.
-
architecture
public Architecture architecture()
Get the architecture property: The OS architecture.- Returns:
- the architecture value.
-
withArchitecture
public PlatformProperties withArchitecture(Architecture architecture)
Set the architecture property: The OS architecture.- Parameters:
architecture- the architecture value to set.- Returns:
- the PlatformProperties object itself.
-
variant
public Variant variant()
Get the variant property: Variant of the CPU.- Returns:
- the variant value.
-
withVariant
public PlatformProperties withVariant(Variant variant)
Set the variant property: Variant of the CPU.- Parameters:
variant- the variant value to set.- Returns:
- the PlatformProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-