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

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerPartitionKeyResponse {
    /**
     * @return Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create
     * 
     */
    private @Nullable String kind;
    /**
     * @return List of paths using which data within the container can be partitioned
     * 
     */
    private @Nullable List paths;
    /**
     * @return Indicates if the container is using a system generated partition key
     * 
     */
    private Boolean systemKey;
    /**
     * @return Indicates the version of the partition key definition
     * 
     */
    private @Nullable Integer version;

    private ContainerPartitionKeyResponse() {}
    /**
     * @return Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return List of paths using which data within the container can be partitioned
     * 
     */
    public List paths() {
        return this.paths == null ? List.of() : this.paths;
    }
    /**
     * @return Indicates if the container is using a system generated partition key
     * 
     */
    public Boolean systemKey() {
        return this.systemKey;
    }
    /**
     * @return Indicates the version of the partition key definition
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(ContainerPartitionKeyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String kind;
        private @Nullable List paths;
        private Boolean systemKey;
        private @Nullable Integer version;
        public Builder() {}
        public Builder(ContainerPartitionKeyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.kind = defaults.kind;
    	      this.paths = defaults.paths;
    	      this.systemKey = defaults.systemKey;
    	      this.version = defaults.version;
        }

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

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

            this.paths = paths;
            return this;
        }
        public Builder paths(String... paths) {
            return paths(List.of(paths));
        }
        @CustomType.Setter
        public Builder systemKey(Boolean systemKey) {
            if (systemKey == null) {
              throw new MissingRequiredPropertyException("ContainerPartitionKeyResponse", "systemKey");
            }
            this.systemKey = systemKey;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable Integer version) {

            this.version = version;
            return this;
        }
        public ContainerPartitionKeyResponse build() {
            final var _resultValue = new ContainerPartitionKeyResponse();
            _resultValue.kind = kind;
            _resultValue.paths = paths;
            _resultValue.systemKey = systemKey;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy