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

com.pulumi.github.inputs.OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs Maven / Gradle / Ivy

There is a newer version: 6.4.0-alpha.1731735876
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.github.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs Empty = new OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs();

    /**
     * The path to the workflow YAML definition file.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The path to the workflow YAML definition file.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * The ref (branch or tag) of the workflow file to use.
     * 
     */
    @Import(name="ref")
    private @Nullable Output ref;

    /**
     * @return The ref (branch or tag) of the workflow file to use.
     * 
     */
    public Optional> ref() {
        return Optional.ofNullable(this.ref);
    }

    /**
     * The repository in which the workflow is defined.
     * 
     */
    @Import(name="repositoryId", required=true)
    private Output repositoryId;

    /**
     * @return The repository in which the workflow is defined.
     * 
     */
    public Output repositoryId() {
        return this.repositoryId;
    }

    private OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs() {}

    private OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs(OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs $) {
        this.path = $.path;
        this.ref = $.ref;
        this.repositoryId = $.repositoryId;
    }

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

    public static final class Builder {
        private OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs $;

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

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

        /**
         * @param path The path to the workflow YAML definition file.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path to the workflow YAML definition file.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param ref The ref (branch or tag) of the workflow file to use.
         * 
         * @return builder
         * 
         */
        public Builder ref(@Nullable Output ref) {
            $.ref = ref;
            return this;
        }

        /**
         * @param ref The ref (branch or tag) of the workflow file to use.
         * 
         * @return builder
         * 
         */
        public Builder ref(String ref) {
            return ref(Output.of(ref));
        }

        /**
         * @param repositoryId The repository in which the workflow is defined.
         * 
         * @return builder
         * 
         */
        public Builder repositoryId(Output repositoryId) {
            $.repositoryId = repositoryId;
            return this;
        }

        /**
         * @param repositoryId The repository in which the workflow is defined.
         * 
         * @return builder
         * 
         */
        public Builder repositoryId(Integer repositoryId) {
            return repositoryId(Output.of(repositoryId));
        }

        public OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs build() {
            if ($.path == null) {
                throw new MissingRequiredPropertyException("OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs", "path");
            }
            if ($.repositoryId == null) {
                throw new MissingRequiredPropertyException("OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflowArgs", "repositoryId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy