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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** This class represents the vm NicUpdates task details. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("VmNicUpdatesTaskDetails")
@Fluent
public final class VmNicUpdatesTaskDetails extends TaskTypeDetails {
    /*
     * Virtual machine Id.
     */
    @JsonProperty(value = "vmId")
    private String vmId;

    /*
     * Nic Id.
     */
    @JsonProperty(value = "nicId")
    private String nicId;

    /*
     * Name of the Nic.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the vmId property: Virtual machine Id.
     *
     * @return the vmId value.
     */
    public String vmId() {
        return this.vmId;
    }

    /**
     * Set the vmId property: Virtual machine Id.
     *
     * @param vmId the vmId value to set.
     * @return the VmNicUpdatesTaskDetails object itself.
     */
    public VmNicUpdatesTaskDetails withVmId(String vmId) {
        this.vmId = vmId;
        return this;
    }

    /**
     * Get the nicId property: Nic Id.
     *
     * @return the nicId value.
     */
    public String nicId() {
        return this.nicId;
    }

    /**
     * Set the nicId property: Nic Id.
     *
     * @param nicId the nicId value to set.
     * @return the VmNicUpdatesTaskDetails object itself.
     */
    public VmNicUpdatesTaskDetails withNicId(String nicId) {
        this.nicId = nicId;
        return this;
    }

    /**
     * Get the name property: Name of the Nic.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name of the Nic.
     *
     * @param name the name value to set.
     * @return the VmNicUpdatesTaskDetails object itself.
     */
    public VmNicUpdatesTaskDetails withName(String name) {
        this.name = name;
        return this;
    }

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