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

com.pulumi.libvirt.inputs.IgnitionState Maven / Gradle / Ivy

There is a newer version: 0.6.0-alpha.1732600491
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.libvirt.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 IgnitionState extends com.pulumi.resources.ResourceArgs {

    public static final IgnitionState Empty = new IgnitionState();

    @Import(name="content")
    private @Nullable Output content;

    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    /**
     * A unique name for the resource, required by libvirt.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A unique name for the resource, required by libvirt.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The pool where the resource will be created.
     * If not given, the `default` pool will be used.
     * 
     */
    @Import(name="pool")
    private @Nullable Output pool;

    /**
     * @return The pool where the resource will be created.
     * If not given, the `default` pool will be used.
     * 
     */
    public Optional> pool() {
        return Optional.ofNullable(this.pool);
    }

    private IgnitionState() {}

    private IgnitionState(IgnitionState $) {
        this.content = $.content;
        this.name = $.name;
        this.pool = $.pool;
    }

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

    public static final class Builder {
        private IgnitionState $;

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

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

        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param name A unique name for the resource, required by libvirt.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A unique name for the resource, required by libvirt.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param pool The pool where the resource will be created.
         * If not given, the `default` pool will be used.
         * 
         * @return builder
         * 
         */
        public Builder pool(@Nullable Output pool) {
            $.pool = pool;
            return this;
        }

        /**
         * @param pool The pool where the resource will be created.
         * If not given, the `default` pool will be used.
         * 
         * @return builder
         * 
         */
        public Builder pool(String pool) {
            return pool(Output.of(pool));
        }

        public IgnitionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy