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

com.pulumi.azurenative.cache.inputs.DatabasePropertiesGeoReplicationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.cache.inputs;

import com.pulumi.azurenative.cache.inputs.LinkedDatabaseArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Optional set of properties to configure geo replication for this database.
 * 
 */
public final class DatabasePropertiesGeoReplicationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DatabasePropertiesGeoReplicationArgs Empty = new DatabasePropertiesGeoReplicationArgs();

    /**
     * Name for the group of linked database resources
     * 
     */
    @Import(name="groupNickname")
    private @Nullable Output groupNickname;

    /**
     * @return Name for the group of linked database resources
     * 
     */
    public Optional> groupNickname() {
        return Optional.ofNullable(this.groupNickname);
    }

    /**
     * List of database resources to link with this database
     * 
     */
    @Import(name="linkedDatabases")
    private @Nullable Output> linkedDatabases;

    /**
     * @return List of database resources to link with this database
     * 
     */
    public Optional>> linkedDatabases() {
        return Optional.ofNullable(this.linkedDatabases);
    }

    private DatabasePropertiesGeoReplicationArgs() {}

    private DatabasePropertiesGeoReplicationArgs(DatabasePropertiesGeoReplicationArgs $) {
        this.groupNickname = $.groupNickname;
        this.linkedDatabases = $.linkedDatabases;
    }

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

    public static final class Builder {
        private DatabasePropertiesGeoReplicationArgs $;

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

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

        /**
         * @param groupNickname Name for the group of linked database resources
         * 
         * @return builder
         * 
         */
        public Builder groupNickname(@Nullable Output groupNickname) {
            $.groupNickname = groupNickname;
            return this;
        }

        /**
         * @param groupNickname Name for the group of linked database resources
         * 
         * @return builder
         * 
         */
        public Builder groupNickname(String groupNickname) {
            return groupNickname(Output.of(groupNickname));
        }

        /**
         * @param linkedDatabases List of database resources to link with this database
         * 
         * @return builder
         * 
         */
        public Builder linkedDatabases(@Nullable Output> linkedDatabases) {
            $.linkedDatabases = linkedDatabases;
            return this;
        }

        /**
         * @param linkedDatabases List of database resources to link with this database
         * 
         * @return builder
         * 
         */
        public Builder linkedDatabases(List linkedDatabases) {
            return linkedDatabases(Output.of(linkedDatabases));
        }

        /**
         * @param linkedDatabases List of database resources to link with this database
         * 
         * @return builder
         * 
         */
        public Builder linkedDatabases(LinkedDatabaseArgs... linkedDatabases) {
            return linkedDatabases(List.of(linkedDatabases));
        }

        public DatabasePropertiesGeoReplicationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy