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

com.pulumi.kubernetes.apiextensions.v1.outputs.SelectableFieldPatch Maven / Gradle / Ivy

// *** 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.apiextensions.v1.outputs;

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 SelectableFieldPatch {
    /**
     * @return jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
     * 
     */
    private @Nullable String jsonPath;

    private SelectableFieldPatch() {}
    /**
     * @return jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
     * 
     */
    public Optional jsonPath() {
        return Optional.ofNullable(this.jsonPath);
    }

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

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

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

            this.jsonPath = jsonPath;
            return this;
        }
        public SelectableFieldPatch build() {
            final var _resultValue = new SelectableFieldPatch();
            _resultValue.jsonPath = jsonPath;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy