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

package com.azure.resourcemanager.customerinsights.implementation;

import com.azure.resourcemanager.customerinsights.fluent.models.SuggestRelationshipLinksResponseInner;
import com.azure.resourcemanager.customerinsights.models.RelationshipsLookup;
import com.azure.resourcemanager.customerinsights.models.SuggestRelationshipLinksResponse;
import java.util.Collections;
import java.util.List;

public final class SuggestRelationshipLinksResponseImpl implements SuggestRelationshipLinksResponse {
    private SuggestRelationshipLinksResponseInner innerObject;

    private final com.azure.resourcemanager.customerinsights.CustomerInsightsManager serviceManager;

    SuggestRelationshipLinksResponseImpl(
        SuggestRelationshipLinksResponseInner innerObject,
        com.azure.resourcemanager.customerinsights.CustomerInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

    private com.azure.resourcemanager.customerinsights.CustomerInsightsManager manager() {
        return this.serviceManager;
    }
}
