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

com.pulumi.azurenative.documentdb.outputs.MongoDBDatabaseGetPropertiesResponseResource 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.Double;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class MongoDBDatabaseGetPropertiesResponseResource {
    /**
     * @return A system generated property representing the resource etag required for optimistic concurrency control.
     * 
     */
    private String etag;
    /**
     * @return Name of the Cosmos DB MongoDB database
     * 
     */
    private String id;
    /**
     * @return A system generated property. A unique identifier.
     * 
     */
    private String rid;
    /**
     * @return A system generated property that denotes the last updated timestamp of the resource.
     * 
     */
    private Double ts;

    private MongoDBDatabaseGetPropertiesResponseResource() {}
    /**
     * @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 database
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A system generated property. A unique identifier.
     * 
     */
    public String rid() {
        return this.rid;
    }
    /**
     * @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(MongoDBDatabaseGetPropertiesResponseResource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String etag;
        private String id;
        private String rid;
        private Double ts;
        public Builder() {}
        public Builder(MongoDBDatabaseGetPropertiesResponseResource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.rid = defaults.rid;
    	      this.ts = defaults.ts;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy