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

package com.azure.resourcemanager.scvmm.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Network Interface model. */
@Fluent
public final class NetworkInterfaces {
    /*
     * Gets or sets the name of the network interface.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Gets the display name of the network interface as shown in the
     * vmmServer. This is the fallback label for a NIC when the name is not
     * set.
     */
    @JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
    private String displayName;

    /*
     * Gets or sets the nic ipv4 addresses.
     */
    @JsonProperty(value = "ipv4Addresses", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> ipv4Addresses;

    /*
     * Gets or sets the nic ipv6 addresses.
     */
    @JsonProperty(value = "ipv6Addresses", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> ipv6Addresses;

    /*
     * Gets or sets the nic MAC address.
     */
    @JsonProperty(value = "macAddress")
    private String macAddress;

    /*
     * Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource
     * to connect the nic.
     */
    @JsonProperty(value = "virtualNetworkId")
    private String virtualNetworkId;

    /*
     * Gets or sets the name of the virtual network in vmmServer that the nic
     * is connected to.
     */
    @JsonProperty(value = "networkName", access = JsonProperty.Access.WRITE_ONLY)
    private String networkName;

    /*
     * Gets or sets the ipv4 address type.
     */
    @JsonProperty(value = "ipv4AddressType")
    private AllocationMethod ipv4AddressType;

    /*
     * Gets or sets the ipv6 address type.
     */
    @JsonProperty(value = "ipv6AddressType")
    private AllocationMethod ipv6AddressType;

    /*
     * Gets or sets the mac address type.
     */
    @JsonProperty(value = "macAddressType")
    private AllocationMethod macAddressType;

    /*
     * Gets or sets the nic id.
     */
    @JsonProperty(value = "nicId")
    private String nicId;

    /**
     * Get the name property: Gets or sets the name of the network interface.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Gets or sets the name of the network interface.
     *
     * @param name the name value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the displayName property: Gets the display name of the network interface as shown in the vmmServer. This is
     * the fallback label for a NIC when the name is not set.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Get the ipv4Addresses property: Gets or sets the nic ipv4 addresses.
     *
     * @return the ipv4Addresses value.
     */
    public List<String> ipv4Addresses() {
        return this.ipv4Addresses;
    }

    /**
     * Get the ipv6Addresses property: Gets or sets the nic ipv6 addresses.
     *
     * @return the ipv6Addresses value.
     */
    public List<String> ipv6Addresses() {
        return this.ipv6Addresses;
    }

    /**
     * Get the macAddress property: Gets or sets the nic MAC address.
     *
     * @return the macAddress value.
     */
    public String macAddress() {
        return this.macAddress;
    }

    /**
     * Set the macAddress property: Gets or sets the nic MAC address.
     *
     * @param macAddress the macAddress value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withMacAddress(String macAddress) {
        this.macAddress = macAddress;
        return this;
    }

    /**
     * Get the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to
     * connect the nic.
     *
     * @return the virtualNetworkId value.
     */
    public String virtualNetworkId() {
        return this.virtualNetworkId;
    }

    /**
     * Set the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to
     * connect the nic.
     *
     * @param virtualNetworkId the virtualNetworkId value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withVirtualNetworkId(String virtualNetworkId) {
        this.virtualNetworkId = virtualNetworkId;
        return this;
    }

    /**
     * Get the networkName property: Gets or sets the name of the virtual network in vmmServer that the nic is connected
     * to.
     *
     * @return the networkName value.
     */
    public String networkName() {
        return this.networkName;
    }

    /**
     * Get the ipv4AddressType property: Gets or sets the ipv4 address type.
     *
     * @return the ipv4AddressType value.
     */
    public AllocationMethod ipv4AddressType() {
        return this.ipv4AddressType;
    }

    /**
     * Set the ipv4AddressType property: Gets or sets the ipv4 address type.
     *
     * @param ipv4AddressType the ipv4AddressType value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withIpv4AddressType(AllocationMethod ipv4AddressType) {
        this.ipv4AddressType = ipv4AddressType;
        return this;
    }

    /**
     * Get the ipv6AddressType property: Gets or sets the ipv6 address type.
     *
     * @return the ipv6AddressType value.
     */
    public AllocationMethod ipv6AddressType() {
        return this.ipv6AddressType;
    }

    /**
     * Set the ipv6AddressType property: Gets or sets the ipv6 address type.
     *
     * @param ipv6AddressType the ipv6AddressType value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withIpv6AddressType(AllocationMethod ipv6AddressType) {
        this.ipv6AddressType = ipv6AddressType;
        return this;
    }

    /**
     * Get the macAddressType property: Gets or sets the mac address type.
     *
     * @return the macAddressType value.
     */
    public AllocationMethod macAddressType() {
        return this.macAddressType;
    }

    /**
     * Set the macAddressType property: Gets or sets the mac address type.
     *
     * @param macAddressType the macAddressType value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withMacAddressType(AllocationMethod macAddressType) {
        this.macAddressType = macAddressType;
        return this;
    }

    /**
     * Get the nicId property: Gets or sets the nic id.
     *
     * @return the nicId value.
     */
    public String nicId() {
        return this.nicId;
    }

    /**
     * Set the nicId property: Gets or sets the nic id.
     *
     * @param nicId the nicId value to set.
     * @return the NetworkInterfaces object itself.
     */
    public NetworkInterfaces withNicId(String nicId) {
        this.nicId = nicId;
        return this;
    }

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