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

com.pulumi.azurenative.datamigration.outputs.MigrateSyncCompleteCommandPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.datamigration.outputs.MigrateSyncCompleteCommandInputResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSyncCompleteCommandOutputResponse;
import com.pulumi.azurenative.datamigration.outputs.ODataErrorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MigrateSyncCompleteCommandPropertiesResponse {
    /**
     * @return Command type.
     * Expected value is 'Migrate.Sync.Complete.Database'.
     * 
     */
    private String commandType;
    /**
     * @return Array of errors. This is ignored if submitted.
     * 
     */
    private List errors;
    /**
     * @return Command input
     * 
     */
    private @Nullable MigrateSyncCompleteCommandInputResponse input;
    /**
     * @return Command output. This is ignored if submitted.
     * 
     */
    private MigrateSyncCompleteCommandOutputResponse output;
    /**
     * @return The state of the command. This is ignored if submitted.
     * 
     */
    private String state;

    private MigrateSyncCompleteCommandPropertiesResponse() {}
    /**
     * @return Command type.
     * Expected value is 'Migrate.Sync.Complete.Database'.
     * 
     */
    public String commandType() {
        return this.commandType;
    }
    /**
     * @return Array of errors. This is ignored if submitted.
     * 
     */
    public List errors() {
        return this.errors;
    }
    /**
     * @return Command input
     * 
     */
    public Optional input() {
        return Optional.ofNullable(this.input);
    }
    /**
     * @return Command output. This is ignored if submitted.
     * 
     */
    public MigrateSyncCompleteCommandOutputResponse output() {
        return this.output;
    }
    /**
     * @return The state of the command. This is ignored if submitted.
     * 
     */
    public String state() {
        return this.state;
    }

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

    public static Builder builder(MigrateSyncCompleteCommandPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String commandType;
        private List errors;
        private @Nullable MigrateSyncCompleteCommandInputResponse input;
        private MigrateSyncCompleteCommandOutputResponse output;
        private String state;
        public Builder() {}
        public Builder(MigrateSyncCompleteCommandPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.commandType = defaults.commandType;
    	      this.errors = defaults.errors;
    	      this.input = defaults.input;
    	      this.output = defaults.output;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder commandType(String commandType) {
            if (commandType == null) {
              throw new MissingRequiredPropertyException("MigrateSyncCompleteCommandPropertiesResponse", "commandType");
            }
            this.commandType = commandType;
            return this;
        }
        @CustomType.Setter
        public Builder errors(List errors) {
            if (errors == null) {
              throw new MissingRequiredPropertyException("MigrateSyncCompleteCommandPropertiesResponse", "errors");
            }
            this.errors = errors;
            return this;
        }
        public Builder errors(ODataErrorResponse... errors) {
            return errors(List.of(errors));
        }
        @CustomType.Setter
        public Builder input(@Nullable MigrateSyncCompleteCommandInputResponse input) {

            this.input = input;
            return this;
        }
        @CustomType.Setter
        public Builder output(MigrateSyncCompleteCommandOutputResponse output) {
            if (output == null) {
              throw new MissingRequiredPropertyException("MigrateSyncCompleteCommandPropertiesResponse", "output");
            }
            this.output = output;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("MigrateSyncCompleteCommandPropertiesResponse", "state");
            }
            this.state = state;
            return this;
        }
        public MigrateSyncCompleteCommandPropertiesResponse build() {
            final var _resultValue = new MigrateSyncCompleteCommandPropertiesResponse();
            _resultValue.commandType = commandType;
            _resultValue.errors = errors;
            _resultValue.input = input;
            _resultValue.output = output;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy