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

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

There is a newer version: 4.19.0-alpha.1730750641
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.DeviceAttributeArgs;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * BasicDevice defines one device instance.
 * 
 */
public final class BasicDevicePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final BasicDevicePatchArgs Empty = new BasicDevicePatchArgs();

    /**
     * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
     * 
     * The maximum number of attributes and capacities combined is 32.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output> attributes;

    /**
     * @return Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
     * 
     * The maximum number of attributes and capacities combined is 32.
     * 
     */
    public Optional>> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
     * 
     * The maximum number of attributes and capacities combined is 32.
     * 
     */
    @Import(name="capacity")
    private @Nullable Output> capacity;

    /**
     * @return Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
     * 
     * The maximum number of attributes and capacities combined is 32.
     * 
     */
    public Optional>> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    private BasicDevicePatchArgs() {}

    private BasicDevicePatchArgs(BasicDevicePatchArgs $) {
        this.attributes = $.attributes;
        this.capacity = $.capacity;
    }

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

    public static final class Builder {
        private BasicDevicePatchArgs $;

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

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

        /**
         * @param attributes Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
         * 
         * The maximum number of attributes and capacities combined is 32.
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output> attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
         * 
         * The maximum number of attributes and capacities combined is 32.
         * 
         * @return builder
         * 
         */
        public Builder attributes(Map attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param capacity Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
         * 
         * The maximum number of attributes and capacities combined is 32.
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output> capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
         * 
         * The maximum number of attributes and capacities combined is 32.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Map capacity) {
            return capacity(Output.of(capacity));
        }

        public BasicDevicePatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy