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

com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceHandleArgs 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.StructuredResourceHandleArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
 * 
 */
public final class ResourceHandleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceHandleArgs Empty = new ResourceHandleArgs();

    /**
     * Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
     * 
     * The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
     * 
     */
    @Import(name="data")
    private @Nullable Output data;

    /**
     * @return Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
     * 
     * The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
     * 
     */
    public Optional> data() {
        return Optional.ofNullable(this.data);
    }

    /**
     * DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
     * 
     */
    @Import(name="driverName")
    private @Nullable Output driverName;

    /**
     * @return DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
     * 
     */
    public Optional> driverName() {
        return Optional.ofNullable(this.driverName);
    }

    /**
     * If StructuredData is set, then it needs to be used instead of Data.
     * 
     */
    @Import(name="structuredData")
    private @Nullable Output structuredData;

    /**
     * @return If StructuredData is set, then it needs to be used instead of Data.
     * 
     */
    public Optional> structuredData() {
        return Optional.ofNullable(this.structuredData);
    }

    private ResourceHandleArgs() {}

    private ResourceHandleArgs(ResourceHandleArgs $) {
        this.data = $.data;
        this.driverName = $.driverName;
        this.structuredData = $.structuredData;
    }

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

    public static final class Builder {
        private ResourceHandleArgs $;

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

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

        /**
         * @param data Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
         * 
         * The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder data(@Nullable Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
         * 
         * The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param driverName DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
         * 
         * @return builder
         * 
         */
        public Builder driverName(@Nullable Output driverName) {
            $.driverName = driverName;
            return this;
        }

        /**
         * @param driverName DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
         * 
         * @return builder
         * 
         */
        public Builder driverName(String driverName) {
            return driverName(Output.of(driverName));
        }

        /**
         * @param structuredData If StructuredData is set, then it needs to be used instead of Data.
         * 
         * @return builder
         * 
         */
        public Builder structuredData(@Nullable Output structuredData) {
            $.structuredData = structuredData;
            return this;
        }

        /**
         * @param structuredData If StructuredData is set, then it needs to be used instead of Data.
         * 
         * @return builder
         * 
         */
        public Builder structuredData(StructuredResourceHandleArgs structuredData) {
            return structuredData(Output.of(structuredData));
        }

        public ResourceHandleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy