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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.models.EntityExpandResponseValue;
import com.azure.resourcemanager.securityinsights.models.ExpansionResultsMetadata;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The entity expansion result operation response. */
@Fluent
public final class EntityExpandResponseInner {
    /*
     * The metadata from the expansion operation results.
     */
    @JsonProperty(value = "metaData")
    private ExpansionResultsMetadata metadata;

    /*
     * The expansion result values.
     */
    @JsonProperty(value = "value")
    private EntityExpandResponseValue value;

    /**
     * Get the metadata property: The metadata from the expansion operation results.
     *
     * @return the metadata value.
     */
    public ExpansionResultsMetadata metadata() {
        return this.metadata;
    }

    /**
     * Set the metadata property: The metadata from the expansion operation results.
     *
     * @param metadata the metadata value to set.
     * @return the EntityExpandResponseInner object itself.
     */
    public EntityExpandResponseInner withMetadata(ExpansionResultsMetadata metadata) {
        this.metadata = metadata;
        return this;
    }

    /**
     * Get the value property: The expansion result values.
     *
     * @return the value value.
     */
    public EntityExpandResponseValue value() {
        return this.value;
    }

    /**
     * Set the value property: The expansion result values.
     *
     * @param value the value value to set.
     * @return the EntityExpandResponseInner object itself.
     */
    public EntityExpandResponseInner withValue(EntityExpandResponseValue value) {
        this.value = value;
        return this;
    }

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