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

com.pulumi.azurenative.cache.outputs.DatabasePropertiesResponseGeoReplication Maven / Gradle / Ivy

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

import com.pulumi.azurenative.cache.outputs.LinkedDatabaseResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DatabasePropertiesResponseGeoReplication {
    /**
     * @return Name for the group of linked database resources
     * 
     */
    private @Nullable String groupNickname;
    /**
     * @return List of database resources to link with this database
     * 
     */
    private @Nullable List linkedDatabases;

    private DatabasePropertiesResponseGeoReplication() {}
    /**
     * @return Name for the group of linked database resources
     * 
     */
    public Optional groupNickname() {
        return Optional.ofNullable(this.groupNickname);
    }
    /**
     * @return List of database resources to link with this database
     * 
     */
    public List linkedDatabases() {
        return this.linkedDatabases == null ? List.of() : this.linkedDatabases;
    }

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

    public static Builder builder(DatabasePropertiesResponseGeoReplication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String groupNickname;
        private @Nullable List linkedDatabases;
        public Builder() {}
        public Builder(DatabasePropertiesResponseGeoReplication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.groupNickname = defaults.groupNickname;
    	      this.linkedDatabases = defaults.linkedDatabases;
        }

        @CustomType.Setter
        public Builder groupNickname(@Nullable String groupNickname) {

            this.groupNickname = groupNickname;
            return this;
        }
        @CustomType.Setter
        public Builder linkedDatabases(@Nullable List linkedDatabases) {

            this.linkedDatabases = linkedDatabases;
            return this;
        }
        public Builder linkedDatabases(LinkedDatabaseResponse... linkedDatabases) {
            return linkedDatabases(List.of(linkedDatabases));
        }
        public DatabasePropertiesResponseGeoReplication build() {
            final var _resultValue = new DatabasePropertiesResponseGeoReplication();
            _resultValue.groupNickname = groupNickname;
            _resultValue.linkedDatabases = linkedDatabases;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy