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

package com.azure.resourcemanager.automation.models;

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

/** The parameters supplied to the update dsc node operation. */
@Fluent
public final class DscNodeUpdateParameters {
    /*
     * Gets or sets the id of the dsc node.
     */
    @JsonProperty(value = "nodeId")
    private String nodeId;

    /*
     * The properties property.
     */
    @JsonProperty(value = "properties")
    private DscNodeUpdateParametersProperties properties;

    /**
     * Get the nodeId property: Gets or sets the id of the dsc node.
     *
     * @return the nodeId value.
     */
    public String nodeId() {
        return this.nodeId;
    }

    /**
     * Set the nodeId property: Gets or sets the id of the dsc node.
     *
     * @param nodeId the nodeId value to set.
     * @return the DscNodeUpdateParameters object itself.
     */
    public DscNodeUpdateParameters withNodeId(String nodeId) {
        this.nodeId = nodeId;
        return this;
    }

    /**
     * Get the properties property: The properties property.
     *
     * @return the properties value.
     */
    public DscNodeUpdateParametersProperties properties() {
        return this.properties;
    }

    /**
     * Set the properties property: The properties property.
     *
     * @param properties the properties value to set.
     * @return the DscNodeUpdateParameters object itself.
     */
    public DscNodeUpdateParameters withProperties(DscNodeUpdateParametersProperties properties) {
        this.properties = properties;
        return this;
    }

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