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

com.pulumi.azurenative.documentdb.outputs.MongoDBCollectionGetPropertiesResponseResource Maven / Gradle / Ivy

// *** 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.azurenative.documentdb.outputs.MongoIndexResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MongoDBCollectionGetPropertiesResponseResource {
    /**
     * @return Analytical TTL.
     * 
     */
    private @Nullable Integer analyticalStorageTtl;
    /**
     * @return A system generated property representing the resource etag required for optimistic concurrency control.
     * 
     */
    private String etag;
    /**
     * @return Name of the Cosmos DB MongoDB collection
     * 
     */
    private String id;
    /**
     * @return List of index keys
     * 
     */
    private @Nullable List indexes;
    /**
     * @return A system generated property. A unique identifier.
     * 
     */
    private String rid;
    /**
     * @return A key-value pair of shard keys to be applied for the request.
     * 
     */
    private @Nullable Map shardKey;
    /**
     * @return A system generated property that denotes the last updated timestamp of the resource.
     * 
     */
    private Double ts;

    private MongoDBCollectionGetPropertiesResponseResource() {}
    /**
     * @return Analytical TTL.
     * 
     */
    public Optional analyticalStorageTtl() {
        return Optional.ofNullable(this.analyticalStorageTtl);
    }
    /**
     * @return A system generated property representing the resource etag required for optimistic concurrency control.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Name of the Cosmos DB MongoDB collection
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return List of index keys
     * 
     */
    public List indexes() {
        return this.indexes == null ? List.of() : this.indexes;
    }
    /**
     * @return A system generated property. A unique identifier.
     * 
     */
    public String rid() {
        return this.rid;
    }
    /**
     * @return A key-value pair of shard keys to be applied for the request.
     * 
     */
    public Map shardKey() {
        return this.shardKey == null ? Map.of() : this.shardKey;
    }
    /**
     * @return A system generated property that denotes the last updated timestamp of the resource.
     * 
     */
    public Double ts() {
        return this.ts;
    }

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

    public static Builder builder(MongoDBCollectionGetPropertiesResponseResource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer analyticalStorageTtl;
        private String etag;
        private String id;
        private @Nullable List indexes;
        private String rid;
        private @Nullable Map shardKey;
        private Double ts;
        public Builder() {}
        public Builder(MongoDBCollectionGetPropertiesResponseResource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.analyticalStorageTtl = defaults.analyticalStorageTtl;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.indexes = defaults.indexes;
    	      this.rid = defaults.rid;
    	      this.shardKey = defaults.shardKey;
    	      this.ts = defaults.ts;
        }

        @CustomType.Setter
        public Builder analyticalStorageTtl(@Nullable Integer analyticalStorageTtl) {

            this.analyticalStorageTtl = analyticalStorageTtl;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("MongoDBCollectionGetPropertiesResponseResource", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("MongoDBCollectionGetPropertiesResponseResource", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder indexes(@Nullable List indexes) {

            this.indexes = indexes;
            return this;
        }
        public Builder indexes(MongoIndexResponse... indexes) {
            return indexes(List.of(indexes));
        }
        @CustomType.Setter
        public Builder rid(String rid) {
            if (rid == null) {
              throw new MissingRequiredPropertyException("MongoDBCollectionGetPropertiesResponseResource", "rid");
            }
            this.rid = rid;
            return this;
        }
        @CustomType.Setter
        public Builder shardKey(@Nullable Map shardKey) {

            this.shardKey = shardKey;
            return this;
        }
        @CustomType.Setter
        public Builder ts(Double ts) {
            if (ts == null) {
              throw new MissingRequiredPropertyException("MongoDBCollectionGetPropertiesResponseResource", "ts");
            }
            this.ts = ts;
            return this;
        }
        public MongoDBCollectionGetPropertiesResponseResource build() {
            final var _resultValue = new MongoDBCollectionGetPropertiesResponseResource();
            _resultValue.analyticalStorageTtl = analyticalStorageTtl;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.indexes = indexes;
            _resultValue.rid = rid;
            _resultValue.shardKey = shardKey;
            _resultValue.ts = ts;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy