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

com.pulumi.azurenative.documentdb.ServiceArgs Maven / Gradle / Ivy

The 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.documentdb;

import com.pulumi.azurenative.documentdb.enums.ServiceSize;
import com.pulumi.azurenative.documentdb.enums.ServiceType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServiceArgs Empty = new ServiceArgs();

    /**
     * Cosmos DB database account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Cosmos DB database account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Instance count for the service.
     * 
     */
    @Import(name="instanceCount")
    private @Nullable Output instanceCount;

    /**
     * @return Instance count for the service.
     * 
     */
    public Optional> instanceCount() {
        return Optional.ofNullable(this.instanceCount);
    }

    /**
     * Instance type for the service.
     * 
     */
    @Import(name="instanceSize")
    private @Nullable Output> instanceSize;

    /**
     * @return Instance type for the service.
     * 
     */
    public Optional>> instanceSize() {
        return Optional.ofNullable(this.instanceSize);
    }

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

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

    /**
     * Cosmos DB service name.
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return Cosmos DB service name.
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * ServiceType for the service.
     * 
     */
    @Import(name="serviceType")
    private @Nullable Output> serviceType;

    /**
     * @return ServiceType for the service.
     * 
     */
    public Optional>> serviceType() {
        return Optional.ofNullable(this.serviceType);
    }

    private ServiceArgs() {}

    private ServiceArgs(ServiceArgs $) {
        this.accountName = $.accountName;
        this.instanceCount = $.instanceCount;
        this.instanceSize = $.instanceSize;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.serviceType = $.serviceType;
    }

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

    public static final class Builder {
        private ServiceArgs $;

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

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

        /**
         * @param accountName Cosmos DB database account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName Cosmos DB database account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param instanceCount Instance count for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceCount(@Nullable Output instanceCount) {
            $.instanceCount = instanceCount;
            return this;
        }

        /**
         * @param instanceCount Instance count for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceCount(Integer instanceCount) {
            return instanceCount(Output.of(instanceCount));
        }

        /**
         * @param instanceSize Instance type for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(@Nullable Output> instanceSize) {
            $.instanceSize = instanceSize;
            return this;
        }

        /**
         * @param instanceSize Instance type for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(Either instanceSize) {
            return instanceSize(Output.of(instanceSize));
        }

        /**
         * @param instanceSize Instance type for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(String instanceSize) {
            return instanceSize(Either.ofLeft(instanceSize));
        }

        /**
         * @param instanceSize Instance type for the service.
         * 
         * @return builder
         * 
         */
        public Builder instanceSize(ServiceSize instanceSize) {
            return instanceSize(Either.ofRight(instanceSize));
        }

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

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

        /**
         * @param serviceName Cosmos DB service name.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName Cosmos DB service name.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param serviceType ServiceType for the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceType(@Nullable Output> serviceType) {
            $.serviceType = serviceType;
            return this;
        }

        /**
         * @param serviceType ServiceType for the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceType(Either serviceType) {
            return serviceType(Output.of(serviceType));
        }

        /**
         * @param serviceType ServiceType for the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceType(String serviceType) {
            return serviceType(Either.ofLeft(serviceType));
        }

        /**
         * @param serviceType ServiceType for the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceType(ServiceType serviceType) {
            return serviceType(Either.ofRight(serviceType));
        }

        public ServiceArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy