com.pulumi.kubernetes.apiextensions.v1.inputs.SelectableFieldArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* SelectableField specifies the JSON path of a field that may be used with field selectors.
*
*/
public final class SelectableFieldArgs extends com.pulumi.resources.ResourceArgs {
public static final SelectableFieldArgs Empty = new SelectableFieldArgs();
/**
* 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.
*
*/
@Import(name="jsonPath", required=true)
private Output jsonPath;
/**
* @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 Output jsonPath() {
return this.jsonPath;
}
private SelectableFieldArgs() {}
private SelectableFieldArgs(SelectableFieldArgs $) {
this.jsonPath = $.jsonPath;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SelectableFieldArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SelectableFieldArgs $;
public Builder() {
$ = new SelectableFieldArgs();
}
public Builder(SelectableFieldArgs defaults) {
$ = new SelectableFieldArgs(Objects.requireNonNull(defaults));
}
/**
* @param jsonPath 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.
*
* @return builder
*
*/
public Builder jsonPath(Output jsonPath) {
$.jsonPath = jsonPath;
return this;
}
/**
* @param jsonPath 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.
*
* @return builder
*
*/
public Builder jsonPath(String jsonPath) {
return jsonPath(Output.of(jsonPath));
}
public SelectableFieldArgs build() {
if ($.jsonPath == null) {
throw new MissingRequiredPropertyException("SelectableFieldArgs", "jsonPath");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy