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

package com.azure.resourcemanager.resourcemover.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;

/** Gets or sets the availability set resource settings. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resourceType")
@JsonTypeName("Microsoft.Compute/availabilitySets")
@Fluent
public final class AvailabilitySetResourceSettings extends ResourceSettings {
    /*
     * Gets or sets the target fault domain.
     */
    @JsonProperty(value = "faultDomain")
    private Integer faultDomain;

    /*
     * Gets or sets the target update domain.
     */
    @JsonProperty(value = "updateDomain")
    private Integer updateDomain;

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

    /**
     * Get the faultDomain property: Gets or sets the target fault domain.
     *
     * @return the faultDomain value.
     */
    public Integer faultDomain() {
        return this.faultDomain;
    }

    /**
     * Set the faultDomain property: Gets or sets the target fault domain.
     *
     * @param faultDomain the faultDomain value to set.
     * @return the AvailabilitySetResourceSettings object itself.
     */
    public AvailabilitySetResourceSettings withFaultDomain(Integer faultDomain) {
        this.faultDomain = faultDomain;
        return this;
    }

    /**
     * Get the updateDomain property: Gets or sets the target update domain.
     *
     * @return the updateDomain value.
     */
    public Integer updateDomain() {
        return this.updateDomain;
    }

    /**
     * Set the updateDomain property: Gets or sets the target update domain.
     *
     * @param updateDomain the updateDomain value to set.
     * @return the AvailabilitySetResourceSettings object itself.
     */
    public AvailabilitySetResourceSettings withUpdateDomain(Integer updateDomain) {
        this.updateDomain = updateDomain;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvailabilitySetResourceSettings withTargetResourceName(String targetResourceName) {
        super.withTargetResourceName(targetResourceName);
        return this;
    }

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