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

com.pulumi.azurenative.servicelinker.inputs.AzureResourceArgs 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.servicelinker.inputs;

import com.pulumi.azurenative.servicelinker.inputs.AzureKeyVaultPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The azure resource info when target service type is AzureResource
 * 
 */
public final class AzureResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureResourceArgs Empty = new AzureResourceArgs();

    /**
     * The Id of azure resource.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The Id of azure resource.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The azure resource connection related properties.
     * 
     */
    @Import(name="resourceProperties")
    private @Nullable Output resourceProperties;

    /**
     * @return The azure resource connection related properties.
     * 
     */
    public Optional> resourceProperties() {
        return Optional.ofNullable(this.resourceProperties);
    }

    /**
     * The target service type.
     * Expected value is 'AzureResource'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The target service type.
     * Expected value is 'AzureResource'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AzureResourceArgs() {}

    private AzureResourceArgs(AzureResourceArgs $) {
        this.id = $.id;
        this.resourceProperties = $.resourceProperties;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AzureResourceArgs $;

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

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

        /**
         * @param id The Id of azure resource.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The Id of azure resource.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param resourceProperties The azure resource connection related properties.
         * 
         * @return builder
         * 
         */
        public Builder resourceProperties(@Nullable Output resourceProperties) {
            $.resourceProperties = resourceProperties;
            return this;
        }

        /**
         * @param resourceProperties The azure resource connection related properties.
         * 
         * @return builder
         * 
         */
        public Builder resourceProperties(AzureKeyVaultPropertiesArgs resourceProperties) {
            return resourceProperties(Output.of(resourceProperties));
        }

        /**
         * @param type The target service type.
         * Expected value is 'AzureResource'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The target service type.
         * Expected value is 'AzureResource'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AzureResourceArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy