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

com.pulumi.docker.inputs.GetLogsPlainArgs Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.inputs;

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


public final class GetLogsPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetLogsPlainArgs Empty = new GetLogsPlainArgs();

    @Import(name="details")
    private @Nullable Boolean details;

    public Optional details() {
        return Optional.ofNullable(this.details);
    }

    /**
     * Discard headers that docker appends to each log entry
     * 
     */
    @Import(name="discardHeaders")
    private @Nullable Boolean discardHeaders;

    /**
     * @return Discard headers that docker appends to each log entry
     * 
     */
    public Optional discardHeaders() {
        return Optional.ofNullable(this.discardHeaders);
    }

    @Import(name="follow")
    private @Nullable Boolean follow;

    public Optional follow() {
        return Optional.ofNullable(this.follow);
    }

    /**
     * If true populate computed value `logs_list_string`
     * 
     */
    @Import(name="logsListStringEnabled")
    private @Nullable Boolean logsListStringEnabled;

    /**
     * @return If true populate computed value `logs_list_string`
     * 
     */
    public Optional logsListStringEnabled() {
        return Optional.ofNullable(this.logsListStringEnabled);
    }

    /**
     * The name of the Docker Container
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return The name of the Docker Container
     * 
     */
    public String name() {
        return this.name;
    }

    @Import(name="showStderr")
    private @Nullable Boolean showStderr;

    public Optional showStderr() {
        return Optional.ofNullable(this.showStderr);
    }

    @Import(name="showStdout")
    private @Nullable Boolean showStdout;

    public Optional showStdout() {
        return Optional.ofNullable(this.showStdout);
    }

    @Import(name="since")
    private @Nullable String since;

    public Optional since() {
        return Optional.ofNullable(this.since);
    }

    @Import(name="tail")
    private @Nullable String tail;

    public Optional tail() {
        return Optional.ofNullable(this.tail);
    }

    @Import(name="timestamps")
    private @Nullable Boolean timestamps;

    public Optional timestamps() {
        return Optional.ofNullable(this.timestamps);
    }

    @Import(name="until")
    private @Nullable String until;

    public Optional until() {
        return Optional.ofNullable(this.until);
    }

    private GetLogsPlainArgs() {}

    private GetLogsPlainArgs(GetLogsPlainArgs $) {
        this.details = $.details;
        this.discardHeaders = $.discardHeaders;
        this.follow = $.follow;
        this.logsListStringEnabled = $.logsListStringEnabled;
        this.name = $.name;
        this.showStderr = $.showStderr;
        this.showStdout = $.showStdout;
        this.since = $.since;
        this.tail = $.tail;
        this.timestamps = $.timestamps;
        this.until = $.until;
    }

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

    public static final class Builder {
        private GetLogsPlainArgs $;

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

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

        public Builder details(@Nullable Boolean details) {
            $.details = details;
            return this;
        }

        /**
         * @param discardHeaders Discard headers that docker appends to each log entry
         * 
         * @return builder
         * 
         */
        public Builder discardHeaders(@Nullable Boolean discardHeaders) {
            $.discardHeaders = discardHeaders;
            return this;
        }

        public Builder follow(@Nullable Boolean follow) {
            $.follow = follow;
            return this;
        }

        /**
         * @param logsListStringEnabled If true populate computed value `logs_list_string`
         * 
         * @return builder
         * 
         */
        public Builder logsListStringEnabled(@Nullable Boolean logsListStringEnabled) {
            $.logsListStringEnabled = logsListStringEnabled;
            return this;
        }

        /**
         * @param name The name of the Docker Container
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        public Builder showStderr(@Nullable Boolean showStderr) {
            $.showStderr = showStderr;
            return this;
        }

        public Builder showStdout(@Nullable Boolean showStdout) {
            $.showStdout = showStdout;
            return this;
        }

        public Builder since(@Nullable String since) {
            $.since = since;
            return this;
        }

        public Builder tail(@Nullable String tail) {
            $.tail = tail;
            return this;
        }

        public Builder timestamps(@Nullable Boolean timestamps) {
            $.timestamps = timestamps;
            return this;
        }

        public Builder until(@Nullable String until) {
            $.until = until;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy