// 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.BookmarkExpandResponseValue;
import com.azure.resourcemanager.securityinsights.models.ExpansionResultsMetadata;
import com.fasterxml.jackson.annotation.JsonProperty;

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

    /*
     * The expansion result values.
     */
    @JsonProperty(value = "value")
    private BookmarkExpandResponseValue 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 BookmarkExpandResponseInner object itself.
     */
    public BookmarkExpandResponseInner withMetadata(ExpansionResultsMetadata metadata) {
        this.metadata = metadata;
        return this;
    }

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

    /**
     * Set the value property: The expansion result values.
     *
     * @param value the value value to set.
     * @return the BookmarkExpandResponseInner object itself.
     */
    public BookmarkExpandResponseInner withValue(BookmarkExpandResponseValue 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();
        }
    }
}
