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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.KafkaSchemaRegistryAclState 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final KafkaSchemaRegistryAclState Empty = new KafkaSchemaRegistryAclState();

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

    /**
     * @return Cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

    /**
     * Permission to give to this username on this resource.
     * Available permissions:
     * 
     */
    @Import(name="permission")
    private @Nullable Output permission;

    /**
     * @return Permission to give to this username on this resource.
     * Available permissions:
     * 
     */
    public Optional> permission() {
        return Optional.ofNullable(this.permission);
    }

    /**
     * Resource affected by this schema registry ACL.
     * 
     */
    @Import(name="resource")
    private @Nullable Output resource;

    /**
     * @return Resource affected by this schema registry ACL.
     * 
     */
    public Optional> resource() {
        return Optional.ofNullable(this.resource);
    }

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

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

    /**
     * Username affected by this schema registry ACL.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Username affected by this schema registry ACL.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private KafkaSchemaRegistryAclState() {}

    private KafkaSchemaRegistryAclState(KafkaSchemaRegistryAclState $) {
        this.clusterId = $.clusterId;
        this.permission = $.permission;
        this.resource = $.resource;
        this.serviceName = $.serviceName;
        this.username = $.username;
    }

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

    public static final class Builder {
        private KafkaSchemaRegistryAclState $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable 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 resource.
         * Available permissions:
         * 
         * @return builder
         * 
         */
        public Builder permission(@Nullable Output permission) {
            $.permission = permission;
            return this;
        }

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

        /**
         * @param resource Resource affected by this schema registry ACL.
         * 
         * @return builder
         * 
         */
        public Builder resource(@Nullable Output resource) {
            $.resource = resource;
            return this;
        }

        /**
         * @param resource Resource affected by this schema registry ACL.
         * 
         * @return builder
         * 
         */
        public Builder resource(String resource) {
            return resource(Output.of(resource));
        }

        /**
         * @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(@Nullable 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 username Username affected by this schema registry ACL.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

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

        public KafkaSchemaRegistryAclState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy