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

com.pulumi.azurenative.digitaltwins.inputs.ConnectionPropertiesPrivateLinkServiceConnectionStateArgs 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.digitaltwins.inputs;

import com.pulumi.azurenative.digitaltwins.enums.PrivateLinkServiceConnectionStatus;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The connection state.
 * 
 */
public final class ConnectionPropertiesPrivateLinkServiceConnectionStateArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionPropertiesPrivateLinkServiceConnectionStateArgs Empty = new ConnectionPropertiesPrivateLinkServiceConnectionStateArgs();

    /**
     * Actions required for a private endpoint connection.
     * 
     */
    @Import(name="actionsRequired")
    private @Nullable Output actionsRequired;

    /**
     * @return Actions required for a private endpoint connection.
     * 
     */
    public Optional> actionsRequired() {
        return Optional.ofNullable(this.actionsRequired);
    }

    /**
     * The description for the current state of a private endpoint connection.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return The description for the current state of a private endpoint connection.
     * 
     */
    public Output description() {
        return this.description;
    }

    /**
     * The status of a private endpoint connection.
     * 
     */
    @Import(name="status", required=true)
    private Output> status;

    /**
     * @return The status of a private endpoint connection.
     * 
     */
    public Output> status() {
        return this.status;
    }

    private ConnectionPropertiesPrivateLinkServiceConnectionStateArgs() {}

    private ConnectionPropertiesPrivateLinkServiceConnectionStateArgs(ConnectionPropertiesPrivateLinkServiceConnectionStateArgs $) {
        this.actionsRequired = $.actionsRequired;
        this.description = $.description;
        this.status = $.status;
    }

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

    public static final class Builder {
        private ConnectionPropertiesPrivateLinkServiceConnectionStateArgs $;

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

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

        /**
         * @param actionsRequired Actions required for a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder actionsRequired(@Nullable Output actionsRequired) {
            $.actionsRequired = actionsRequired;
            return this;
        }

        /**
         * @param actionsRequired Actions required for a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder actionsRequired(String actionsRequired) {
            return actionsRequired(Output.of(actionsRequired));
        }

        /**
         * @param description The description for the current state of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description for the current state of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param status The status of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder status(Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status The status of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status The status of a private endpoint connection.
         * 
         * @return builder
         * 
         */
        public Builder status(PrivateLinkServiceConnectionStatus status) {
            return status(Either.ofRight(status));
        }

        public ConnectionPropertiesPrivateLinkServiceConnectionStateArgs build() {
            if ($.description == null) {
                throw new MissingRequiredPropertyException("ConnectionPropertiesPrivateLinkServiceConnectionStateArgs", "description");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("ConnectionPropertiesPrivateLinkServiceConnectionStateArgs", "status");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy