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

com.pulumi.azurenative.testbase.inputs.HighlightedFileArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.testbase.inputs;

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


/**
 * The information of a highlighted file that user should pay attention to.
 * 
 */
public final class HighlightedFileArgs extends com.pulumi.resources.ResourceArgs {

    public static final HighlightedFileArgs Empty = new HighlightedFileArgs();

    /**
     * The path of the highlighted file.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The path of the highlighted file.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * The name of sections to highlight.
     * 
     */
    @Import(name="sections")
    private @Nullable Output> sections;

    /**
     * @return The name of sections to highlight.
     * 
     */
    public Optional>> sections() {
        return Optional.ofNullable(this.sections);
    }

    /**
     * A flag to save whether this file is viewed by user.
     * 
     */
    @Import(name="visited")
    private @Nullable Output visited;

    /**
     * @return A flag to save whether this file is viewed by user.
     * 
     */
    public Optional> visited() {
        return Optional.ofNullable(this.visited);
    }

    private HighlightedFileArgs() {}

    private HighlightedFileArgs(HighlightedFileArgs $) {
        this.path = $.path;
        this.sections = $.sections;
        this.visited = $.visited;
    }

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

    public static final class Builder {
        private HighlightedFileArgs $;

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

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

        /**
         * @param path The path of the highlighted file.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path of the highlighted file.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param sections The name of sections to highlight.
         * 
         * @return builder
         * 
         */
        public Builder sections(@Nullable Output> sections) {
            $.sections = sections;
            return this;
        }

        /**
         * @param sections The name of sections to highlight.
         * 
         * @return builder
         * 
         */
        public Builder sections(List sections) {
            return sections(Output.of(sections));
        }

        /**
         * @param sections The name of sections to highlight.
         * 
         * @return builder
         * 
         */
        public Builder sections(String... sections) {
            return sections(List.of(sections));
        }

        /**
         * @param visited A flag to save whether this file is viewed by user.
         * 
         * @return builder
         * 
         */
        public Builder visited(@Nullable Output visited) {
            $.visited = visited;
            return this;
        }

        /**
         * @param visited A flag to save whether this file is viewed by user.
         * 
         * @return builder
         * 
         */
        public Builder visited(Boolean visited) {
            return visited(Output.of(visited));
        }

        public HighlightedFileArgs build() {
            if ($.path == null) {
                throw new MissingRequiredPropertyException("HighlightedFileArgs", "path");
            }
            $.visited = Codegen.booleanProp("visited").output().arg($.visited).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy