// *** 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.azure.search;

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


public final class SharedPrivateLinkServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SharedPrivateLinkServiceArgs Empty = new SharedPrivateLinkServiceArgs();

    /**
     * Specify the name of the Azure Search Shared Private Link Resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Specify the name of the Azure Search Shared Private Link Resource. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource.
     * 
     */
    @Import(name="requestMessage")
    private @Nullable Output<String> requestMessage;

    /**
     * @return Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource.
     * 
     */
    public Optional<Output<String>> requestMessage() {
        return Optional.ofNullable(this.requestMessage);
    }

    /**
     * Specify the id of the Azure Search Service. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="searchServiceId", required=true)
    private Output<String> searchServiceId;

    /**
     * @return Specify the id of the Azure Search Service. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> searchServiceId() {
        return this.searchServiceId;
    }

    /**
     * Specify the sub resource name which the Azure Search Private Endpoint is able to connect to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="subresourceName", required=true)
    private Output<String> subresourceName;

    /**
     * @return Specify the sub resource name which the Azure Search Private Endpoint is able to connect to. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> subresourceName() {
        return this.subresourceName;
    }

    /**
     * Specify the ID of the Shared Private Link Enabled Remote Resource which this Azure Search Private Endpoint should be connected to. Changing this forces a new resource to be created.
     * 
     * &gt; **NOTE:** The sub resource name should match with the type of the target resource id that&#39;s being specified.
     * 
     */
    @Import(name="targetResourceId", required=true)
    private Output<String> targetResourceId;

    /**
     * @return Specify the ID of the Shared Private Link Enabled Remote Resource which this Azure Search Private Endpoint should be connected to. Changing this forces a new resource to be created.
     * 
     * &gt; **NOTE:** The sub resource name should match with the type of the target resource id that&#39;s being specified.
     * 
     */
    public Output<String> targetResourceId() {
        return this.targetResourceId;
    }

    private SharedPrivateLinkServiceArgs() {}

    private SharedPrivateLinkServiceArgs(SharedPrivateLinkServiceArgs $) {
        this.name = $.name;
        this.requestMessage = $.requestMessage;
        this.searchServiceId = $.searchServiceId;
        this.subresourceName = $.subresourceName;
        this.targetResourceId = $.targetResourceId;
    }

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

    public static final class Builder {
        private SharedPrivateLinkServiceArgs $;

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

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

        /**
         * @param name Specify the name of the Azure Search Shared Private Link Resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specify the name of the Azure Search Shared Private Link Resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param requestMessage Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource.
         * 
         * @return builder
         * 
         */
        public Builder requestMessage(@Nullable Output<String> requestMessage) {
            $.requestMessage = requestMessage;
            return this;
        }

        /**
         * @param requestMessage Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource.
         * 
         * @return builder
         * 
         */
        public Builder requestMessage(String requestMessage) {
            return requestMessage(Output.of(requestMessage));
        }

        /**
         * @param searchServiceId Specify the id of the Azure Search Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder searchServiceId(Output<String> searchServiceId) {
            $.searchServiceId = searchServiceId;
            return this;
        }

        /**
         * @param searchServiceId Specify the id of the Azure Search Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder searchServiceId(String searchServiceId) {
            return searchServiceId(Output.of(searchServiceId));
        }

        /**
         * @param subresourceName Specify the sub resource name which the Azure Search Private Endpoint is able to connect to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder subresourceName(Output<String> subresourceName) {
            $.subresourceName = subresourceName;
            return this;
        }

        /**
         * @param subresourceName Specify the sub resource name which the Azure Search Private Endpoint is able to connect to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder subresourceName(String subresourceName) {
            return subresourceName(Output.of(subresourceName));
        }

        /**
         * @param targetResourceId Specify the ID of the Shared Private Link Enabled Remote Resource which this Azure Search Private Endpoint should be connected to. Changing this forces a new resource to be created.
         * 
         * &gt; **NOTE:** The sub resource name should match with the type of the target resource id that&#39;s being specified.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(Output<String> targetResourceId) {
            $.targetResourceId = targetResourceId;
            return this;
        }

        /**
         * @param targetResourceId Specify the ID of the Shared Private Link Enabled Remote Resource which this Azure Search Private Endpoint should be connected to. Changing this forces a new resource to be created.
         * 
         * &gt; **NOTE:** The sub resource name should match with the type of the target resource id that&#39;s being specified.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(String targetResourceId) {
            return targetResourceId(Output.of(targetResourceId));
        }

        public SharedPrivateLinkServiceArgs build() {
            $.searchServiceId = Objects.requireNonNull($.searchServiceId, "expected parameter 'searchServiceId' to be non-null");
            $.subresourceName = Objects.requireNonNull($.subresourceName, "expected parameter 'subresourceName' to be non-null");
            $.targetResourceId = Objects.requireNonNull($.targetResourceId, "expected parameter 'targetResourceId' to be non-null");
            return $;
        }
    }

}
