com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.PolicyPatch 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.auditregistration.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PolicyPatch {
/**
* @return The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
*
*/
private @Nullable String level;
/**
* @return Stages is a list of stages for which events are created.
*
*/
private @Nullable List stages;
private PolicyPatch() {}
/**
* @return The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
*
*/
public Optional level() {
return Optional.ofNullable(this.level);
}
/**
* @return Stages is a list of stages for which events are created.
*
*/
public List stages() {
return this.stages == null ? List.of() : this.stages;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String level;
private @Nullable List stages;
public Builder() {}
public Builder(PolicyPatch defaults) {
Objects.requireNonNull(defaults);
this.level = defaults.level;
this.stages = defaults.stages;
}
@CustomType.Setter
public Builder level(@Nullable String level) {
this.level = level;
return this;
}
@CustomType.Setter
public Builder stages(@Nullable List stages) {
this.stages = stages;
return this;
}
public Builder stages(String... stages) {
return stages(List.of(stages));
}
public PolicyPatch build() {
final var _resultValue = new PolicyPatch();
_resultValue.level = level;
_resultValue.stages = stages;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy