All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.inputs.ConnectivityCriterionArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.securityinsights.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The criteria by which we determine whether the connector is connected or not.
 * For Example, use a KQL query to check if  the expected data type is flowing).
 * 
 */
public final class ConnectivityCriterionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectivityCriterionArgs Empty = new ConnectivityCriterionArgs();

    /**
     * Gets or sets the type of connectivity.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Gets or sets the type of connectivity.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Gets or sets the queries for checking connectivity.
     * 
     */
    @Import(name="value")
    private @Nullable Output> value;

    /**
     * @return Gets or sets the queries for checking connectivity.
     * 
     */
    public Optional>> value() {
        return Optional.ofNullable(this.value);
    }

    private ConnectivityCriterionArgs() {}

    private ConnectivityCriterionArgs(ConnectivityCriterionArgs $) {
        this.type = $.type;
        this.value = $.value;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ConnectivityCriterionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ConnectivityCriterionArgs $;

        public Builder() {
            $ = new ConnectivityCriterionArgs();
        }

        public Builder(ConnectivityCriterionArgs defaults) {
            $ = new ConnectivityCriterionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param type Gets or sets the type of connectivity.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Gets or sets the type of connectivity.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value Gets or sets the queries for checking connectivity.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Gets or sets the queries for checking connectivity.
         * 
         * @return builder
         * 
         */
        public Builder value(List value) {
            return value(Output.of(value));
        }

        /**
         * @param value Gets or sets the queries for checking connectivity.
         * 
         * @return builder
         * 
         */
        public Builder value(String... value) {
            return value(List.of(value));
        }

        public ConnectivityCriterionArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ConnectivityCriterionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy