PlatformUpdateParameters.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties for updating the platform configuration. */
@Fluent
public final class PlatformUpdateParameters {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PlatformUpdateParameters.class);
/*
* The operating system type required for the run.
*/
@JsonProperty(value = "os")
private OS os;
/*
* The OS architecture.
*/
@JsonProperty(value = "architecture")
private Architecture architecture;
/*
* Variant of the CPU.
*/
@JsonProperty(value = "variant")
private Variant variant;
/**
* Get the os property: The operating system type required for the run.
*
* @return the os value.
*/
public OS os() {
return this.os;
}
/**
* Set the os property: The operating system type required for the run.
*
* @param os the os value to set.
* @return the PlatformUpdateParameters object itself.
*/
public PlatformUpdateParameters withOs(OS os) {
this.os = os;
return this;
}
/**
* Get the architecture property: The OS architecture.
*
* @return the architecture value.
*/
public Architecture architecture() {
return this.architecture;
}
/**
* Set the architecture property: The OS architecture.
*
* @param architecture the architecture value to set.
* @return the PlatformUpdateParameters object itself.
*/
public PlatformUpdateParameters withArchitecture(Architecture architecture) {
this.architecture = architecture;
return this;
}
/**
* Get the variant property: Variant of the CPU.
*
* @return the variant value.
*/
public Variant variant() {
return this.variant;
}
/**
* Set the variant property: Variant of the CPU.
*
* @param variant the variant value to set.
* @return the PlatformUpdateParameters object itself.
*/
public PlatformUpdateParameters withVariant(Variant variant) {
this.variant = variant;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}