com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesRequestPatch 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.resource.v1alpha2.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 NamedResourcesRequestPatch {
/**
* @return Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
*
* In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
*
* attributes.quantity["a"].isGreaterThan(quantity("0")) &&
* attributes.stringslice["b"].isSorted()
*
*/
private @Nullable String selector;
private NamedResourcesRequestPatch() {}
/**
* @return Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
*
* In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
*
* attributes.quantity["a"].isGreaterThan(quantity("0")) &&
* attributes.stringslice["b"].isSorted()
*
*/
public Optional selector() {
return Optional.ofNullable(this.selector);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NamedResourcesRequestPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String selector;
public Builder() {}
public Builder(NamedResourcesRequestPatch defaults) {
Objects.requireNonNull(defaults);
this.selector = defaults.selector;
}
@CustomType.Setter
public Builder selector(@Nullable String selector) {
this.selector = selector;
return this;
}
public NamedResourcesRequestPatch build() {
final var _resultValue = new NamedResourcesRequestPatch();
_resultValue.selector = selector;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy