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

package com.azure.resourcemanager.reservations.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.reservations.models.QuotaRequestState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Response with request ID that the quota request was accepted. */
@Immutable
public final class QuotaRequestSubmitResponse201Inner {
    /*
     * The quota request ID. Use the requestId parameter to check the request status.
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /*
     * Operation ID
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * Resource type
     */
    @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
    private String type;

    /*
     * Quota request status.
     */
    @JsonProperty(value = "properties")
    private QuotaRequestStatusDetails innerProperties;

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

    /**
     * Get the id property: The quota request ID. Use the requestId parameter to check the request status.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Get the name property: Operation ID.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the type property: Resource type.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Get the innerProperties property: Quota request status.
     *
     * @return the innerProperties value.
     */
    private QuotaRequestStatusDetails innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the provisioningState property: The details of the quota request status.
     *
     * @return the provisioningState value.
     */
    public QuotaRequestState provisioningState() {
        return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
    }

    /**
     * Get the message property: A user friendly message.
     *
     * @return the message value.
     */
    public String message() {
        return this.innerProperties() == null ? null : this.innerProperties().message();
    }

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