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

com.pulumi.digitalocean.ContainerRegistryDockerCredentialsArgs 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.digitalocean;

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


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

    public static final ContainerRegistryDockerCredentialsArgs Empty = new ContainerRegistryDockerCredentialsArgs();

    /**
     * The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
     * 
     */
    @Import(name="expirySeconds")
    private @Nullable Output expirySeconds;

    /**
     * @return The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
     * 
     */
    public Optional> expirySeconds() {
        return Optional.ofNullable(this.expirySeconds);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    /**
     * Allow for write access to the container registry. Defaults to false.
     * 
     */
    @Import(name="write")
    private @Nullable Output write;

    /**
     * @return Allow for write access to the container registry. Defaults to false.
     * 
     */
    public Optional> write() {
        return Optional.ofNullable(this.write);
    }

    private ContainerRegistryDockerCredentialsArgs() {}

    private ContainerRegistryDockerCredentialsArgs(ContainerRegistryDockerCredentialsArgs $) {
        this.expirySeconds = $.expirySeconds;
        this.registryName = $.registryName;
        this.write = $.write;
    }

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

    public static final class Builder {
        private ContainerRegistryDockerCredentialsArgs $;

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

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

        /**
         * @param expirySeconds The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
         * 
         * @return builder
         * 
         */
        public Builder expirySeconds(@Nullable Output expirySeconds) {
            $.expirySeconds = expirySeconds;
            return this;
        }

        /**
         * @param expirySeconds The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
         * 
         * @return builder
         * 
         */
        public Builder expirySeconds(Integer expirySeconds) {
            return expirySeconds(Output.of(expirySeconds));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        /**
         * @param write Allow for write access to the container registry. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder write(@Nullable Output write) {
            $.write = write;
            return this;
        }

        /**
         * @param write Allow for write access to the container registry. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder write(Boolean write) {
            return write(Output.of(write));
        }

        public ContainerRegistryDockerCredentialsArgs build() {
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("ContainerRegistryDockerCredentialsArgs", "registryName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy