com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.NonResourcePolicyRule 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.flowcontrol.v1beta2.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class NonResourcePolicyRule {
/**
* @return `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
* - "/healthz" is legal
* - "/hea*" is illegal
* - "/hea" is legal but matches nothing
* - "/hea/*" also matches nothing
* - "/healthz/*" matches all per-component health checks.
* "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
*
*/
private List nonResourceURLs;
/**
* @return `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
*
*/
private List verbs;
private NonResourcePolicyRule() {}
/**
* @return `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
* - "/healthz" is legal
* - "/hea*" is illegal
* - "/hea" is legal but matches nothing
* - "/hea/*" also matches nothing
* - "/healthz/*" matches all per-component health checks.
* "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
*
*/
public List nonResourceURLs() {
return this.nonResourceURLs;
}
/**
* @return `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
*
*/
public List verbs() {
return this.verbs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NonResourcePolicyRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List nonResourceURLs;
private List verbs;
public Builder() {}
public Builder(NonResourcePolicyRule defaults) {
Objects.requireNonNull(defaults);
this.nonResourceURLs = defaults.nonResourceURLs;
this.verbs = defaults.verbs;
}
@CustomType.Setter
public Builder nonResourceURLs(List nonResourceURLs) {
if (nonResourceURLs == null) {
throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs");
}
this.nonResourceURLs = nonResourceURLs;
return this;
}
public Builder nonResourceURLs(String... nonResourceURLs) {
return nonResourceURLs(List.of(nonResourceURLs));
}
@CustomType.Setter
public Builder verbs(List verbs) {
if (verbs == null) {
throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs");
}
this.verbs = verbs;
return this;
}
public Builder verbs(String... verbs) {
return verbs(List.of(verbs));
}
public NonResourcePolicyRule build() {
final var _resultValue = new NonResourcePolicyRule();
_resultValue.nonResourceURLs = nonResourceURLs;
_resultValue.verbs = verbs;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy