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

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

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.synapse.models.StateValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Azure Active Directory Only Authentication Info. */
@Fluent
public final class AzureADOnlyAuthenticationInner extends ProxyResource {
    /*
     * azureADOnlyAuthentication resource properties
     */
    @JsonProperty(value = "properties")
    private AzureADOnlyAuthenticationProperties innerProperties;

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

    /**
     * Get the innerProperties property: azureADOnlyAuthentication resource properties.
     *
     * @return the innerProperties value.
     */
    private AzureADOnlyAuthenticationProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
     *
     * @return the azureADOnlyAuthentication value.
     */
    public Boolean azureADOnlyAuthentication() {
        return this.innerProperties() == null ? null : this.innerProperties().azureADOnlyAuthentication();
    }

    /**
     * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
     *
     * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set.
     * @return the AzureADOnlyAuthenticationInner object itself.
     */
    public AzureADOnlyAuthenticationInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) {
        if (this.innerProperties() == null) {
            this.innerProperties = new AzureADOnlyAuthenticationProperties();
        }
        this.innerProperties().withAzureADOnlyAuthentication(azureADOnlyAuthentication);
        return this;
    }

    /**
     * Get the state property: property configuration state.
     *
     * @return the state value.
     */
    public StateValue state() {
        return this.innerProperties() == null ? null : this.innerProperties().state();
    }

    /**
     * Get the creationDate property: property configuration date.
     *
     * @return the creationDate value.
     */
    public OffsetDateTime creationDate() {
        return this.innerProperties() == null ? null : this.innerProperties().creationDate();
    }

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