com.pulumi.kubernetes.admissionregistration.v1.outputs.ValidatingAdmissionPolicyStatus 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.admissionregistration.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.admissionregistration.v1.outputs.TypeChecking;
import com.pulumi.kubernetes.meta.v1.outputs.Condition;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ValidatingAdmissionPolicyStatus {
/**
* @return The conditions represent the latest available observations of a policy's current state.
*
*/
private @Nullable List conditions;
/**
* @return The generation observed by the controller.
*
*/
private @Nullable Integer observedGeneration;
/**
* @return The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
*
*/
private @Nullable TypeChecking typeChecking;
private ValidatingAdmissionPolicyStatus() {}
/**
* @return The conditions represent the latest available observations of a policy's current state.
*
*/
public List conditions() {
return this.conditions == null ? List.of() : this.conditions;
}
/**
* @return The generation observed by the controller.
*
*/
public Optional observedGeneration() {
return Optional.ofNullable(this.observedGeneration);
}
/**
* @return The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
*
*/
public Optional typeChecking() {
return Optional.ofNullable(this.typeChecking);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ValidatingAdmissionPolicyStatus defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List conditions;
private @Nullable Integer observedGeneration;
private @Nullable TypeChecking typeChecking;
public Builder() {}
public Builder(ValidatingAdmissionPolicyStatus defaults) {
Objects.requireNonNull(defaults);
this.conditions = defaults.conditions;
this.observedGeneration = defaults.observedGeneration;
this.typeChecking = defaults.typeChecking;
}
@CustomType.Setter
public Builder conditions(@Nullable List conditions) {
this.conditions = conditions;
return this;
}
public Builder conditions(Condition... conditions) {
return conditions(List.of(conditions));
}
@CustomType.Setter
public Builder observedGeneration(@Nullable Integer observedGeneration) {
this.observedGeneration = observedGeneration;
return this;
}
@CustomType.Setter
public Builder typeChecking(@Nullable TypeChecking typeChecking) {
this.typeChecking = typeChecking;
return this;
}
public ValidatingAdmissionPolicyStatus build() {
final var _resultValue = new ValidatingAdmissionPolicyStatus();
_resultValue.conditions = conditions;
_resultValue.observedGeneration = observedGeneration;
_resultValue.typeChecking = typeChecking;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy