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

com.pulumi.azurenative.eventgrid.PrivateEndpointConnectionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.eventgrid;

import com.pulumi.azurenative.eventgrid.enums.ResourceProvisioningState;
import com.pulumi.azurenative.eventgrid.inputs.ConnectionStateArgs;
import com.pulumi.azurenative.eventgrid.inputs.PrivateEndpointArgs;
import com.pulumi.core.Either;
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;


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

    public static final PrivateEndpointConnectionArgs Empty = new PrivateEndpointConnectionArgs();

    /**
     * GroupIds from the private link service resource.
     * 
     */
    @Import(name="groupIds")
    private @Nullable Output> groupIds;

    /**
     * @return GroupIds from the private link service resource.
     * 
     */
    public Optional>> groupIds() {
        return Optional.ofNullable(this.groupIds);
    }

    /**
     * The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name).
     * 
     */
    @Import(name="parentName", required=true)
    private Output parentName;

    /**
     * @return The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name).
     * 
     */
    public Output parentName() {
        return this.parentName;
    }

    /**
     * The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\'.
     * 
     */
    @Import(name="parentType", required=true)
    private Output parentType;

    /**
     * @return The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\'.
     * 
     */
    public Output parentType() {
        return this.parentType;
    }

    /**
     * The Private Endpoint resource for this Connection.
     * 
     */
    @Import(name="privateEndpoint")
    private @Nullable Output privateEndpoint;

    /**
     * @return The Private Endpoint resource for this Connection.
     * 
     */
    public Optional> privateEndpoint() {
        return Optional.ofNullable(this.privateEndpoint);
    }

    /**
     * The name of the private endpoint connection connection.
     * 
     */
    @Import(name="privateEndpointConnectionName")
    private @Nullable Output privateEndpointConnectionName;

    /**
     * @return The name of the private endpoint connection connection.
     * 
     */
    public Optional> privateEndpointConnectionName() {
        return Optional.ofNullable(this.privateEndpointConnectionName);
    }

    /**
     * Details about the state of the connection.
     * 
     */
    @Import(name="privateLinkServiceConnectionState")
    private @Nullable Output privateLinkServiceConnectionState;

    /**
     * @return Details about the state of the connection.
     * 
     */
    public Optional> privateLinkServiceConnectionState() {
        return Optional.ofNullable(this.privateLinkServiceConnectionState);
    }

    /**
     * Provisioning state of the Private Endpoint Connection.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output> provisioningState;

    /**
     * @return Provisioning state of the Private Endpoint Connection.
     * 
     */
    public Optional>> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

    /**
     * The name of the resource group within the user's subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private PrivateEndpointConnectionArgs() {}

    private PrivateEndpointConnectionArgs(PrivateEndpointConnectionArgs $) {
        this.groupIds = $.groupIds;
        this.parentName = $.parentName;
        this.parentType = $.parentType;
        this.privateEndpoint = $.privateEndpoint;
        this.privateEndpointConnectionName = $.privateEndpointConnectionName;
        this.privateLinkServiceConnectionState = $.privateLinkServiceConnectionState;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private PrivateEndpointConnectionArgs $;

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

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

        /**
         * @param groupIds GroupIds from the private link service resource.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(@Nullable Output> groupIds) {
            $.groupIds = groupIds;
            return this;
        }

        /**
         * @param groupIds GroupIds from the private link service resource.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(List groupIds) {
            return groupIds(Output.of(groupIds));
        }

        /**
         * @param groupIds GroupIds from the private link service resource.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(String... groupIds) {
            return groupIds(List.of(groupIds));
        }

        /**
         * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name).
         * 
         * @return builder
         * 
         */
        public Builder parentName(Output parentName) {
            $.parentName = parentName;
            return this;
        }

        /**
         * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner namespace name).
         * 
         * @return builder
         * 
         */
        public Builder parentName(String parentName) {
            return parentName(Output.of(parentName));
        }

        /**
         * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\'.
         * 
         * @return builder
         * 
         */
        public Builder parentType(Output parentType) {
            $.parentType = parentType;
            return this;
        }

        /**
         * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or \'partnerNamespaces\'.
         * 
         * @return builder
         * 
         */
        public Builder parentType(String parentType) {
            return parentType(Output.of(parentType));
        }

        /**
         * @param privateEndpoint The Private Endpoint resource for this Connection.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoint(@Nullable Output privateEndpoint) {
            $.privateEndpoint = privateEndpoint;
            return this;
        }

        /**
         * @param privateEndpoint The Private Endpoint resource for this Connection.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoint(PrivateEndpointArgs privateEndpoint) {
            return privateEndpoint(Output.of(privateEndpoint));
        }

        /**
         * @param privateEndpointConnectionName The name of the private endpoint connection connection.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointConnectionName(@Nullable Output privateEndpointConnectionName) {
            $.privateEndpointConnectionName = privateEndpointConnectionName;
            return this;
        }

        /**
         * @param privateEndpointConnectionName The name of the private endpoint connection connection.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointConnectionName(String privateEndpointConnectionName) {
            return privateEndpointConnectionName(Output.of(privateEndpointConnectionName));
        }

        /**
         * @param privateLinkServiceConnectionState Details about the state of the connection.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceConnectionState(@Nullable Output privateLinkServiceConnectionState) {
            $.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
            return this;
        }

        /**
         * @param privateLinkServiceConnectionState Details about the state of the connection.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceConnectionState(ConnectionStateArgs privateLinkServiceConnectionState) {
            return privateLinkServiceConnectionState(Output.of(privateLinkServiceConnectionState));
        }

        /**
         * @param provisioningState Provisioning state of the Private Endpoint Connection.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output> provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState Provisioning state of the Private Endpoint Connection.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(Either provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @param provisioningState Provisioning state of the Private Endpoint Connection.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Either.ofLeft(provisioningState));
        }

        /**
         * @param provisioningState Provisioning state of the Private Endpoint Connection.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(ResourceProvisioningState provisioningState) {
            return provisioningState(Either.ofRight(provisioningState));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public PrivateEndpointConnectionArgs build() {
            if ($.parentName == null) {
                throw new MissingRequiredPropertyException("PrivateEndpointConnectionArgs", "parentName");
            }
            if ($.parentType == null) {
                throw new MissingRequiredPropertyException("PrivateEndpointConnectionArgs", "parentType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PrivateEndpointConnectionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy