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

com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceSelectorArgs 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.kubernetes.resource.v1alpha3.inputs.CELDeviceSelectorArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DeviceSelector must have exactly one field set.
 * 
 */
public final class DeviceSelectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeviceSelectorArgs Empty = new DeviceSelectorArgs();

    /**
     * CEL contains a CEL expression for selecting a device.
     * 
     */
    @Import(name="cel")
    private @Nullable Output cel;

    /**
     * @return CEL contains a CEL expression for selecting a device.
     * 
     */
    public Optional> cel() {
        return Optional.ofNullable(this.cel);
    }

    private DeviceSelectorArgs() {}

    private DeviceSelectorArgs(DeviceSelectorArgs $) {
        this.cel = $.cel;
    }

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

    public static final class Builder {
        private DeviceSelectorArgs $;

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

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

        /**
         * @param cel CEL contains a CEL expression for selecting a device.
         * 
         * @return builder
         * 
         */
        public Builder cel(@Nullable Output cel) {
            $.cel = cel;
            return this;
        }

        /**
         * @param cel CEL contains a CEL expression for selecting a device.
         * 
         * @return builder
         * 
         */
        public Builder cel(CELDeviceSelectorArgs cel) {
            return cel(Output.of(cel));
        }

        public DeviceSelectorArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy