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

package com.azure.resourcemanager.vmwarecloudsimple.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 CustomizationNicSetting model. */
@Fluent
public final class CustomizationNicSetting {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomizationNicSetting.class);

    /*
     * The list of adapters' settings
     */
    @JsonProperty(value = "adapter")
    private CustomizationIpSettings adapter;

    /*
     * NIC mac address
     */
    @JsonProperty(value = "macAddress")
    private String macAddress;

    /**
     * Get the adapter property: The list of adapters' settings.
     *
     * @return the adapter value.
     */
    public CustomizationIpSettings adapter() {
        return this.adapter;
    }

    /**
     * Set the adapter property: The list of adapters' settings.
     *
     * @param adapter the adapter value to set.
     * @return the CustomizationNicSetting object itself.
     */
    public CustomizationNicSetting withAdapter(CustomizationIpSettings adapter) {
        this.adapter = adapter;
        return this;
    }

    /**
     * Get the macAddress property: NIC mac address.
     *
     * @return the macAddress value.
     */
    public String macAddress() {
        return this.macAddress;
    }

    /**
     * Set the macAddress property: NIC mac address.
     *
     * @param macAddress the macAddress value to set.
     * @return the CustomizationNicSetting object itself.
     */
    public CustomizationNicSetting withMacAddress(String macAddress) {
        this.macAddress = macAddress;
        return this;
    }

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