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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cosmos DB Cassandra table cluster key
 * 
 */
public final class ClusterKeyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClusterKeyArgs Empty = new ClusterKeyArgs();

    /**
     * Name of the Cosmos DB Cassandra table cluster key
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the Cosmos DB Cassandra table cluster key
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
     * 
     */
    @Import(name="orderBy")
    private @Nullable Output orderBy;

    /**
     * @return Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
     * 
     */
    public Optional> orderBy() {
        return Optional.ofNullable(this.orderBy);
    }

    private ClusterKeyArgs() {}

    private ClusterKeyArgs(ClusterKeyArgs $) {
        this.name = $.name;
        this.orderBy = $.orderBy;
    }

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

    public static final class Builder {
        private ClusterKeyArgs $;

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

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

        /**
         * @param name Name of the Cosmos DB Cassandra table cluster key
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the Cosmos DB Cassandra table cluster key
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param orderBy Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
         * 
         * @return builder
         * 
         */
        public Builder orderBy(@Nullable Output orderBy) {
            $.orderBy = orderBy;
            return this;
        }

        /**
         * @param orderBy Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
         * 
         * @return builder
         * 
         */
        public Builder orderBy(String orderBy) {
            return orderBy(Output.of(orderBy));
        }

        public ClusterKeyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy