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

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

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.Objects;

@CustomType
public final class MongoMigrationProgressDetailsResponse {
    /**
     * @return Migration duration
     * 
     */
    private Integer durationInSeconds;
    /**
     * @return Migration Error
     * 
     */
    private String migrationError;
    /**
     * @return Migration Status
     * 
     */
    private String migrationStatus;
    /**
     * @return Processed Document Count
     * 
     */
    private Double processedDocumentCount;
    /**
     * @return Source Document Count
     * 
     */
    private Double sourceDocumentCount;

    private MongoMigrationProgressDetailsResponse() {}
    /**
     * @return Migration duration
     * 
     */
    public Integer durationInSeconds() {
        return this.durationInSeconds;
    }
    /**
     * @return Migration Error
     * 
     */
    public String migrationError() {
        return this.migrationError;
    }
    /**
     * @return Migration Status
     * 
     */
    public String migrationStatus() {
        return this.migrationStatus;
    }
    /**
     * @return Processed Document Count
     * 
     */
    public Double processedDocumentCount() {
        return this.processedDocumentCount;
    }
    /**
     * @return Source Document Count
     * 
     */
    public Double sourceDocumentCount() {
        return this.sourceDocumentCount;
    }

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

    public static Builder builder(MongoMigrationProgressDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer durationInSeconds;
        private String migrationError;
        private String migrationStatus;
        private Double processedDocumentCount;
        private Double sourceDocumentCount;
        public Builder() {}
        public Builder(MongoMigrationProgressDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.durationInSeconds = defaults.durationInSeconds;
    	      this.migrationError = defaults.migrationError;
    	      this.migrationStatus = defaults.migrationStatus;
    	      this.processedDocumentCount = defaults.processedDocumentCount;
    	      this.sourceDocumentCount = defaults.sourceDocumentCount;
        }

        @CustomType.Setter
        public Builder durationInSeconds(Integer durationInSeconds) {
            if (durationInSeconds == null) {
              throw new MissingRequiredPropertyException("MongoMigrationProgressDetailsResponse", "durationInSeconds");
            }
            this.durationInSeconds = durationInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder migrationError(String migrationError) {
            if (migrationError == null) {
              throw new MissingRequiredPropertyException("MongoMigrationProgressDetailsResponse", "migrationError");
            }
            this.migrationError = migrationError;
            return this;
        }
        @CustomType.Setter
        public Builder migrationStatus(String migrationStatus) {
            if (migrationStatus == null) {
              throw new MissingRequiredPropertyException("MongoMigrationProgressDetailsResponse", "migrationStatus");
            }
            this.migrationStatus = migrationStatus;
            return this;
        }
        @CustomType.Setter
        public Builder processedDocumentCount(Double processedDocumentCount) {
            if (processedDocumentCount == null) {
              throw new MissingRequiredPropertyException("MongoMigrationProgressDetailsResponse", "processedDocumentCount");
            }
            this.processedDocumentCount = processedDocumentCount;
            return this;
        }
        @CustomType.Setter
        public Builder sourceDocumentCount(Double sourceDocumentCount) {
            if (sourceDocumentCount == null) {
              throw new MissingRequiredPropertyException("MongoMigrationProgressDetailsResponse", "sourceDocumentCount");
            }
            this.sourceDocumentCount = sourceDocumentCount;
            return this;
        }
        public MongoMigrationProgressDetailsResponse build() {
            final var _resultValue = new MongoMigrationProgressDetailsResponse();
            _resultValue.durationInSeconds = durationInSeconds;
            _resultValue.migrationError = migrationError;
            _resultValue.migrationStatus = migrationStatus;
            _resultValue.processedDocumentCount = processedDocumentCount;
            _resultValue.sourceDocumentCount = sourceDocumentCount;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy