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

com.pulumi.azurenative.iotoperations.inputs.GenerateResourceLimitsArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.iotoperations.enums.OperationalMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * GenerateResourceLimits properties
 * 
 */
public final class GenerateResourceLimitsArgs extends com.pulumi.resources.ResourceArgs {

    public static final GenerateResourceLimitsArgs Empty = new GenerateResourceLimitsArgs();

    /**
     * The toggle to enable/disable cpu resource limits.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output> cpu;

    /**
     * @return The toggle to enable/disable cpu resource limits.
     * 
     */
    public Optional>> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    private GenerateResourceLimitsArgs() {}

    private GenerateResourceLimitsArgs(GenerateResourceLimitsArgs $) {
        this.cpu = $.cpu;
    }

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

    public static final class Builder {
        private GenerateResourceLimitsArgs $;

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

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

        /**
         * @param cpu The toggle to enable/disable cpu resource limits.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output> cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu The toggle to enable/disable cpu resource limits.
         * 
         * @return builder
         * 
         */
        public Builder cpu(Either cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param cpu The toggle to enable/disable cpu resource limits.
         * 
         * @return builder
         * 
         */
        public Builder cpu(String cpu) {
            return cpu(Either.ofLeft(cpu));
        }

        /**
         * @param cpu The toggle to enable/disable cpu resource limits.
         * 
         * @return builder
         * 
         */
        public Builder cpu(OperationalMode cpu) {
            return cpu(Either.ofRight(cpu));
        }

        public GenerateResourceLimitsArgs build() {
            $.cpu = Codegen.stringProp("cpu").left(OperationalMode.class).output().arg($.cpu).def("Enabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy