sdk/java/src/main/java/com/pulumi/ovh/Me/IpxeScriptArgs.java
// *** 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.ovh.Me;

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 IpxeScriptArgs extends com.pulumi.resources.ResourceArgs {

    public static final IpxeScriptArgs Empty = new IpxeScriptArgs();

    /**
     * For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description (&#39;$name auto description&#39;) is passed at creation time.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description (&#39;$name auto description&#39;) is passed at creation time.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the IPXE Script.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the IPXE Script.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The content of the script.
     * 
     */
    @Import(name="script", required=true)
    private Output<String> script;

    /**
     * @return The content of the script.
     * 
     */
    public Output<String> script() {
        return this.script;
    }

    private IpxeScriptArgs() {}

    private IpxeScriptArgs(IpxeScriptArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.script = $.script;
    }

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

    public static final class Builder {
        private IpxeScriptArgs $;

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

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

        /**
         * @param description For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description (&#39;$name auto description&#39;) is passed at creation time.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description (&#39;$name auto description&#39;) is passed at creation time.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name of the IPXE Script.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param script The content of the script.
         * 
         * @return builder
         * 
         */
        public Builder script(Output<String> script) {
            $.script = script;
            return this;
        }

        /**
         * @param script The content of the script.
         * 
         * @return builder
         * 
         */
        public Builder script(String script) {
            return script(Output.of(script));
        }

        public IpxeScriptArgs build() {
            $.script = Objects.requireNonNull($.script, "expected parameter 'script' to be non-null");
            return $;
        }
    }

}
