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

com.pulumi.azurenative.datafactory.outputs.MongoDbCursorMethodsPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.datafactory.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MongoDbCursorMethodsPropertiesResponse {
    /**
     * @return Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object limit;
    /**
     * @return Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object project;
    /**
     * @return Specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object skip;
    /**
     * @return Specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object sort;

    private MongoDbCursorMethodsPropertiesResponse() {}
    /**
     * @return Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional limit() {
        return Optional.ofNullable(this.limit);
    }
    /**
     * @return Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, omit this parameter. Type: string (or Expression with resultType string).
     * 
     */
    public Optional project() {
        return Optional.ofNullable(this.project);
    }
    /**
     * @return Specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing paginated results. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional skip() {
        return Optional.ofNullable(this.skip);
    }
    /**
     * @return Specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). Type: string (or Expression with resultType string).
     * 
     */
    public Optional sort() {
        return Optional.ofNullable(this.sort);
    }

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

    public static Builder builder(MongoDbCursorMethodsPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object limit;
        private @Nullable Object project;
        private @Nullable Object skip;
        private @Nullable Object sort;
        public Builder() {}
        public Builder(MongoDbCursorMethodsPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.limit = defaults.limit;
    	      this.project = defaults.project;
    	      this.skip = defaults.skip;
    	      this.sort = defaults.sort;
        }

        @CustomType.Setter
        public Builder limit(@Nullable Object limit) {

            this.limit = limit;
            return this;
        }
        @CustomType.Setter
        public Builder project(@Nullable Object project) {

            this.project = project;
            return this;
        }
        @CustomType.Setter
        public Builder skip(@Nullable Object skip) {

            this.skip = skip;
            return this;
        }
        @CustomType.Setter
        public Builder sort(@Nullable Object sort) {

            this.sort = sort;
            return this;
        }
        public MongoDbCursorMethodsPropertiesResponse build() {
            final var _resultValue = new MongoDbCursorMethodsPropertiesResponse();
            _resultValue.limit = limit;
            _resultValue.project = project;
            _resultValue.skip = skip;
            _resultValue.sort = sort;
            return _resultValue;
        }
    }
}