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

com.pulumi.azurenative.cache.LinkedServerArgs 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.cache;

import com.pulumi.azurenative.cache.enums.ReplicationRole;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LinkedServerArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinkedServerArgs Empty = new LinkedServerArgs();

    /**
     * Fully qualified resourceId of the linked redis cache.
     * 
     */
    @Import(name="linkedRedisCacheId", required=true)
    private Output linkedRedisCacheId;

    /**
     * @return Fully qualified resourceId of the linked redis cache.
     * 
     */
    public Output linkedRedisCacheId() {
        return this.linkedRedisCacheId;
    }

    /**
     * Location of the linked redis cache.
     * 
     */
    @Import(name="linkedRedisCacheLocation", required=true)
    private Output linkedRedisCacheLocation;

    /**
     * @return Location of the linked redis cache.
     * 
     */
    public Output linkedRedisCacheLocation() {
        return this.linkedRedisCacheLocation;
    }

    /**
     * The name of the linked server that is being added to the Redis cache.
     * 
     */
    @Import(name="linkedServerName")
    private @Nullable Output linkedServerName;

    /**
     * @return The name of the linked server that is being added to the Redis cache.
     * 
     */
    public Optional> linkedServerName() {
        return Optional.ofNullable(this.linkedServerName);
    }

    /**
     * The name of the Redis cache.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the Redis cache.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Role of the linked server.
     * 
     */
    @Import(name="serverRole", required=true)
    private Output serverRole;

    /**
     * @return Role of the linked server.
     * 
     */
    public Output serverRole() {
        return this.serverRole;
    }

    private LinkedServerArgs() {}

    private LinkedServerArgs(LinkedServerArgs $) {
        this.linkedRedisCacheId = $.linkedRedisCacheId;
        this.linkedRedisCacheLocation = $.linkedRedisCacheLocation;
        this.linkedServerName = $.linkedServerName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.serverRole = $.serverRole;
    }

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

    public static final class Builder {
        private LinkedServerArgs $;

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

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

        /**
         * @param linkedRedisCacheId Fully qualified resourceId of the linked redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedRedisCacheId(Output linkedRedisCacheId) {
            $.linkedRedisCacheId = linkedRedisCacheId;
            return this;
        }

        /**
         * @param linkedRedisCacheId Fully qualified resourceId of the linked redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedRedisCacheId(String linkedRedisCacheId) {
            return linkedRedisCacheId(Output.of(linkedRedisCacheId));
        }

        /**
         * @param linkedRedisCacheLocation Location of the linked redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedRedisCacheLocation(Output linkedRedisCacheLocation) {
            $.linkedRedisCacheLocation = linkedRedisCacheLocation;
            return this;
        }

        /**
         * @param linkedRedisCacheLocation Location of the linked redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedRedisCacheLocation(String linkedRedisCacheLocation) {
            return linkedRedisCacheLocation(Output.of(linkedRedisCacheLocation));
        }

        /**
         * @param linkedServerName The name of the linked server that is being added to the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedServerName(@Nullable Output linkedServerName) {
            $.linkedServerName = linkedServerName;
            return this;
        }

        /**
         * @param linkedServerName The name of the linked server that is being added to the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder linkedServerName(String linkedServerName) {
            return linkedServerName(Output.of(linkedServerName));
        }

        /**
         * @param name The name of the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Redis cache.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serverRole Role of the linked server.
         * 
         * @return builder
         * 
         */
        public Builder serverRole(Output serverRole) {
            $.serverRole = serverRole;
            return this;
        }

        /**
         * @param serverRole Role of the linked server.
         * 
         * @return builder
         * 
         */
        public Builder serverRole(ReplicationRole serverRole) {
            return serverRole(Output.of(serverRole));
        }

        public LinkedServerArgs build() {
            if ($.linkedRedisCacheId == null) {
                throw new MissingRequiredPropertyException("LinkedServerArgs", "linkedRedisCacheId");
            }
            if ($.linkedRedisCacheLocation == null) {
                throw new MissingRequiredPropertyException("LinkedServerArgs", "linkedRedisCacheLocation");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("LinkedServerArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("LinkedServerArgs", "resourceGroupName");
            }
            if ($.serverRole == null) {
                throw new MissingRequiredPropertyException("LinkedServerArgs", "serverRole");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy