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

com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesAttributePatchArgs 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.v1alpha2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesIntSlicePatchArgs;
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSlicePatchArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * NamedResourcesAttribute is a combination of an attribute name and its value.
 * 
 */
public final class NamedResourcesAttributePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final NamedResourcesAttributePatchArgs Empty = new NamedResourcesAttributePatchArgs();

    /**
     * BoolValue is a true/false value.
     * 
     */
    @Import(name="bool")
    private @Nullable Output bool;

    /**
     * @return BoolValue is a true/false value.
     * 
     */
    public Optional> bool() {
        return Optional.ofNullable(this.bool);
    }

    /**
     * IntValue is a 64-bit integer.
     * 
     */
    @Import(name="int")
    private @Nullable Output int_;

    /**
     * @return IntValue is a 64-bit integer.
     * 
     */
    public Optional> int_() {
        return Optional.ofNullable(this.int_);
    }

    /**
     * IntSliceValue is an array of 64-bit integers.
     * 
     */
    @Import(name="intSlice")
    private @Nullable Output intSlice;

    /**
     * @return IntSliceValue is an array of 64-bit integers.
     * 
     */
    public Optional> intSlice() {
        return Optional.ofNullable(this.intSlice);
    }

    /**
     * Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * QuantityValue is a quantity.
     * 
     */
    @Import(name="quantity")
    private @Nullable Output quantity;

    /**
     * @return QuantityValue is a quantity.
     * 
     */
    public Optional> quantity() {
        return Optional.ofNullable(this.quantity);
    }

    /**
     * StringValue is a string.
     * 
     */
    @Import(name="string")
    private @Nullable Output string;

    /**
     * @return StringValue is a string.
     * 
     */
    public Optional> string() {
        return Optional.ofNullable(this.string);
    }

    /**
     * StringSliceValue is an array of strings.
     * 
     */
    @Import(name="stringSlice")
    private @Nullable Output stringSlice;

    /**
     * @return StringSliceValue is an array of strings.
     * 
     */
    public Optional> stringSlice() {
        return Optional.ofNullable(this.stringSlice);
    }

    /**
     * VersionValue is a semantic version according to semver.org spec 2.0.0.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return VersionValue is a semantic version according to semver.org spec 2.0.0.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private NamedResourcesAttributePatchArgs() {}

    private NamedResourcesAttributePatchArgs(NamedResourcesAttributePatchArgs $) {
        this.bool = $.bool;
        this.int_ = $.int_;
        this.intSlice = $.intSlice;
        this.name = $.name;
        this.quantity = $.quantity;
        this.string = $.string;
        this.stringSlice = $.stringSlice;
        this.version = $.version;
    }

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

    public static final class Builder {
        private NamedResourcesAttributePatchArgs $;

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

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

        /**
         * @param bool BoolValue is a true/false value.
         * 
         * @return builder
         * 
         */
        public Builder bool(@Nullable Output bool) {
            $.bool = bool;
            return this;
        }

        /**
         * @param bool BoolValue is a true/false value.
         * 
         * @return builder
         * 
         */
        public Builder bool(Boolean bool) {
            return bool(Output.of(bool));
        }

        /**
         * @param int_ IntValue is a 64-bit integer.
         * 
         * @return builder
         * 
         */
        public Builder int_(@Nullable Output int_) {
            $.int_ = int_;
            return this;
        }

        /**
         * @param int_ IntValue is a 64-bit integer.
         * 
         * @return builder
         * 
         */
        public Builder int_(Integer int_) {
            return int_(Output.of(int_));
        }

        /**
         * @param intSlice IntSliceValue is an array of 64-bit integers.
         * 
         * @return builder
         * 
         */
        public Builder intSlice(@Nullable Output intSlice) {
            $.intSlice = intSlice;
            return this;
        }

        /**
         * @param intSlice IntSliceValue is an array of 64-bit integers.
         * 
         * @return builder
         * 
         */
        public Builder intSlice(NamedResourcesIntSlicePatchArgs intSlice) {
            return intSlice(Output.of(intSlice));
        }

        /**
         * @param name Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param quantity QuantityValue is a quantity.
         * 
         * @return builder
         * 
         */
        public Builder quantity(@Nullable Output quantity) {
            $.quantity = quantity;
            return this;
        }

        /**
         * @param quantity QuantityValue is a quantity.
         * 
         * @return builder
         * 
         */
        public Builder quantity(String quantity) {
            return quantity(Output.of(quantity));
        }

        /**
         * @param string StringValue is a string.
         * 
         * @return builder
         * 
         */
        public Builder string(@Nullable Output string) {
            $.string = string;
            return this;
        }

        /**
         * @param string StringValue is a string.
         * 
         * @return builder
         * 
         */
        public Builder string(String string) {
            return string(Output.of(string));
        }

        /**
         * @param stringSlice StringSliceValue is an array of strings.
         * 
         * @return builder
         * 
         */
        public Builder stringSlice(@Nullable Output stringSlice) {
            $.stringSlice = stringSlice;
            return this;
        }

        /**
         * @param stringSlice StringSliceValue is an array of strings.
         * 
         * @return builder
         * 
         */
        public Builder stringSlice(NamedResourcesStringSlicePatchArgs stringSlice) {
            return stringSlice(Output.of(stringSlice));
        }

        /**
         * @param version VersionValue is a semantic version according to semver.org spec 2.0.0.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version VersionValue is a semantic version according to semver.org spec 2.0.0.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public NamedResourcesAttributePatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy