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

com.pulumi.azurenative.datamigration.outputs.MongoDbShardKeyFieldResponse 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.datamigration.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class MongoDbShardKeyFieldResponse {
    /**
     * @return The name of the field
     * 
     */
    private String name;
    /**
     * @return The field ordering
     * 
     */
    private String order;

    private MongoDbShardKeyFieldResponse() {}
    /**
     * @return The name of the field
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The field ordering
     * 
     */
    public String order() {
        return this.order;
    }

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

    public static Builder builder(MongoDbShardKeyFieldResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private String order;
        public Builder() {}
        public Builder(MongoDbShardKeyFieldResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.order = defaults.order;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("MongoDbShardKeyFieldResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder order(String order) {
            if (order == null) {
              throw new MissingRequiredPropertyException("MongoDbShardKeyFieldResponse", "order");
            }
            this.order = order;
            return this;
        }
        public MongoDbShardKeyFieldResponse build() {
            final var _resultValue = new MongoDbShardKeyFieldResponse();
            _resultValue.name = name;
            _resultValue.order = order;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy