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

package com.azure.resourcemanager.dynatrace.implementation;

import com.azure.resourcemanager.dynatrace.fluent.models.SsoDetailsResponseInner;
import com.azure.resourcemanager.dynatrace.models.SsoDetailsResponse;
import com.azure.resourcemanager.dynatrace.models.SsoStatus;
import java.util.Collections;
import java.util.List;

public final class SsoDetailsResponseImpl implements SsoDetailsResponse {
    private SsoDetailsResponseInner innerObject;

    private final com.azure.resourcemanager.dynatrace.DynatraceManager serviceManager;

    SsoDetailsResponseImpl(
        SsoDetailsResponseInner innerObject, com.azure.resourcemanager.dynatrace.DynatraceManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public SsoStatus isSsoEnabled() {
        return this.innerModel().isSsoEnabled();
    }

    public String metadataUrl() {
        return this.innerModel().metadataUrl();
    }

    public String singleSignOnUrl() {
        return this.innerModel().singleSignOnUrl();
    }

    public List<String> aadDomains() {
        List<String> inner = this.innerModel().aadDomains();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List<String> adminUsers() {
        List<String> inner = this.innerModel().adminUsers();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public SsoDetailsResponseInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.dynatrace.DynatraceManager manager() {
        return this.serviceManager;
    }
}
