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

package com.azure.resourcemanager.providerhub.models;

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

/** The DefaultRolloutPropertiesAutoGenerated model. */
@Fluent
public class DefaultRolloutPropertiesAutoGenerated {
    /*
     * The provisioningState property.
     */
    @JsonProperty(value = "provisioningState")
    private ProvisioningState provisioningState;

    /*
     * The specification property.
     */
    @JsonProperty(value = "specification")
    private DefaultRolloutPropertiesSpecification specification;

    /*
     * The status property.
     */
    @JsonProperty(value = "status")
    private DefaultRolloutPropertiesStatus status;

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

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

    /**
     * Set the provisioningState property: The provisioningState property.
     *
     * @param provisioningState the provisioningState value to set.
     * @return the DefaultRolloutPropertiesAutoGenerated object itself.
     */
    public DefaultRolloutPropertiesAutoGenerated withProvisioningState(ProvisioningState provisioningState) {
        this.provisioningState = provisioningState;
        return this;
    }

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

    /**
     * Set the specification property: The specification property.
     *
     * @param specification the specification value to set.
     * @return the DefaultRolloutPropertiesAutoGenerated object itself.
     */
    public DefaultRolloutPropertiesAutoGenerated withSpecification(
        DefaultRolloutPropertiesSpecification specification) {
        this.specification = specification;
        return this;
    }

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

    /**
     * Set the status property: The status property.
     *
     * @param status the status value to set.
     * @return the DefaultRolloutPropertiesAutoGenerated object itself.
     */
    public DefaultRolloutPropertiesAutoGenerated withStatus(DefaultRolloutPropertiesStatus status) {
        this.status = status;
        return this;
    }

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