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

com.ovhcloud.pulumi.ovh.Vps.inputs.VpsModelArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.Vps.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VpsModelArgs Empty = new VpsModelArgs();

    /**
     * All options the VPS can have (additionalDisk┃automatedBackup┃cpanel┃ftpbackup┃plesk┃snapshot┃veeam┃windows)
     * 
     */
    @Import(name="availableOptions")
    private @Nullable Output> availableOptions;

    /**
     * @return All options the VPS can have (additionalDisk┃automatedBackup┃cpanel┃ftpbackup┃plesk┃snapshot┃veeam┃windows)
     * 
     */
    public Optional>> availableOptions() {
        return Optional.ofNullable(this.availableOptions);
    }

    /**
     * Datacenters where this model is available
     * 
     */
    @Import(name="datacenters")
    private @Nullable Output> datacenters;

    /**
     * @return Datacenters where this model is available
     * 
     */
    public Optional>> datacenters() {
        return Optional.ofNullable(this.datacenters);
    }

    /**
     * Disk capacity of this VPS
     * 
     */
    @Import(name="disk")
    private @Nullable Output disk;

    /**
     * @return Disk capacity of this VPS
     * 
     */
    public Optional> disk() {
        return Optional.ofNullable(this.disk);
    }

    /**
     * Maximum number of additional IPs
     * 
     */
    @Import(name="maximumAdditionnalIp")
    private @Nullable Output maximumAdditionnalIp;

    /**
     * @return Maximum number of additional IPs
     * 
     */
    public Optional> maximumAdditionnalIp() {
        return Optional.ofNullable(this.maximumAdditionnalIp);
    }

    /**
     * RAM of the VPS
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @return RAM of the VPS
     * 
     */
    public Optional> memory() {
        return Optional.ofNullable(this.memory);
    }

    /**
     * Name of the VPS
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the VPS
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Description of this VPS offer
     * 
     */
    @Import(name="offer")
    private @Nullable Output offer;

    /**
     * @return Description of this VPS offer
     * 
     */
    public Optional> offer() {
        return Optional.ofNullable(this.offer);
    }

    /**
     * Number of vcores
     * 
     */
    @Import(name="vcore")
    private @Nullable Output vcore;

    /**
     * @return Number of vcores
     * 
     */
    public Optional> vcore() {
        return Optional.ofNullable(this.vcore);
    }

    /**
     * All versions that VPS can have (2013v1┃2014v1┃2015v1┃2017v1┃2017v2┃2017v3┃2018v1┃2018v2┃2019v1)
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return All versions that VPS can have (2013v1┃2014v1┃2015v1┃2017v1┃2017v2┃2017v3┃2018v1┃2018v2┃2019v1)
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private VpsModelArgs() {}

    private VpsModelArgs(VpsModelArgs $) {
        this.availableOptions = $.availableOptions;
        this.datacenters = $.datacenters;
        this.disk = $.disk;
        this.maximumAdditionnalIp = $.maximumAdditionnalIp;
        this.memory = $.memory;
        this.name = $.name;
        this.offer = $.offer;
        this.vcore = $.vcore;
        this.version = $.version;
    }

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

    public static final class Builder {
        private VpsModelArgs $;

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

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

        /**
         * @param availableOptions All options the VPS can have (additionalDisk┃automatedBackup┃cpanel┃ftpbackup┃plesk┃snapshot┃veeam┃windows)
         * 
         * @return builder
         * 
         */
        public Builder availableOptions(@Nullable Output> availableOptions) {
            $.availableOptions = availableOptions;
            return this;
        }

        /**
         * @param availableOptions All options the VPS can have (additionalDisk┃automatedBackup┃cpanel┃ftpbackup┃plesk┃snapshot┃veeam┃windows)
         * 
         * @return builder
         * 
         */
        public Builder availableOptions(List availableOptions) {
            return availableOptions(Output.of(availableOptions));
        }

        /**
         * @param availableOptions All options the VPS can have (additionalDisk┃automatedBackup┃cpanel┃ftpbackup┃plesk┃snapshot┃veeam┃windows)
         * 
         * @return builder
         * 
         */
        public Builder availableOptions(String... availableOptions) {
            return availableOptions(List.of(availableOptions));
        }

        /**
         * @param datacenters Datacenters where this model is available
         * 
         * @return builder
         * 
         */
        public Builder datacenters(@Nullable Output> datacenters) {
            $.datacenters = datacenters;
            return this;
        }

        /**
         * @param datacenters Datacenters where this model is available
         * 
         * @return builder
         * 
         */
        public Builder datacenters(List datacenters) {
            return datacenters(Output.of(datacenters));
        }

        /**
         * @param datacenters Datacenters where this model is available
         * 
         * @return builder
         * 
         */
        public Builder datacenters(String... datacenters) {
            return datacenters(List.of(datacenters));
        }

        /**
         * @param disk Disk capacity of this VPS
         * 
         * @return builder
         * 
         */
        public Builder disk(@Nullable Output disk) {
            $.disk = disk;
            return this;
        }

        /**
         * @param disk Disk capacity of this VPS
         * 
         * @return builder
         * 
         */
        public Builder disk(Double disk) {
            return disk(Output.of(disk));
        }

        /**
         * @param maximumAdditionnalIp Maximum number of additional IPs
         * 
         * @return builder
         * 
         */
        public Builder maximumAdditionnalIp(@Nullable Output maximumAdditionnalIp) {
            $.maximumAdditionnalIp = maximumAdditionnalIp;
            return this;
        }

        /**
         * @param maximumAdditionnalIp Maximum number of additional IPs
         * 
         * @return builder
         * 
         */
        public Builder maximumAdditionnalIp(Double maximumAdditionnalIp) {
            return maximumAdditionnalIp(Output.of(maximumAdditionnalIp));
        }

        /**
         * @param memory RAM of the VPS
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory RAM of the VPS
         * 
         * @return builder
         * 
         */
        public Builder memory(Double memory) {
            return memory(Output.of(memory));
        }

        /**
         * @param name Name of the VPS
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the VPS
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param offer Description of this VPS offer
         * 
         * @return builder
         * 
         */
        public Builder offer(@Nullable Output offer) {
            $.offer = offer;
            return this;
        }

        /**
         * @param offer Description of this VPS offer
         * 
         * @return builder
         * 
         */
        public Builder offer(String offer) {
            return offer(Output.of(offer));
        }

        /**
         * @param vcore Number of vcores
         * 
         * @return builder
         * 
         */
        public Builder vcore(@Nullable Output vcore) {
            $.vcore = vcore;
            return this;
        }

        /**
         * @param vcore Number of vcores
         * 
         * @return builder
         * 
         */
        public Builder vcore(Double vcore) {
            return vcore(Output.of(vcore));
        }

        /**
         * @param version All versions that VPS can have (2013v1┃2014v1┃2015v1┃2017v1┃2017v2┃2017v3┃2018v1┃2018v2┃2019v1)
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version All versions that VPS can have (2013v1┃2014v1┃2015v1┃2017v1┃2017v2┃2017v3┃2018v1┃2018v2┃2019v1)
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public VpsModelArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy