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

com.pulumi.aws.glue.outputs.CatalogDatabaseTargetDatabase Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.glue.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CatalogDatabaseTargetDatabase {
    /**
     * @return ID of the Data Catalog in which the database resides.
     * 
     */
    private String catalogId;
    /**
     * @return Name of the catalog database.
     * 
     */
    private String databaseName;
    /**
     * @return Region of the target database.
     * 
     */
    private @Nullable String region;

    private CatalogDatabaseTargetDatabase() {}
    /**
     * @return ID of the Data Catalog in which the database resides.
     * 
     */
    public String catalogId() {
        return this.catalogId;
    }
    /**
     * @return Name of the catalog database.
     * 
     */
    public String databaseName() {
        return this.databaseName;
    }
    /**
     * @return Region of the target database.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }

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

    public static Builder builder(CatalogDatabaseTargetDatabase defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String catalogId;
        private String databaseName;
        private @Nullable String region;
        public Builder() {}
        public Builder(CatalogDatabaseTargetDatabase defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.catalogId = defaults.catalogId;
    	      this.databaseName = defaults.databaseName;
    	      this.region = defaults.region;
        }

        @CustomType.Setter
        public Builder catalogId(String catalogId) {
            if (catalogId == null) {
              throw new MissingRequiredPropertyException("CatalogDatabaseTargetDatabase", "catalogId");
            }
            this.catalogId = catalogId;
            return this;
        }
        @CustomType.Setter
        public Builder databaseName(String databaseName) {
            if (databaseName == null) {
              throw new MissingRequiredPropertyException("CatalogDatabaseTargetDatabase", "databaseName");
            }
            this.databaseName = databaseName;
            return this;
        }
        @CustomType.Setter
        public Builder region(@Nullable String region) {

            this.region = region;
            return this;
        }
        public CatalogDatabaseTargetDatabase build() {
            final var _resultValue = new CatalogDatabaseTargetDatabase();
            _resultValue.catalogId = catalogId;
            _resultValue.databaseName = databaseName;
            _resultValue.region = region;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy