com.pulumi.kubernetes.extensions.v1beta1.outputs.RunAsGroupStrategyOptions 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.extensions.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.extensions.v1beta1.outputs.IDRange;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class RunAsGroupStrategyOptions {
/**
* @return ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
*
*/
private @Nullable List ranges;
/**
* @return rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
*
*/
private String rule;
private RunAsGroupStrategyOptions() {}
/**
* @return ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
*
*/
public List ranges() {
return this.ranges == null ? List.of() : this.ranges;
}
/**
* @return rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
*
*/
public String rule() {
return this.rule;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RunAsGroupStrategyOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List ranges;
private String rule;
public Builder() {}
public Builder(RunAsGroupStrategyOptions defaults) {
Objects.requireNonNull(defaults);
this.ranges = defaults.ranges;
this.rule = defaults.rule;
}
@CustomType.Setter
public Builder ranges(@Nullable List ranges) {
this.ranges = ranges;
return this;
}
public Builder ranges(IDRange... ranges) {
return ranges(List.of(ranges));
}
@CustomType.Setter
public Builder rule(String rule) {
if (rule == null) {
throw new MissingRequiredPropertyException("RunAsGroupStrategyOptions", "rule");
}
this.rule = rule;
return this;
}
public RunAsGroupStrategyOptions build() {
final var _resultValue = new RunAsGroupStrategyOptions();
_resultValue.ranges = ranges;
_resultValue.rule = rule;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy