// 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.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.customerinsights.models.RelationshipsLookup;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The response of suggest relationship links operation. */
@Immutable
public final class SuggestRelationshipLinksResponseInner {
    /*
     * The interaction name.
     */
    @JsonProperty(value = "interactionName", access = JsonProperty.Access.WRITE_ONLY)
    private String interactionName;

    /*
     * Suggested relationships for the type.
     */
    @JsonProperty(value = "suggestedRelationships", access = JsonProperty.Access.WRITE_ONLY)
    private List<RelationshipsLookup> suggestedRelationships;

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

    /**
     * Get the interactionName property: The interaction name.
     *
     * @return the interactionName value.
     */
    public String interactionName() {
        return this.interactionName;
    }

    /**
     * Get the suggestedRelationships property: Suggested relationships for the type.
     *
     * @return the suggestedRelationships value.
     */
    public List<RelationshipsLookup> suggestedRelationships() {
        return this.suggestedRelationships;
    }

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