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

com.pulumi.azurenative.eventhub.SchemaRegistryArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.eventhub;

import com.pulumi.azurenative.eventhub.enums.SchemaCompatibility;
import com.pulumi.azurenative.eventhub.enums.SchemaType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SchemaRegistryArgs Empty = new SchemaRegistryArgs();

    /**
     * dictionary object for SchemaGroup group properties
     * 
     */
    @Import(name="groupProperties")
    private @Nullable Output> groupProperties;

    /**
     * @return dictionary object for SchemaGroup group properties
     * 
     */
    public Optional>> groupProperties() {
        return Optional.ofNullable(this.groupProperties);
    }

    /**
     * The Namespace name
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The Namespace name
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * Name of the resource group within the azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group within the azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    @Import(name="schemaCompatibility")
    private @Nullable Output> schemaCompatibility;

    public Optional>> schemaCompatibility() {
        return Optional.ofNullable(this.schemaCompatibility);
    }

    /**
     * The Schema Group name
     * 
     */
    @Import(name="schemaGroupName")
    private @Nullable Output schemaGroupName;

    /**
     * @return The Schema Group name
     * 
     */
    public Optional> schemaGroupName() {
        return Optional.ofNullable(this.schemaGroupName);
    }

    @Import(name="schemaType")
    private @Nullable Output> schemaType;

    public Optional>> schemaType() {
        return Optional.ofNullable(this.schemaType);
    }

    private SchemaRegistryArgs() {}

    private SchemaRegistryArgs(SchemaRegistryArgs $) {
        this.groupProperties = $.groupProperties;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
        this.schemaCompatibility = $.schemaCompatibility;
        this.schemaGroupName = $.schemaGroupName;
        this.schemaType = $.schemaType;
    }

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

    public static final class Builder {
        private SchemaRegistryArgs $;

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

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

        /**
         * @param groupProperties dictionary object for SchemaGroup group properties
         * 
         * @return builder
         * 
         */
        public Builder groupProperties(@Nullable Output> groupProperties) {
            $.groupProperties = groupProperties;
            return this;
        }

        /**
         * @param groupProperties dictionary object for SchemaGroup group properties
         * 
         * @return builder
         * 
         */
        public Builder groupProperties(Map groupProperties) {
            return groupProperties(Output.of(groupProperties));
        }

        /**
         * @param namespaceName The Namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The Namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param resourceGroupName Name of the resource group within the azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group within the azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public Builder schemaCompatibility(@Nullable Output> schemaCompatibility) {
            $.schemaCompatibility = schemaCompatibility;
            return this;
        }

        public Builder schemaCompatibility(Either schemaCompatibility) {
            return schemaCompatibility(Output.of(schemaCompatibility));
        }

        public Builder schemaCompatibility(String schemaCompatibility) {
            return schemaCompatibility(Either.ofLeft(schemaCompatibility));
        }

        public Builder schemaCompatibility(SchemaCompatibility schemaCompatibility) {
            return schemaCompatibility(Either.ofRight(schemaCompatibility));
        }

        /**
         * @param schemaGroupName The Schema Group name
         * 
         * @return builder
         * 
         */
        public Builder schemaGroupName(@Nullable Output schemaGroupName) {
            $.schemaGroupName = schemaGroupName;
            return this;
        }

        /**
         * @param schemaGroupName The Schema Group name
         * 
         * @return builder
         * 
         */
        public Builder schemaGroupName(String schemaGroupName) {
            return schemaGroupName(Output.of(schemaGroupName));
        }

        public Builder schemaType(@Nullable Output> schemaType) {
            $.schemaType = schemaType;
            return this;
        }

        public Builder schemaType(Either schemaType) {
            return schemaType(Output.of(schemaType));
        }

        public Builder schemaType(String schemaType) {
            return schemaType(Either.ofLeft(schemaType));
        }

        public Builder schemaType(SchemaType schemaType) {
            return schemaType(Either.ofRight(schemaType));
        }

        public SchemaRegistryArgs build() {
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("SchemaRegistryArgs", "namespaceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SchemaRegistryArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy