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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Update administrative state on list of resources. */
@Fluent
public final class UpdateAdministrativeState extends EnableDisableOnResources {
    /*
     * Administrative state.
     */
    @JsonProperty(value = "state")
    private AdministrativeState state;

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

    /**
     * Get the state property: Administrative state.
     *
     * @return the state value.
     */
    public AdministrativeState state() {
        return this.state;
    }

    /**
     * Set the state property: Administrative state.
     *
     * @param state the state value to set.
     * @return the UpdateAdministrativeState object itself.
     */
    public UpdateAdministrativeState withState(AdministrativeState state) {
        this.state = state;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public UpdateAdministrativeState withResourceIds(List<String> resourceIds) {
        super.withResourceIds(resourceIds);
        return this;
    }

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