// *** 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.storage.outputs;

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

@CustomType
public final class AccountNetworkRulesPrivateLinkAccessRule {
    /**
     * @return The resource id of the resource access rule to be granted access.
     * 
     */
    private String endpointResourceId;
    /**
     * @return The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.
     * 
     */
    private @Nullable String endpointTenantId;

    private AccountNetworkRulesPrivateLinkAccessRule() {}
    /**
     * @return The resource id of the resource access rule to be granted access.
     * 
     */
    public String endpointResourceId() {
        return this.endpointResourceId;
    }
    /**
     * @return The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.
     * 
     */
    public Optional<String> endpointTenantId() {
        return Optional.ofNullable(this.endpointTenantId);
    }

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

    public static Builder builder(AccountNetworkRulesPrivateLinkAccessRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String endpointResourceId;
        private @Nullable String endpointTenantId;
        public Builder() {}
        public Builder(AccountNetworkRulesPrivateLinkAccessRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpointResourceId = defaults.endpointResourceId;
    	      this.endpointTenantId = defaults.endpointTenantId;
        }

        @CustomType.Setter
        public Builder endpointResourceId(String endpointResourceId) {
            this.endpointResourceId = Objects.requireNonNull(endpointResourceId);
            return this;
        }
        @CustomType.Setter
        public Builder endpointTenantId(@Nullable String endpointTenantId) {
            this.endpointTenantId = endpointTenantId;
            return this;
        }
        public AccountNetworkRulesPrivateLinkAccessRule build() {
            final var o = new AccountNetworkRulesPrivateLinkAccessRule();
            o.endpointResourceId = endpointResourceId;
            o.endpointTenantId = endpointTenantId;
            return o;
        }
    }
}
