PlatformProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. PlatformProperties
- com.
Implements
public final class PlatformProperties
implements JsonSerializable<PlatformProperties>
The platform properties against which the run has to happen.
Constructor Summary
Constructor | Description |
---|---|
PlatformProperties() |
Creates an instance of Platform |
Method Summary
Modifier and Type | Method and Description |
---|---|
Architecture |
architecture()
Get the architecture property: The OS architecture. |
static
Platform |
fromJson(JsonReader jsonReader)
Reads an instance of Platform |
OS |
os()
Get the os property: The operating system type required for the run. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Variant |
variant()
Get the variant property: Variant of the CPU. |
Platform |
withArchitecture(Architecture architecture)
Set the architecture property: The OS architecture. |
Platform |
withOs(OS os)
Set the os property: The operating system type required for the run. |
Platform |
withVariant(Variant variant)
Set the variant property: Variant of the CPU. |
Methods inherited from java.lang.Object
Constructor Details
PlatformProperties
public PlatformProperties()
Creates an instance of PlatformProperties class.
Method Details
architecture
public Architecture architecture()
Get the architecture property: The OS architecture.
Returns:
fromJson
public static PlatformProperties fromJson(JsonReader jsonReader)
Reads an instance of PlatformProperties from the JsonReader.
Parameters:
Returns:
Throws:
os
public OS os()
Get the os property: The operating system type required for the run.
Returns:
toJson
validate
public void validate()
Validates the instance.
variant
public Variant variant()
Get the variant property: Variant of the CPU.
Returns:
withArchitecture
public PlatformProperties withArchitecture(Architecture architecture)
Set the architecture property: The OS architecture.
Parameters:
Returns:
withOs
public PlatformProperties withOs(OS os)
Set the os property: The operating system type required for the run.
Parameters:
Returns:
withVariant
public PlatformProperties withVariant(Variant variant)
Set the variant property: Variant of the CPU.
Parameters:
Returns:
Applies to
Azure SDK for Java