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

com.pulumi.azurenative.securityinsights.inputs.RepositoryResourceInfoArgs 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.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.inputs.AzureDevOpsResourceInfoArgs;
import com.pulumi.azurenative.securityinsights.inputs.GitHubResourceInfoArgs;
import com.pulumi.azurenative.securityinsights.inputs.WebhookArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Resources created in user's repository for the source-control.
 * 
 */
public final class RepositoryResourceInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final RepositoryResourceInfoArgs Empty = new RepositoryResourceInfoArgs();

    /**
     * Resources created in Azure DevOps for this source-control.
     * 
     */
    @Import(name="azureDevOpsResourceInfo")
    private @Nullable Output azureDevOpsResourceInfo;

    /**
     * @return Resources created in Azure DevOps for this source-control.
     * 
     */
    public Optional> azureDevOpsResourceInfo() {
        return Optional.ofNullable(this.azureDevOpsResourceInfo);
    }

    /**
     * Resources created in GitHub for this source-control.
     * 
     */
    @Import(name="gitHubResourceInfo")
    private @Nullable Output gitHubResourceInfo;

    /**
     * @return Resources created in GitHub for this source-control.
     * 
     */
    public Optional> gitHubResourceInfo() {
        return Optional.ofNullable(this.gitHubResourceInfo);
    }

    /**
     * The webhook object created for the source-control.
     * 
     */
    @Import(name="webhook")
    private @Nullable Output webhook;

    /**
     * @return The webhook object created for the source-control.
     * 
     */
    public Optional> webhook() {
        return Optional.ofNullable(this.webhook);
    }

    private RepositoryResourceInfoArgs() {}

    private RepositoryResourceInfoArgs(RepositoryResourceInfoArgs $) {
        this.azureDevOpsResourceInfo = $.azureDevOpsResourceInfo;
        this.gitHubResourceInfo = $.gitHubResourceInfo;
        this.webhook = $.webhook;
    }

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

    public static final class Builder {
        private RepositoryResourceInfoArgs $;

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

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

        /**
         * @param azureDevOpsResourceInfo Resources created in Azure DevOps for this source-control.
         * 
         * @return builder
         * 
         */
        public Builder azureDevOpsResourceInfo(@Nullable Output azureDevOpsResourceInfo) {
            $.azureDevOpsResourceInfo = azureDevOpsResourceInfo;
            return this;
        }

        /**
         * @param azureDevOpsResourceInfo Resources created in Azure DevOps for this source-control.
         * 
         * @return builder
         * 
         */
        public Builder azureDevOpsResourceInfo(AzureDevOpsResourceInfoArgs azureDevOpsResourceInfo) {
            return azureDevOpsResourceInfo(Output.of(azureDevOpsResourceInfo));
        }

        /**
         * @param gitHubResourceInfo Resources created in GitHub for this source-control.
         * 
         * @return builder
         * 
         */
        public Builder gitHubResourceInfo(@Nullable Output gitHubResourceInfo) {
            $.gitHubResourceInfo = gitHubResourceInfo;
            return this;
        }

        /**
         * @param gitHubResourceInfo Resources created in GitHub for this source-control.
         * 
         * @return builder
         * 
         */
        public Builder gitHubResourceInfo(GitHubResourceInfoArgs gitHubResourceInfo) {
            return gitHubResourceInfo(Output.of(gitHubResourceInfo));
        }

        /**
         * @param webhook The webhook object created for the source-control.
         * 
         * @return builder
         * 
         */
        public Builder webhook(@Nullable Output webhook) {
            $.webhook = webhook;
            return this;
        }

        /**
         * @param webhook The webhook object created for the source-control.
         * 
         * @return builder
         * 
         */
        public Builder webhook(WebhookArgs webhook) {
            return webhook(Output.of(webhook));
        }

        public RepositoryResourceInfoArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy