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

com.pulumi.azurenative.resources.inputs.DeploymentStacksTemplateLinkArgs 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.resources.inputs;

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;


/**
 * Entity representing the reference to the template.
 * 
 */
public final class DeploymentStacksTemplateLinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentStacksTemplateLinkArgs Empty = new DeploymentStacksTemplateLinkArgs();

    /**
     * If included, must match the ContentVersion in the template.
     * 
     */
    @Import(name="contentVersion")
    private @Nullable Output contentVersion;

    /**
     * @return If included, must match the ContentVersion in the template.
     * 
     */
    public Optional> contentVersion() {
        return Optional.ofNullable(this.contentVersion);
    }

    /**
     * The resource id of a Template Spec. Use either the id or uri property, but not both.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The resource id of a Template Spec. Use either the id or uri property, but not both.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The query string (for example, a SAS token) to be used with the templateLink URI.
     * 
     */
    @Import(name="queryString")
    private @Nullable Output queryString;

    /**
     * @return The query string (for example, a SAS token) to be used with the templateLink URI.
     * 
     */
    public Optional> queryString() {
        return Optional.ofNullable(this.queryString);
    }

    /**
     * The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec.  If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs
     * 
     */
    @Import(name="relativePath")
    private @Nullable Output relativePath;

    /**
     * @return The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec.  If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs
     * 
     */
    public Optional> relativePath() {
        return Optional.ofNullable(this.relativePath);
    }

    /**
     * The URI of the template to deploy. Use either the uri or id property, but not both.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return The URI of the template to deploy. Use either the uri or id property, but not both.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    private DeploymentStacksTemplateLinkArgs() {}

    private DeploymentStacksTemplateLinkArgs(DeploymentStacksTemplateLinkArgs $) {
        this.contentVersion = $.contentVersion;
        this.id = $.id;
        this.queryString = $.queryString;
        this.relativePath = $.relativePath;
        this.uri = $.uri;
    }

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

    public static final class Builder {
        private DeploymentStacksTemplateLinkArgs $;

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

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

        /**
         * @param contentVersion If included, must match the ContentVersion in the template.
         * 
         * @return builder
         * 
         */
        public Builder contentVersion(@Nullable Output contentVersion) {
            $.contentVersion = contentVersion;
            return this;
        }

        /**
         * @param contentVersion If included, must match the ContentVersion in the template.
         * 
         * @return builder
         * 
         */
        public Builder contentVersion(String contentVersion) {
            return contentVersion(Output.of(contentVersion));
        }

        /**
         * @param id The resource id of a Template Spec. Use either the id or uri property, but not both.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The resource id of a Template Spec. Use either the id or uri property, but not both.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param queryString The query string (for example, a SAS token) to be used with the templateLink URI.
         * 
         * @return builder
         * 
         */
        public Builder queryString(@Nullable Output queryString) {
            $.queryString = queryString;
            return this;
        }

        /**
         * @param queryString The query string (for example, a SAS token) to be used with the templateLink URI.
         * 
         * @return builder
         * 
         */
        public Builder queryString(String queryString) {
            return queryString(Output.of(queryString));
        }

        /**
         * @param relativePath The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec.  If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs
         * 
         * @return builder
         * 
         */
        public Builder relativePath(@Nullable Output relativePath) {
            $.relativePath = relativePath;
            return this;
        }

        /**
         * @param relativePath The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec.  If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs
         * 
         * @return builder
         * 
         */
        public Builder relativePath(String relativePath) {
            return relativePath(Output.of(relativePath));
        }

        /**
         * @param uri The URI of the template to deploy. Use either the uri or id property, but not both.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri The URI of the template to deploy. Use either the uri or id property, but not both.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public DeploymentStacksTemplateLinkArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy