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

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


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

    public static final ActionsEnvironmentSecretState Empty = new ActionsEnvironmentSecretState();

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

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

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

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

    /**
     * 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 repository.
     * 
     */
    @Import(name="repository")
    private @Nullable Output repository;

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

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

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

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

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

    private ActionsEnvironmentSecretState() {}

    private ActionsEnvironmentSecretState(ActionsEnvironmentSecretState $) {
        this.createdAt = $.createdAt;
        this.encryptedValue = $.encryptedValue;
        this.environment = $.environment;
        this.plaintextValue = $.plaintextValue;
        this.repository = $.repository;
        this.secretName = $.secretName;
        this.updatedAt = $.updatedAt;
    }

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

    public static final class Builder {
        private ActionsEnvironmentSecretState $;

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

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

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

        /**
         * @param createdAt Date of actions_environment_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 environment Name of the environment.
         * 
         * @return builder
         * 
         */
        public Builder environment(@Nullable Output environment) {
            $.environment = environment;
            return this;
        }

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

        /**
         * @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 repository Name of the repository.
         * 
         * @return builder
         * 
         */
        public Builder repository(@Nullable Output repository) {
            $.repository = repository;
            return this;
        }

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

        /**
         * @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 updatedAt Date of actions_environment_secret update.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(@Nullable Output updatedAt) {
            $.updatedAt = updatedAt;
            return this;
        }

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

        public ActionsEnvironmentSecretState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy