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

com.pulumi.kubernetes.resource.v1alpha3.outputs.OpaqueDeviceConfigurationPatch Maven / Gradle / Ivy

There is a newer version: 4.21.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.outputs;

import com.google.gson.JsonElement;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OpaqueDeviceConfigurationPatch {
    /**
     * @return Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
     * 
     * An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     */
    private @Nullable String driver;
    /**
     * @return Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
     * 
     */
    private @Nullable JsonElement parameters;

    private OpaqueDeviceConfigurationPatch() {}
    /**
     * @return Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
     * 
     * An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     */
    public Optional driver() {
        return Optional.ofNullable(this.driver);
    }
    /**
     * @return Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
     * 
     */
    public Optional parameters() {
        return Optional.ofNullable(this.parameters);
    }

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

    public static Builder builder(OpaqueDeviceConfigurationPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String driver;
        private @Nullable JsonElement parameters;
        public Builder() {}
        public Builder(OpaqueDeviceConfigurationPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.driver = defaults.driver;
    	      this.parameters = defaults.parameters;
        }

        @CustomType.Setter
        public Builder driver(@Nullable String driver) {

            this.driver = driver;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable JsonElement parameters) {

            this.parameters = parameters;
            return this;
        }
        public OpaqueDeviceConfigurationPatch build() {
            final var _resultValue = new OpaqueDeviceConfigurationPatch();
            _resultValue.driver = driver;
            _resultValue.parameters = parameters;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy