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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.managednetworkfabric.models.AnnotationResource;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Network Device Patch properties. */
@Fluent
public final class NetworkDevicePatchParametersProperties extends AnnotationResource {
    /*
     * The host Name of the device.
     */
    @JsonProperty(value = "hostName")
    private String hostname;

    /*
     * serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example:
     * Arista;DCS-7280DR3-24;12.05;JPE21116969
     */
    @JsonProperty(value = "serialNumber")
    private String serialNumber;

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

    /**
     * Get the hostname property: The host Name of the device.
     *
     * @return the hostname value.
     */
    public String hostname() {
        return this.hostname;
    }

    /**
     * Set the hostname property: The host Name of the device.
     *
     * @param hostname the hostname value to set.
     * @return the NetworkDevicePatchParametersProperties object itself.
     */
    public NetworkDevicePatchParametersProperties withHostname(String hostname) {
        this.hostname = hostname;
        return this;
    }

    /**
     * Get the serialNumber property: serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example:
     * Arista;DCS-7280DR3-24;12.05;JPE21116969.
     *
     * @return the serialNumber value.
     */
    public String serialNumber() {
        return this.serialNumber;
    }

    /**
     * Set the serialNumber property: serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example:
     * Arista;DCS-7280DR3-24;12.05;JPE21116969.
     *
     * @param serialNumber the serialNumber value to set.
     * @return the NetworkDevicePatchParametersProperties object itself.
     */
    public NetworkDevicePatchParametersProperties withSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public NetworkDevicePatchParametersProperties withAnnotation(String annotation) {
        super.withAnnotation(annotation);
        return this;
    }

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