com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.AuditSinkSpec 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Policy;
import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Webhook;
import java.util.Objects;
@CustomType
public final class AuditSinkSpec {
/**
* @return Policy defines the policy for selecting which events should be sent to the webhook required
*
*/
private Policy policy;
/**
* @return Webhook to send events required
*
*/
private Webhook webhook;
private AuditSinkSpec() {}
/**
* @return Policy defines the policy for selecting which events should be sent to the webhook required
*
*/
public Policy policy() {
return this.policy;
}
/**
* @return Webhook to send events required
*
*/
public Webhook webhook() {
return this.webhook;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AuditSinkSpec defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Policy policy;
private Webhook webhook;
public Builder() {}
public Builder(AuditSinkSpec defaults) {
Objects.requireNonNull(defaults);
this.policy = defaults.policy;
this.webhook = defaults.webhook;
}
@CustomType.Setter
public Builder policy(Policy policy) {
if (policy == null) {
throw new MissingRequiredPropertyException("AuditSinkSpec", "policy");
}
this.policy = policy;
return this;
}
@CustomType.Setter
public Builder webhook(Webhook webhook) {
if (webhook == null) {
throw new MissingRequiredPropertyException("AuditSinkSpec", "webhook");
}
this.webhook = webhook;
return this;
}
public AuditSinkSpec build() {
final var _resultValue = new AuditSinkSpec();
_resultValue.policy = policy;
_resultValue.webhook = webhook;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy