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

com.pulumi.azurenative.cdn.inputs.SharedPrivateLinkResourcePropertiesArgs Maven / Gradle / Ivy

// *** 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.cdn.inputs;

import com.pulumi.azurenative.cdn.enums.SharedPrivateLinkResourceStatus;
import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
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;


/**
 * Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin.
 * 
 */
public final class SharedPrivateLinkResourcePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final SharedPrivateLinkResourcePropertiesArgs Empty = new SharedPrivateLinkResourcePropertiesArgs();

    /**
     * The group id from the provider of resource the shared private link resource is for.
     * 
     */
    @Import(name="groupId")
    private @Nullable Output groupId;

    /**
     * @return The group id from the provider of resource the shared private link resource is for.
     * 
     */
    public Optional> groupId() {
        return Optional.ofNullable(this.groupId);
    }

    /**
     * The resource id of the resource the shared private link resource is for.
     * 
     */
    @Import(name="privateLink")
    private @Nullable Output privateLink;

    /**
     * @return The resource id of the resource the shared private link resource is for.
     * 
     */
    public Optional> privateLink() {
        return Optional.ofNullable(this.privateLink);
    }

    /**
     * The location of the shared private link resource
     * 
     */
    @Import(name="privateLinkLocation")
    private @Nullable Output privateLinkLocation;

    /**
     * @return The location of the shared private link resource
     * 
     */
    public Optional> privateLinkLocation() {
        return Optional.ofNullable(this.privateLinkLocation);
    }

    /**
     * The request message for requesting approval of the shared private link resource.
     * 
     */
    @Import(name="requestMessage")
    private @Nullable Output requestMessage;

    /**
     * @return The request message for requesting approval of the shared private link resource.
     * 
     */
    public Optional> requestMessage() {
        return Optional.ofNullable(this.requestMessage);
    }

    /**
     * Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private SharedPrivateLinkResourcePropertiesArgs() {}

    private SharedPrivateLinkResourcePropertiesArgs(SharedPrivateLinkResourcePropertiesArgs $) {
        this.groupId = $.groupId;
        this.privateLink = $.privateLink;
        this.privateLinkLocation = $.privateLinkLocation;
        this.requestMessage = $.requestMessage;
        this.status = $.status;
    }

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

    public static final class Builder {
        private SharedPrivateLinkResourcePropertiesArgs $;

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

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

        /**
         * @param groupId The group id from the provider of resource the shared private link resource is for.
         * 
         * @return builder
         * 
         */
        public Builder groupId(@Nullable Output groupId) {
            $.groupId = groupId;
            return this;
        }

        /**
         * @param groupId The group id from the provider of resource the shared private link resource is for.
         * 
         * @return builder
         * 
         */
        public Builder groupId(String groupId) {
            return groupId(Output.of(groupId));
        }

        /**
         * @param privateLink The resource id of the resource the shared private link resource is for.
         * 
         * @return builder
         * 
         */
        public Builder privateLink(@Nullable Output privateLink) {
            $.privateLink = privateLink;
            return this;
        }

        /**
         * @param privateLink The resource id of the resource the shared private link resource is for.
         * 
         * @return builder
         * 
         */
        public Builder privateLink(ResourceReferenceArgs privateLink) {
            return privateLink(Output.of(privateLink));
        }

        /**
         * @param privateLinkLocation The location of the shared private link resource
         * 
         * @return builder
         * 
         */
        public Builder privateLinkLocation(@Nullable Output privateLinkLocation) {
            $.privateLinkLocation = privateLinkLocation;
            return this;
        }

        /**
         * @param privateLinkLocation The location of the shared private link resource
         * 
         * @return builder
         * 
         */
        public Builder privateLinkLocation(String privateLinkLocation) {
            return privateLinkLocation(Output.of(privateLinkLocation));
        }

        /**
         * @param requestMessage The request message for requesting approval of the shared private link resource.
         * 
         * @return builder
         * 
         */
        public Builder requestMessage(@Nullable Output requestMessage) {
            $.requestMessage = requestMessage;
            return this;
        }

        /**
         * @param requestMessage The request message for requesting approval of the shared private link resource.
         * 
         * @return builder
         * 
         */
        public Builder requestMessage(String requestMessage) {
            return requestMessage(Output.of(requestMessage));
        }

        /**
         * @param status Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
         * 
         * @return builder
         * 
         */
        public Builder status(SharedPrivateLinkResourceStatus status) {
            return status(Output.of(status));
        }

        public SharedPrivateLinkResourcePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy