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

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Expansion result connected entities. */
@Fluent
public final class ConnectedEntity {
    /*
     * Entity Id of the connected entity
     */
    @JsonProperty(value = "targetEntityId")
    private String targetEntityId;

    /*
     * key-value pairs for a connected entity mapping
     */
    @JsonProperty(value = "additionalData")
    private Object additionalData;

    /**
     * Get the targetEntityId property: Entity Id of the connected entity.
     *
     * @return the targetEntityId value.
     */
    public String targetEntityId() {
        return this.targetEntityId;
    }

    /**
     * Set the targetEntityId property: Entity Id of the connected entity.
     *
     * @param targetEntityId the targetEntityId value to set.
     * @return the ConnectedEntity object itself.
     */
    public ConnectedEntity withTargetEntityId(String targetEntityId) {
        this.targetEntityId = targetEntityId;
        return this;
    }

    /**
     * Get the additionalData property: key-value pairs for a connected entity mapping.
     *
     * @return the additionalData value.
     */
    public Object additionalData() {
        return this.additionalData;
    }

    /**
     * Set the additionalData property: key-value pairs for a connected entity mapping.
     *
     * @param additionalData the additionalData value to set.
     * @return the ConnectedEntity object itself.
     */
    public ConnectedEntity withAdditionalData(Object additionalData) {
        this.additionalData = additionalData;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
