// 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;
import java.util.List;

/** Setting for the connector check connectivity. */
@Fluent
public class ConnectivityCriteria {
    /*
     * type of connectivity
     */
    @JsonProperty(value = "type")
    private ConnectivityType type;

    /*
     * Queries for checking connectivity
     */
    @JsonProperty(value = "value")
    private List<String> value;

    /**
     * Get the type property: type of connectivity.
     *
     * @return the type value.
     */
    public ConnectivityType type() {
        return this.type;
    }

    /**
     * Set the type property: type of connectivity.
     *
     * @param type the type value to set.
     * @return the ConnectivityCriteria object itself.
     */
    public ConnectivityCriteria withType(ConnectivityType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the value property: Queries for checking connectivity.
     *
     * @return the value value.
     */
    public List<String> value() {
        return this.value;
    }

    /**
     * Set the value property: Queries for checking connectivity.
     *
     * @param value the value value to set.
     * @return the ConnectivityCriteria object itself.
     */
    public ConnectivityCriteria withValue(List<String> value) {
        this.value = value;
        return this;
    }

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