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

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

There is a newer version: 6.3.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.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 CodespacesOrganizationSecretState extends com.pulumi.resources.ResourceArgs {

    public static final CodespacesOrganizationSecretState Empty = new CodespacesOrganizationSecretState();

    /**
     * Date of codespaces_secret creation.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return Date of codespaces_secret creation.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * Encrypted value of the secret using the GitHub public key in Base64 format.
     * 
     */
    @Import(name="encryptedValue")
    private @Nullable Output encryptedValue;

    /**
     * @return Encrypted value of the secret using the GitHub public key in Base64 format.
     * 
     */
    public Optional> encryptedValue() {
        return Optional.ofNullable(this.encryptedValue);
    }

    /**
     * Plaintext value of the secret to be encrypted
     * 
     */
    @Import(name="plaintextValue")
    private @Nullable Output plaintextValue;

    /**
     * @return Plaintext value of the secret to be encrypted
     * 
     */
    public Optional> plaintextValue() {
        return Optional.ofNullable(this.plaintextValue);
    }

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

    /**
     * @return Name of the 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);
    }

    /**
     * Date of codespaces_secret update.
     * 
     */
    @Import(name="updatedAt")
    private @Nullable Output updatedAt;

    /**
     * @return Date of codespaces_secret update.
     * 
     */
    public Optional> updatedAt() {
        return Optional.ofNullable(this.updatedAt);
    }

    /**
     * Configures the access that repositories have to the organization secret.
     * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
     * 
     */
    @Import(name="visibility")
    private @Nullable Output visibility;

    /**
     * @return Configures the access that repositories have to the organization secret.
     * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
     * 
     */
    public Optional> visibility() {
        return Optional.ofNullable(this.visibility);
    }

    private CodespacesOrganizationSecretState() {}

    private CodespacesOrganizationSecretState(CodespacesOrganizationSecretState $) {
        this.createdAt = $.createdAt;
        this.encryptedValue = $.encryptedValue;
        this.plaintextValue = $.plaintextValue;
        this.secretName = $.secretName;
        this.selectedRepositoryIds = $.selectedRepositoryIds;
        this.updatedAt = $.updatedAt;
        this.visibility = $.visibility;
    }

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

    public static final class Builder {
        private CodespacesOrganizationSecretState $;

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

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

        /**
         * @param createdAt Date of codespaces_secret creation.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt Date of codespaces_secret creation.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param encryptedValue Encrypted value of the secret using the GitHub public key in Base64 format.
         * 
         * @return builder
         * 
         */
        public Builder encryptedValue(@Nullable Output encryptedValue) {
            $.encryptedValue = encryptedValue;
            return this;
        }

        /**
         * @param encryptedValue Encrypted value of the secret using the GitHub public key in Base64 format.
         * 
         * @return builder
         * 
         */
        public Builder encryptedValue(String encryptedValue) {
            return encryptedValue(Output.of(encryptedValue));
        }

        /**
         * @param plaintextValue Plaintext value of the secret to be encrypted
         * 
         * @return builder
         * 
         */
        public Builder plaintextValue(@Nullable Output plaintextValue) {
            $.plaintextValue = plaintextValue;
            return this;
        }

        /**
         * @param plaintextValue Plaintext value of the secret to be encrypted
         * 
         * @return builder
         * 
         */
        public Builder plaintextValue(String plaintextValue) {
            return plaintextValue(Output.of(plaintextValue));
        }

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

        /**
         * @param secretName Name of the 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));
        }

        /**
         * @param updatedAt Date of codespaces_secret update.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(@Nullable Output updatedAt) {
            $.updatedAt = updatedAt;
            return this;
        }

        /**
         * @param updatedAt Date of codespaces_secret update.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(String updatedAt) {
            return updatedAt(Output.of(updatedAt));
        }

        /**
         * @param visibility Configures the access that repositories have to the organization secret.
         * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
         * 
         * @return builder
         * 
         */
        public Builder visibility(@Nullable Output visibility) {
            $.visibility = visibility;
            return this;
        }

        /**
         * @param visibility Configures the access that repositories have to the organization secret.
         * Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
         * 
         * @return builder
         * 
         */
        public Builder visibility(String visibility) {
            return visibility(Output.of(visibility));
        }

        public CodespacesOrganizationSecretState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy