// 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;

/** Availability Set model. */
@Fluent
public final class AvailabilitySetListItem {
    /*
     * Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Gets or sets the name of the availability set.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * Get the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.
     *
     * @param id the id value to set.
     * @return the AvailabilitySetListItem object itself.
     */
    public AvailabilitySetListItem withId(String id) {
        this.id = id;
        return this;
    }

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

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

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