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

com.pulumi.azurenative.migrate.inputs.VmUptimeArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.migrate.inputs;

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


/**
 * Details on the total up-time for the VM.
 * 
 */
public final class VmUptimeArgs extends com.pulumi.resources.ResourceArgs {

    public static final VmUptimeArgs Empty = new VmUptimeArgs();

    /**
     * Number of days in a month for VM uptime.
     * 
     */
    @Import(name="daysPerMonth")
    private @Nullable Output daysPerMonth;

    /**
     * @return Number of days in a month for VM uptime.
     * 
     */
    public Optional> daysPerMonth() {
        return Optional.ofNullable(this.daysPerMonth);
    }

    /**
     * Number of hours per day for VM uptime.
     * 
     */
    @Import(name="hoursPerDay")
    private @Nullable Output hoursPerDay;

    /**
     * @return Number of hours per day for VM uptime.
     * 
     */
    public Optional> hoursPerDay() {
        return Optional.ofNullable(this.hoursPerDay);
    }

    private VmUptimeArgs() {}

    private VmUptimeArgs(VmUptimeArgs $) {
        this.daysPerMonth = $.daysPerMonth;
        this.hoursPerDay = $.hoursPerDay;
    }

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

    public static final class Builder {
        private VmUptimeArgs $;

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

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

        /**
         * @param daysPerMonth Number of days in a month for VM uptime.
         * 
         * @return builder
         * 
         */
        public Builder daysPerMonth(@Nullable Output daysPerMonth) {
            $.daysPerMonth = daysPerMonth;
            return this;
        }

        /**
         * @param daysPerMonth Number of days in a month for VM uptime.
         * 
         * @return builder
         * 
         */
        public Builder daysPerMonth(Double daysPerMonth) {
            return daysPerMonth(Output.of(daysPerMonth));
        }

        /**
         * @param hoursPerDay Number of hours per day for VM uptime.
         * 
         * @return builder
         * 
         */
        public Builder hoursPerDay(@Nullable Output hoursPerDay) {
            $.hoursPerDay = hoursPerDay;
            return this;
        }

        /**
         * @param hoursPerDay Number of hours per day for VM uptime.
         * 
         * @return builder
         * 
         */
        public Builder hoursPerDay(Double hoursPerDay) {
            return hoursPerDay(Output.of(hoursPerDay));
        }

        public VmUptimeArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy