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

com.pulumi.github.inputs.DependabotOrganizationSecretRepositoriesState 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 java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DependabotOrganizationSecretRepositoriesState Empty = new DependabotOrganizationSecretRepositoriesState();

    /**
     * Name of the existing secret
     * 
     */
    @Import(name="secretName")
    private @Nullable Output secretName;

    /**
     * @return Name of the existing secret
     * 
     */
    public Optional> secretName() {
        return Optional.ofNullable(this.secretName);
    }

    /**
     * An array of repository ids that can access the organization secret.
     * 
     */
    @Import(name="selectedRepositoryIds")
    private @Nullable Output> selectedRepositoryIds;

    /**
     * @return An array of repository ids that can access the organization secret.
     * 
     */
    public Optional>> selectedRepositoryIds() {
        return Optional.ofNullable(this.selectedRepositoryIds);
    }

    private DependabotOrganizationSecretRepositoriesState() {}

    private DependabotOrganizationSecretRepositoriesState(DependabotOrganizationSecretRepositoriesState $) {
        this.secretName = $.secretName;
        this.selectedRepositoryIds = $.selectedRepositoryIds;
    }

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

    public static final class Builder {
        private DependabotOrganizationSecretRepositoriesState $;

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

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

        /**
         * @param secretName Name of the existing secret
         * 
         * @return builder
         * 
         */
        public Builder secretName(@Nullable Output secretName) {
            $.secretName = secretName;
            return this;
        }

        /**
         * @param secretName Name of the existing secret
         * 
         * @return builder
         * 
         */
        public Builder secretName(String secretName) {
            return secretName(Output.of(secretName));
        }

        /**
         * @param selectedRepositoryIds An array of repository ids that can access the organization secret.
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(@Nullable Output> selectedRepositoryIds) {
            $.selectedRepositoryIds = selectedRepositoryIds;
            return this;
        }

        /**
         * @param selectedRepositoryIds An array of repository ids that can access the organization secret.
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(List selectedRepositoryIds) {
            return selectedRepositoryIds(Output.of(selectedRepositoryIds));
        }

        /**
         * @param selectedRepositoryIds An array of repository ids that can access the organization secret.
         * 
         * @return builder
         * 
         */
        public Builder selectedRepositoryIds(Integer... selectedRepositoryIds) {
            return selectedRepositoryIds(List.of(selectedRepositoryIds));
        }

        public DependabotOrganizationSecretRepositoriesState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy