All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.AuditSinkSpec Maven / Gradle / Ivy

There is a newer version: 4.19.0
Show newest version
// *** 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