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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.KafkaAclArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProjectDatabase;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class KafkaAclArgs extends com.pulumi.resources.ResourceArgs {

    public static final KafkaAclArgs Empty = new KafkaAclArgs();

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

    /**
     * Permission to give to this username on this topic.
     * Available permissions:
     * 
     */
    @Import(name="permission", required=true)
    private Output permission;

    /**
     * @return Permission to give to this username on this topic.
     * Available permissions:
     * 
     */
    public Output permission() {
        return this.permission;
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * Topic affected by this ACL.
     * 
     */
    @Import(name="topic", required=true)
    private Output topic;

    /**
     * @return Topic affected by this ACL.
     * 
     */
    public Output topic() {
        return this.topic;
    }

    /**
     * Username affected by this ACL.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return Username affected by this ACL.
     * 
     */
    public Output username() {
        return this.username;
    }

    private KafkaAclArgs() {}

    private KafkaAclArgs(KafkaAclArgs $) {
        this.clusterId = $.clusterId;
        this.permission = $.permission;
        this.serviceName = $.serviceName;
        this.topic = $.topic;
        this.username = $.username;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(KafkaAclArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private KafkaAclArgs $;

        public Builder() {
            $ = new KafkaAclArgs();
        }

        public Builder(KafkaAclArgs defaults) {
            $ = new KafkaAclArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param permission Permission to give to this username on this topic.
         * Available permissions:
         * 
         * @return builder
         * 
         */
        public Builder permission(Output permission) {
            $.permission = permission;
            return this;
        }

        /**
         * @param permission Permission to give to this username on this topic.
         * Available permissions:
         * 
         * @return builder
         * 
         */
        public Builder permission(String permission) {
            return permission(Output.of(permission));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param topic Topic affected by this ACL.
         * 
         * @return builder
         * 
         */
        public Builder topic(Output topic) {
            $.topic = topic;
            return this;
        }

        /**
         * @param topic Topic affected by this ACL.
         * 
         * @return builder
         * 
         */
        public Builder topic(String topic) {
            return topic(Output.of(topic));
        }

        /**
         * @param username Username affected by this ACL.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username affected by this ACL.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public KafkaAclArgs build() {
            if ($.clusterId == null) {
                throw new MissingRequiredPropertyException("KafkaAclArgs", "clusterId");
            }
            if ($.permission == null) {
                throw new MissingRequiredPropertyException("KafkaAclArgs", "permission");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("KafkaAclArgs", "serviceName");
            }
            if ($.topic == null) {
                throw new MissingRequiredPropertyException("KafkaAclArgs", "topic");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("KafkaAclArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy