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

com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceArgs Maven / Gradle / Ivy

There is a newer version: 4.19.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.kubernetes.resource.v1alpha3.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.resource.v1alpha3.inputs.BasicDeviceArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
 * 
 */
public final class DeviceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeviceArgs Empty = new DeviceArgs();

    /**
     * Basic defines one device instance.
     * 
     */
    @Import(name="basic")
    private @Nullable Output basic;

    /**
     * @return Basic defines one device instance.
     * 
     */
    public Optional> basic() {
        return Optional.ofNullable(this.basic);
    }

    /**
     * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
     * 
     */
    public Output name() {
        return this.name;
    }

    private DeviceArgs() {}

    private DeviceArgs(DeviceArgs $) {
        this.basic = $.basic;
        this.name = $.name;
    }

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

    public static final class Builder {
        private DeviceArgs $;

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

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

        /**
         * @param basic Basic defines one device instance.
         * 
         * @return builder
         * 
         */
        public Builder basic(@Nullable Output basic) {
            $.basic = basic;
            return this;
        }

        /**
         * @param basic Basic defines one device instance.
         * 
         * @return builder
         * 
         */
        public Builder basic(BasicDeviceArgs basic) {
            return basic(Output.of(basic));
        }

        /**
         * @param name Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public DeviceArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("DeviceArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy