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

package com.azure.resourcemanager.connectedvmware.models;

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

/** IP address information for a virtual network adapter reported by the fabric. */
@Immutable
public final class NicIpAddressSettings {
    /*
     * Gets the ip address allocation method.
     */
    @JsonProperty(value = "allocationMethod", access = JsonProperty.Access.WRITE_ONLY)
    private String allocationMethod;

    /*
     * Gets the ip address for the nic.
     */
    @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String ipAddress;

    /*
     * Gets the mask.
     */
    @JsonProperty(value = "subnetMask", access = JsonProperty.Access.WRITE_ONLY)
    private String subnetMask;

    /**
     * Get the allocationMethod property: Gets the ip address allocation method.
     *
     * @return the allocationMethod value.
     */
    public String allocationMethod() {
        return this.allocationMethod;
    }

    /**
     * Get the ipAddress property: Gets the ip address for the nic.
     *
     * @return the ipAddress value.
     */
    public String ipAddress() {
        return this.ipAddress;
    }

    /**
     * Get the subnetMask property: Gets the mask.
     *
     * @return the subnetMask value.
     */
    public String subnetMask() {
        return this.subnetMask;
    }

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