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

com.pulumi.azurenative.awsconnector.inputs.HardwareArgs Maven / Gradle / Ivy

// *** 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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.DiskArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Hardware
 * 
 */
public final class HardwareArgs extends com.pulumi.resources.ResourceArgs {

    public static final HardwareArgs Empty = new HardwareArgs();

    /**
     * CPU count of the Instance.
     * 
     */
    @Import(name="cpuCount")
    private @Nullable Output cpuCount;

    /**
     * @return CPU count of the Instance.
     * 
     */
    public Optional> cpuCount() {
        return Optional.ofNullable(this.cpuCount);
    }

    /**
     * Disks attached to the Instance.
     * 
     */
    @Import(name="disks")
    private @Nullable Output> disks;

    /**
     * @return Disks attached to the Instance.
     * 
     */
    public Optional>> disks() {
        return Optional.ofNullable(this.disks);
    }

    /**
     * RAM Size of the Instance.
     * 
     */
    @Import(name="ramSizeInGb")
    private @Nullable Output ramSizeInGb;

    /**
     * @return RAM Size of the Instance.
     * 
     */
    public Optional> ramSizeInGb() {
        return Optional.ofNullable(this.ramSizeInGb);
    }

    private HardwareArgs() {}

    private HardwareArgs(HardwareArgs $) {
        this.cpuCount = $.cpuCount;
        this.disks = $.disks;
        this.ramSizeInGb = $.ramSizeInGb;
    }

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

    public static final class Builder {
        private HardwareArgs $;

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

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

        /**
         * @param cpuCount CPU count of the Instance.
         * 
         * @return builder
         * 
         */
        public Builder cpuCount(@Nullable Output cpuCount) {
            $.cpuCount = cpuCount;
            return this;
        }

        /**
         * @param cpuCount CPU count of the Instance.
         * 
         * @return builder
         * 
         */
        public Builder cpuCount(Integer cpuCount) {
            return cpuCount(Output.of(cpuCount));
        }

        /**
         * @param disks Disks attached to the Instance.
         * 
         * @return builder
         * 
         */
        public Builder disks(@Nullable Output> disks) {
            $.disks = disks;
            return this;
        }

        /**
         * @param disks Disks attached to the Instance.
         * 
         * @return builder
         * 
         */
        public Builder disks(List disks) {
            return disks(Output.of(disks));
        }

        /**
         * @param disks Disks attached to the Instance.
         * 
         * @return builder
         * 
         */
        public Builder disks(DiskArgs... disks) {
            return disks(List.of(disks));
        }

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

        /**
         * @param ramSizeInGb RAM Size of the Instance.
         * 
         * @return builder
         * 
         */
        public Builder ramSizeInGb(Integer ramSizeInGb) {
            return ramSizeInGb(Output.of(ramSizeInGb));
        }

        public HardwareArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy