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

com.pulumi.mysql.inputs.DatabaseState Maven / Gradle / Ivy

There is a newer version: 3.3.0-alpha.1731736949
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.mysql.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 DatabaseState extends com.pulumi.resources.ResourceArgs {

    public static final DatabaseState Empty = new DatabaseState();

    /**
     * The default character set to use when
     * a table is created without specifying an explicit character set. Defaults
     * to "utf8".
     * 
     */
    @Import(name="defaultCharacterSet")
    private @Nullable Output defaultCharacterSet;

    /**
     * @return The default character set to use when
     * a table is created without specifying an explicit character set. Defaults
     * to "utf8".
     * 
     */
    public Optional> defaultCharacterSet() {
        return Optional.ofNullable(this.defaultCharacterSet);
    }

    /**
     * The default collation to use when a table
     * is created without specifying an explicit collation. Defaults to
     * ``utf8_general_ci``. Each character set has its own set of collations, so
     * changing the character set requires also changing the collation.
     * 
     * Note that the defaults for character set and collation above do not respect
     * any defaults set on the MySQL server, so that the configuration can be set
     * appropriately even though this provider cannot see the server-level defaults. If
     * you wish to use the server's defaults you must consult the server's
     * configuration and then set the ``default_character_set`` and
     * ``default_collation`` to match.
     * 
     */
    @Import(name="defaultCollation")
    private @Nullable Output defaultCollation;

    /**
     * @return The default collation to use when a table
     * is created without specifying an explicit collation. Defaults to
     * ``utf8_general_ci``. Each character set has its own set of collations, so
     * changing the character set requires also changing the collation.
     * 
     * Note that the defaults for character set and collation above do not respect
     * any defaults set on the MySQL server, so that the configuration can be set
     * appropriately even though this provider cannot see the server-level defaults. If
     * you wish to use the server's defaults you must consult the server's
     * configuration and then set the ``default_character_set`` and
     * ``default_collation`` to match.
     * 
     */
    public Optional> defaultCollation() {
        return Optional.ofNullable(this.defaultCollation);
    }

    /**
     * The name of the database. This must be unique within
     * a given MySQL server and may or may not be case-sensitive depending on
     * the operating system on which the MySQL server is running.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the database. This must be unique within
     * a given MySQL server and may or may not be case-sensitive depending on
     * the operating system on which the MySQL server is running.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private DatabaseState() {}

    private DatabaseState(DatabaseState $) {
        this.defaultCharacterSet = $.defaultCharacterSet;
        this.defaultCollation = $.defaultCollation;
        this.name = $.name;
    }

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

    public static final class Builder {
        private DatabaseState $;

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

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

        /**
         * @param defaultCharacterSet The default character set to use when
         * a table is created without specifying an explicit character set. Defaults
         * to "utf8".
         * 
         * @return builder
         * 
         */
        public Builder defaultCharacterSet(@Nullable Output defaultCharacterSet) {
            $.defaultCharacterSet = defaultCharacterSet;
            return this;
        }

        /**
         * @param defaultCharacterSet The default character set to use when
         * a table is created without specifying an explicit character set. Defaults
         * to "utf8".
         * 
         * @return builder
         * 
         */
        public Builder defaultCharacterSet(String defaultCharacterSet) {
            return defaultCharacterSet(Output.of(defaultCharacterSet));
        }

        /**
         * @param defaultCollation The default collation to use when a table
         * is created without specifying an explicit collation. Defaults to
         * ``utf8_general_ci``. Each character set has its own set of collations, so
         * changing the character set requires also changing the collation.
         * 
         * Note that the defaults for character set and collation above do not respect
         * any defaults set on the MySQL server, so that the configuration can be set
         * appropriately even though this provider cannot see the server-level defaults. If
         * you wish to use the server's defaults you must consult the server's
         * configuration and then set the ``default_character_set`` and
         * ``default_collation`` to match.
         * 
         * @return builder
         * 
         */
        public Builder defaultCollation(@Nullable Output defaultCollation) {
            $.defaultCollation = defaultCollation;
            return this;
        }

        /**
         * @param defaultCollation The default collation to use when a table
         * is created without specifying an explicit collation. Defaults to
         * ``utf8_general_ci``. Each character set has its own set of collations, so
         * changing the character set requires also changing the collation.
         * 
         * Note that the defaults for character set and collation above do not respect
         * any defaults set on the MySQL server, so that the configuration can be set
         * appropriately even though this provider cannot see the server-level defaults. If
         * you wish to use the server's defaults you must consult the server's
         * configuration and then set the ``default_character_set`` and
         * ``default_collation`` to match.
         * 
         * @return builder
         * 
         */
        public Builder defaultCollation(String defaultCollation) {
            return defaultCollation(Output.of(defaultCollation));
        }

        /**
         * @param name The name of the database. This must be unique within
         * a given MySQL server and may or may not be case-sensitive depending on
         * the operating system on which the MySQL server is running.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the database. This must be unique within
         * a given MySQL server and may or may not be case-sensitive depending on
         * the operating system on which the MySQL server is running.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public DatabaseState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy