com.pulumi.kubernetes.rbac.v1alpha1.outputs.AggregationRulePatch 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.rbac.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.meta.v1.outputs.LabelSelectorPatch;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class AggregationRulePatch {
/**
* @return ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
*
*/
private @Nullable List clusterRoleSelectors;
private AggregationRulePatch() {}
/**
* @return ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
*
*/
public List clusterRoleSelectors() {
return this.clusterRoleSelectors == null ? List.of() : this.clusterRoleSelectors;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AggregationRulePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List clusterRoleSelectors;
public Builder() {}
public Builder(AggregationRulePatch defaults) {
Objects.requireNonNull(defaults);
this.clusterRoleSelectors = defaults.clusterRoleSelectors;
}
@CustomType.Setter
public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) {
this.clusterRoleSelectors = clusterRoleSelectors;
return this;
}
public Builder clusterRoleSelectors(LabelSelectorPatch... clusterRoleSelectors) {
return clusterRoleSelectors(List.of(clusterRoleSelectors));
}
public AggregationRulePatch build() {
final var _resultValue = new AggregationRulePatch();
_resultValue.clusterRoleSelectors = clusterRoleSelectors;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy