// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.networkcloud.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** RacksPatchProperties represents the properties of the rack during patching. */
@Fluent
public final class RacksPatchProperties {
    /*
     * The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”)
     */
    @JsonProperty(value = "rackLocation")
    private String rackLocation;

    /*
     * The globally unique identifier for the rack.
     */
    @JsonProperty(value = "rackSerialNumber")
    private String rackSerialNumber;

    /** Creates an instance of RacksPatchProperties class. */
    public RacksPatchProperties() {
    }

    /**
     * Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3,
     * Isle 9, Rack 2B”).
     *
     * @return the rackLocation value.
     */
    public String rackLocation() {
        return this.rackLocation;
    }

    /**
     * Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3,
     * Isle 9, Rack 2B”).
     *
     * @param rackLocation the rackLocation value to set.
     * @return the RacksPatchProperties object itself.
     */
    public RacksPatchProperties withRackLocation(String rackLocation) {
        this.rackLocation = rackLocation;
        return this;
    }

    /**
     * Get the rackSerialNumber property: The globally unique identifier for the rack.
     *
     * @return the rackSerialNumber value.
     */
    public String rackSerialNumber() {
        return this.rackSerialNumber;
    }

    /**
     * Set the rackSerialNumber property: The globally unique identifier for the rack.
     *
     * @param rackSerialNumber the rackSerialNumber value to set.
     * @return the RacksPatchProperties object itself.
     */
    public RacksPatchProperties withRackSerialNumber(String rackSerialNumber) {
        this.rackSerialNumber = rackSerialNumber;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
