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

com.pulumi.libvirt.inputs.DomainGraphicsArgs 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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DomainGraphicsArgs Empty = new DomainGraphicsArgs();

    /**
     * defaults to "yes"
     * 
     */
    @Import(name="autoport")
    private @Nullable Output autoport;

    /**
     * @return defaults to "yes"
     * 
     */
    public Optional> autoport() {
        return Optional.ofNullable(this.autoport);
    }

    /**
     * IP Address where the VNC listener should be started if
     * `listen_type` is set to `address`. Defaults to 127.0.0.1
     * 
     */
    @Import(name="listenAddress")
    private @Nullable Output listenAddress;

    /**
     * @return IP Address where the VNC listener should be started if
     * `listen_type` is set to `address`. Defaults to 127.0.0.1
     * 
     */
    public Optional> listenAddress() {
        return Optional.ofNullable(this.listenAddress);
    }

    /**
     * "listen type", defaults to "none"
     * 
     */
    @Import(name="listenType")
    private @Nullable Output listenType;

    /**
     * @return "listen type", defaults to "none"
     * 
     */
    public Optional> listenType() {
        return Optional.ofNullable(this.listenType);
    }

    /**
     * the type of graphics emulation (default is "spice")
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return the type of graphics emulation (default is "spice")
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
     * 
     * On occasion we have found it necessary to set a `type` of `vnc` and a
     * `listen_type` of `address` with certain builds of QEMU.
     * 
     * With `listen_address` it is possible to specify a listener address for the virtual
     * machines VNC server. Usually this is an IP of the host system.
     * 
     * The `graphics` block will look as follows:
     * 
     */
    @Import(name="websocket")
    private @Nullable Output websocket;

    /**
     * @return Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
     * 
     * On occasion we have found it necessary to set a `type` of `vnc` and a
     * `listen_type` of `address` with certain builds of QEMU.
     * 
     * With `listen_address` it is possible to specify a listener address for the virtual
     * machines VNC server. Usually this is an IP of the host system.
     * 
     * The `graphics` block will look as follows:
     * 
     */
    public Optional> websocket() {
        return Optional.ofNullable(this.websocket);
    }

    private DomainGraphicsArgs() {}

    private DomainGraphicsArgs(DomainGraphicsArgs $) {
        this.autoport = $.autoport;
        this.listenAddress = $.listenAddress;
        this.listenType = $.listenType;
        this.type = $.type;
        this.websocket = $.websocket;
    }

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

    public static final class Builder {
        private DomainGraphicsArgs $;

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

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

        /**
         * @param autoport defaults to "yes"
         * 
         * @return builder
         * 
         */
        public Builder autoport(@Nullable Output autoport) {
            $.autoport = autoport;
            return this;
        }

        /**
         * @param autoport defaults to "yes"
         * 
         * @return builder
         * 
         */
        public Builder autoport(Boolean autoport) {
            return autoport(Output.of(autoport));
        }

        /**
         * @param listenAddress IP Address where the VNC listener should be started if
         * `listen_type` is set to `address`. Defaults to 127.0.0.1
         * 
         * @return builder
         * 
         */
        public Builder listenAddress(@Nullable Output listenAddress) {
            $.listenAddress = listenAddress;
            return this;
        }

        /**
         * @param listenAddress IP Address where the VNC listener should be started if
         * `listen_type` is set to `address`. Defaults to 127.0.0.1
         * 
         * @return builder
         * 
         */
        public Builder listenAddress(String listenAddress) {
            return listenAddress(Output.of(listenAddress));
        }

        /**
         * @param listenType "listen type", defaults to "none"
         * 
         * @return builder
         * 
         */
        public Builder listenType(@Nullable Output listenType) {
            $.listenType = listenType;
            return this;
        }

        /**
         * @param listenType "listen type", defaults to "none"
         * 
         * @return builder
         * 
         */
        public Builder listenType(String listenType) {
            return listenType(Output.of(listenType));
        }

        /**
         * @param type the type of graphics emulation (default is "spice")
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type the type of graphics emulation (default is "spice")
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param websocket Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
         * 
         * On occasion we have found it necessary to set a `type` of `vnc` and a
         * `listen_type` of `address` with certain builds of QEMU.
         * 
         * With `listen_address` it is possible to specify a listener address for the virtual
         * machines VNC server. Usually this is an IP of the host system.
         * 
         * The `graphics` block will look as follows:
         * 
         * @return builder
         * 
         */
        public Builder websocket(@Nullable Output websocket) {
            $.websocket = websocket;
            return this;
        }

        /**
         * @param websocket Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
         * 
         * On occasion we have found it necessary to set a `type` of `vnc` and a
         * `listen_type` of `address` with certain builds of QEMU.
         * 
         * With `listen_address` it is possible to specify a listener address for the virtual
         * machines VNC server. Usually this is an IP of the host system.
         * 
         * The `graphics` block will look as follows:
         * 
         * @return builder
         * 
         */
        public Builder websocket(Integer websocket) {
            return websocket(Output.of(websocket));
        }

        public DomainGraphicsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy