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

com.pulumi.azurenative.dbforpostgresql.outputs.MigrationStatusResponse 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.dbforpostgresql.outputs;

import com.pulumi.azurenative.dbforpostgresql.outputs.MigrationSubStateDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class MigrationStatusResponse {
    /**
     * @return Current Migration sub state details.
     * 
     */
    private MigrationSubStateDetailsResponse currentSubStateDetails;
    /**
     * @return Error message, if any, for the migration state
     * 
     */
    private String error;
    /**
     * @return State of migration
     * 
     */
    private String state;

    private MigrationStatusResponse() {}
    /**
     * @return Current Migration sub state details.
     * 
     */
    public MigrationSubStateDetailsResponse currentSubStateDetails() {
        return this.currentSubStateDetails;
    }
    /**
     * @return Error message, if any, for the migration state
     * 
     */
    public String error() {
        return this.error;
    }
    /**
     * @return State of migration
     * 
     */
    public String state() {
        return this.state;
    }

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

    public static Builder builder(MigrationStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private MigrationSubStateDetailsResponse currentSubStateDetails;
        private String error;
        private String state;
        public Builder() {}
        public Builder(MigrationStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.currentSubStateDetails = defaults.currentSubStateDetails;
    	      this.error = defaults.error;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder currentSubStateDetails(MigrationSubStateDetailsResponse currentSubStateDetails) {
            if (currentSubStateDetails == null) {
              throw new MissingRequiredPropertyException("MigrationStatusResponse", "currentSubStateDetails");
            }
            this.currentSubStateDetails = currentSubStateDetails;
            return this;
        }
        @CustomType.Setter
        public Builder error(String error) {
            if (error == null) {
              throw new MissingRequiredPropertyException("MigrationStatusResponse", "error");
            }
            this.error = error;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("MigrationStatusResponse", "state");
            }
            this.state = state;
            return this;
        }
        public MigrationStatusResponse build() {
            final var _resultValue = new MigrationStatusResponse();
            _resultValue.currentSubStateDetails = currentSubStateDetails;
            _resultValue.error = error;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy