com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.ReportableExceptionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse {
/**
* @return Name of the database
*
*/
private String databaseName;
/**
* @return Migration end time
*
*/
private String endedOn;
/**
* @return Migration exceptions and warnings
*
*/
private List exceptionsAndWarnings;
/**
* @return Result identifier
*
*/
private String id;
/**
* @return Migration progress message
*
*/
private String message;
/**
* @return Result type
* Expected value is 'DatabaseLevelOutput'.
*
*/
private String resultType;
/**
* @return Size of the database in megabytes
*
*/
private Double sizeMB;
/**
* @return Current stage of migration
*
*/
private String stage;
/**
* @return Migration start time
*
*/
private String startedOn;
/**
* @return Current state of migration
*
*/
private String state;
private MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse() {}
/**
* @return Name of the database
*
*/
public String databaseName() {
return this.databaseName;
}
/**
* @return Migration end time
*
*/
public String endedOn() {
return this.endedOn;
}
/**
* @return Migration exceptions and warnings
*
*/
public List exceptionsAndWarnings() {
return this.exceptionsAndWarnings;
}
/**
* @return Result identifier
*
*/
public String id() {
return this.id;
}
/**
* @return Migration progress message
*
*/
public String message() {
return this.message;
}
/**
* @return Result type
* Expected value is 'DatabaseLevelOutput'.
*
*/
public String resultType() {
return this.resultType;
}
/**
* @return Size of the database in megabytes
*
*/
public Double sizeMB() {
return this.sizeMB;
}
/**
* @return Current stage of migration
*
*/
public String stage() {
return this.stage;
}
/**
* @return Migration start time
*
*/
public String startedOn() {
return this.startedOn;
}
/**
* @return Current state of migration
*
*/
public String state() {
return this.state;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String databaseName;
private String endedOn;
private List exceptionsAndWarnings;
private String id;
private String message;
private String resultType;
private Double sizeMB;
private String stage;
private String startedOn;
private String state;
public Builder() {}
public Builder(MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse defaults) {
Objects.requireNonNull(defaults);
this.databaseName = defaults.databaseName;
this.endedOn = defaults.endedOn;
this.exceptionsAndWarnings = defaults.exceptionsAndWarnings;
this.id = defaults.id;
this.message = defaults.message;
this.resultType = defaults.resultType;
this.sizeMB = defaults.sizeMB;
this.stage = defaults.stage;
this.startedOn = defaults.startedOn;
this.state = defaults.state;
}
@CustomType.Setter
public Builder databaseName(String databaseName) {
if (databaseName == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "databaseName");
}
this.databaseName = databaseName;
return this;
}
@CustomType.Setter
public Builder endedOn(String endedOn) {
if (endedOn == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "endedOn");
}
this.endedOn = endedOn;
return this;
}
@CustomType.Setter
public Builder exceptionsAndWarnings(List exceptionsAndWarnings) {
if (exceptionsAndWarnings == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "exceptionsAndWarnings");
}
this.exceptionsAndWarnings = exceptionsAndWarnings;
return this;
}
public Builder exceptionsAndWarnings(ReportableExceptionResponse... exceptionsAndWarnings) {
return exceptionsAndWarnings(List.of(exceptionsAndWarnings));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder message(String message) {
if (message == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "message");
}
this.message = message;
return this;
}
@CustomType.Setter
public Builder resultType(String resultType) {
if (resultType == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "resultType");
}
this.resultType = resultType;
return this;
}
@CustomType.Setter
public Builder sizeMB(Double sizeMB) {
if (sizeMB == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "sizeMB");
}
this.sizeMB = sizeMB;
return this;
}
@CustomType.Setter
public Builder stage(String stage) {
if (stage == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "stage");
}
this.stage = stage;
return this;
}
@CustomType.Setter
public Builder startedOn(String startedOn) {
if (startedOn == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "startedOn");
}
this.startedOn = startedOn;
return this;
}
@CustomType.Setter
public Builder state(String state) {
if (state == null) {
throw new MissingRequiredPropertyException("MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse", "state");
}
this.state = state;
return this;
}
public MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse build() {
final var _resultValue = new MigrateSqlServerSqlMITaskOutputDatabaseLevelResponse();
_resultValue.databaseName = databaseName;
_resultValue.endedOn = endedOn;
_resultValue.exceptionsAndWarnings = exceptionsAndWarnings;
_resultValue.id = id;
_resultValue.message = message;
_resultValue.resultType = resultType;
_resultValue.sizeMB = sizeMB;
_resultValue.stage = stage;
_resultValue.startedOn = startedOn;
_resultValue.state = state;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy