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

com.pulumi.azurenative.deviceregistry.SchemaArgs 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.deviceregistry;

import com.pulumi.azurenative.deviceregistry.enums.Format;
import com.pulumi.azurenative.deviceregistry.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 SchemaArgs extends com.pulumi.resources.ResourceArgs {

    public static final SchemaArgs Empty = new SchemaArgs();

    /**
     * Human-readable description of the schema.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Human-readable description of the schema.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Human-readable display name.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Human-readable display name.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Format of the schema.
     * 
     */
    @Import(name="format", required=true)
    private Output> format;

    /**
     * @return Format of the schema.
     * 
     */
    public Output> format() {
        return this.format;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Schema name parameter.
     * 
     */
    @Import(name="schemaName")
    private @Nullable Output schemaName;

    /**
     * @return Schema name parameter.
     * 
     */
    public Optional> schemaName() {
        return Optional.ofNullable(this.schemaName);
    }

    /**
     * Schema registry name parameter.
     * 
     */
    @Import(name="schemaRegistryName", required=true)
    private Output schemaRegistryName;

    /**
     * @return Schema registry name parameter.
     * 
     */
    public Output schemaRegistryName() {
        return this.schemaRegistryName;
    }

    /**
     * Type of the schema.
     * 
     */
    @Import(name="schemaType", required=true)
    private Output> schemaType;

    /**
     * @return Type of the schema.
     * 
     */
    public Output> schemaType() {
        return this.schemaType;
    }

    /**
     * Schema tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Schema tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private SchemaArgs() {}

    private SchemaArgs(SchemaArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.format = $.format;
        this.resourceGroupName = $.resourceGroupName;
        this.schemaName = $.schemaName;
        this.schemaRegistryName = $.schemaRegistryName;
        this.schemaType = $.schemaType;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private SchemaArgs $;

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

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

        /**
         * @param description Human-readable description of the schema.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Human-readable description of the schema.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Human-readable display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Human-readable display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param format Format of the schema.
         * 
         * @return builder
         * 
         */
        public Builder format(Output> format) {
            $.format = format;
            return this;
        }

        /**
         * @param format Format of the schema.
         * 
         * @return builder
         * 
         */
        public Builder format(Either format) {
            return format(Output.of(format));
        }

        /**
         * @param format Format of the schema.
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Either.ofLeft(format));
        }

        /**
         * @param format Format of the schema.
         * 
         * @return builder
         * 
         */
        public Builder format(Format format) {
            return format(Either.ofRight(format));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

        /**
         * @param schemaName Schema name parameter.
         * 
         * @return builder
         * 
         */
        public Builder schemaName(String schemaName) {
            return schemaName(Output.of(schemaName));
        }

        /**
         * @param schemaRegistryName Schema registry name parameter.
         * 
         * @return builder
         * 
         */
        public Builder schemaRegistryName(Output schemaRegistryName) {
            $.schemaRegistryName = schemaRegistryName;
            return this;
        }

        /**
         * @param schemaRegistryName Schema registry name parameter.
         * 
         * @return builder
         * 
         */
        public Builder schemaRegistryName(String schemaRegistryName) {
            return schemaRegistryName(Output.of(schemaRegistryName));
        }

        /**
         * @param schemaType Type of the schema.
         * 
         * @return builder
         * 
         */
        public Builder schemaType(Output> schemaType) {
            $.schemaType = schemaType;
            return this;
        }

        /**
         * @param schemaType Type of the schema.
         * 
         * @return builder
         * 
         */
        public Builder schemaType(Either schemaType) {
            return schemaType(Output.of(schemaType));
        }

        /**
         * @param schemaType Type of the schema.
         * 
         * @return builder
         * 
         */
        public Builder schemaType(String schemaType) {
            return schemaType(Either.ofLeft(schemaType));
        }

        /**
         * @param schemaType Type of the schema.
         * 
         * @return builder
         * 
         */
        public Builder schemaType(SchemaType schemaType) {
            return schemaType(Either.ofRight(schemaType));
        }

        /**
         * @param tags Schema tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Schema tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public SchemaArgs build() {
            if ($.format == null) {
                throw new MissingRequiredPropertyException("SchemaArgs", "format");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SchemaArgs", "resourceGroupName");
            }
            if ($.schemaRegistryName == null) {
                throw new MissingRequiredPropertyException("SchemaArgs", "schemaRegistryName");
            }
            if ($.schemaType == null) {
                throw new MissingRequiredPropertyException("SchemaArgs", "schemaType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy