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

com.pulumi.azurenative.azuredatatransfer.inputs.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.azuredatatransfer.inputs;

import com.pulumi.azurenative.azuredatatransfer.enums.SchemaStatus;
import com.pulumi.core.Either;
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;


/**
 * The schema object.
 * 
 */
public final class SchemaArgs extends com.pulumi.resources.ResourceArgs {

    public static final SchemaArgs Empty = new SchemaArgs();

    /**
     * Connection ID associated with this schema
     * 
     */
    @Import(name="connectionId")
    private @Nullable Output connectionId;

    /**
     * @return Connection ID associated with this schema
     * 
     */
    public Optional> connectionId() {
        return Optional.ofNullable(this.connectionId);
    }

    /**
     * Content of the schema
     * 
     */
    @Import(name="content")
    private @Nullable Output content;

    /**
     * @return Content of the schema
     * 
     */
    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    /**
     * ID associated with this schema
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return ID associated with this schema
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the schema
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the schema
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Status of the schema
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Status of the schema
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    private SchemaArgs() {}

    private SchemaArgs(SchemaArgs $) {
        this.connectionId = $.connectionId;
        this.content = $.content;
        this.id = $.id;
        this.name = $.name;
        this.status = $.status;
    }

    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 connectionId Connection ID associated with this schema
         * 
         * @return builder
         * 
         */
        public Builder connectionId(@Nullable Output connectionId) {
            $.connectionId = connectionId;
            return this;
        }

        /**
         * @param connectionId Connection ID associated with this schema
         * 
         * @return builder
         * 
         */
        public Builder connectionId(String connectionId) {
            return connectionId(Output.of(connectionId));
        }

        /**
         * @param content Content of the schema
         * 
         * @return builder
         * 
         */
        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content Content of the schema
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param id ID associated with this schema
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id ID associated with this schema
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the schema
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the schema
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

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

        /**
         * @param status Status of the schema
         * 
         * @return builder
         * 
         */
        public Builder status(SchemaStatus status) {
            return status(Either.ofRight(status));
        }

        public SchemaArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy