Freigeben über


PlatformProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.PlatformProperties

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 PlatformProperties class.

Method Summary

Modifier and Type Method and Description
Architecture architecture()

Get the architecture property: The OS architecture.

static PlatformProperties fromJson(JsonReader jsonReader)

Reads an instance of PlatformProperties from the JsonReader.

OS os()

Get the os property: The operating system type required for the run.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Variant variant()

Get the variant property: Variant of the CPU.

PlatformProperties withArchitecture(Architecture architecture)

Set the architecture property: The OS architecture.

PlatformProperties withOs(OS os)

Set the os property: The operating system type required for the run.

PlatformProperties 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:

the architecture value.

fromJson

public static PlatformProperties fromJson(JsonReader jsonReader)

Reads an instance of PlatformProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PlatformProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

os

public OS os()

Get the os property: The operating system type required for the run.

Returns:

the os value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

variant

public Variant variant()

Get the variant property: Variant of the CPU.

Returns:

the variant 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.

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.

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.

Applies to