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

com.pulumi.azurenative.documentdb.CassandraResourceCassandraKeyspaceArgs 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.documentdb;

import com.pulumi.azurenative.documentdb.inputs.CassandraKeyspaceResourceArgs;
import com.pulumi.azurenative.documentdb.inputs.CreateUpdateOptionsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CassandraResourceCassandraKeyspaceArgs Empty = new CassandraResourceCassandraKeyspaceArgs();

    /**
     * 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;
    }

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

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

    /**
     * The location of the resource group to which the resource belongs.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource group to which the resource belongs.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
     * 
     */
    @Import(name="options")
    private @Nullable Output options;

    /**
     * @return A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
     * 
     */
    public Optional> options() {
        return Optional.ofNullable(this.options);
    }

    /**
     * The standard JSON format of a Cassandra keyspace
     * 
     */
    @Import(name="resource", required=true)
    private Output resource;

    /**
     * @return The standard JSON format of a Cassandra keyspace
     * 
     */
    public Output resource() {
        return this.resource;
    }

    /**
     * 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;
    }

    /**
     * Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private CassandraResourceCassandraKeyspaceArgs() {}

    private CassandraResourceCassandraKeyspaceArgs(CassandraResourceCassandraKeyspaceArgs $) {
        this.accountName = $.accountName;
        this.keyspaceName = $.keyspaceName;
        this.location = $.location;
        this.options = $.options;
        this.resource = $.resource;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private CassandraResourceCassandraKeyspaceArgs $;

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

        public Builder(CassandraResourceCassandraKeyspaceArgs defaults) {
            $ = new CassandraResourceCassandraKeyspaceArgs(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 keyspaceName Cosmos DB keyspace name.
         * 
         * @return builder
         * 
         */
        public Builder keyspaceName(@Nullable Output keyspaceName) {
            $.keyspaceName = keyspaceName;
            return this;
        }

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

        /**
         * @param location The location of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
         * 
         * @return builder
         * 
         */
        public Builder options(@Nullable Output options) {
            $.options = options;
            return this;
        }

        /**
         * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
         * 
         * @return builder
         * 
         */
        public Builder options(CreateUpdateOptionsArgs options) {
            return options(Output.of(options));
        }

        /**
         * @param resource The standard JSON format of a Cassandra keyspace
         * 
         * @return builder
         * 
         */
        public Builder resource(Output resource) {
            $.resource = resource;
            return this;
        }

        /**
         * @param resource The standard JSON format of a Cassandra keyspace
         * 
         * @return builder
         * 
         */
        public Builder resource(CassandraKeyspaceResourceArgs resource) {
            return resource(Output.of(resource));
        }

        /**
         * @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 tags Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy