Share via


PlatformUpdateParameters Class

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

Implements

public final class PlatformUpdateParameters
implements JsonSerializable<PlatformUpdateParameters>

The properties for updating the platform configuration.

Constructor Summary

Constructor Description
PlatformUpdateParameters()

Creates an instance of PlatformUpdateParameters class.

Method Summary

Modifier and Type Method and Description
Architecture architecture()

Get the architecture property: The OS architecture.

static PlatformUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of PlatformUpdateParameters 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.

PlatformUpdateParameters withArchitecture(Architecture architecture)

Set the architecture property: The OS architecture.

PlatformUpdateParameters withOs(OS os)

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

PlatformUpdateParameters withVariant(Variant variant)

Set the variant property: Variant of the CPU.

Methods inherited from java.lang.Object

Constructor Details

PlatformUpdateParameters

public PlatformUpdateParameters()

Creates an instance of PlatformUpdateParameters class.

Method Details

architecture

public Architecture architecture()

Get the architecture property: The OS architecture.

Returns:

the architecture value.

fromJson

public static PlatformUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of PlatformUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the PlatformUpdateParameters.

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 PlatformUpdateParameters withArchitecture(Architecture architecture)

Set the architecture property: The OS architecture.

Parameters:

architecture - the architecture value to set.

Returns:

the PlatformUpdateParameters object itself.

withOs

public PlatformUpdateParameters withOs(OS os)

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

Parameters:

os - the os value to set.

Returns:

the PlatformUpdateParameters object itself.

withVariant

public PlatformUpdateParameters withVariant(Variant variant)

Set the variant property: Variant of the CPU.

Parameters:

variant - the variant value to set.

Returns:

the PlatformUpdateParameters object itself.

Applies to