
com.pulumi.azurenative.datamigration.outputs.StartMigrationScenarioServerRoleResultResponse Maven / Gradle / Ivy
// *** 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.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class StartMigrationScenarioServerRoleResultResponse {
/**
* @return Migration exceptions and warnings.
*
*/
private List exceptionsAndWarnings;
/**
* @return Name of server role.
*
*/
private String name;
/**
* @return Current state of migration
*
*/
private String state;
private StartMigrationScenarioServerRoleResultResponse() {}
/**
* @return Migration exceptions and warnings.
*
*/
public List exceptionsAndWarnings() {
return this.exceptionsAndWarnings;
}
/**
* @return Name of server role.
*
*/
public String name() {
return this.name;
}
/**
* @return Current state of migration
*
*/
public String state() {
return this.state;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StartMigrationScenarioServerRoleResultResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List exceptionsAndWarnings;
private String name;
private String state;
public Builder() {}
public Builder(StartMigrationScenarioServerRoleResultResponse defaults) {
Objects.requireNonNull(defaults);
this.exceptionsAndWarnings = defaults.exceptionsAndWarnings;
this.name = defaults.name;
this.state = defaults.state;
}
@CustomType.Setter
public Builder exceptionsAndWarnings(List exceptionsAndWarnings) {
if (exceptionsAndWarnings == null) {
throw new MissingRequiredPropertyException("StartMigrationScenarioServerRoleResultResponse", "exceptionsAndWarnings");
}
this.exceptionsAndWarnings = exceptionsAndWarnings;
return this;
}
public Builder exceptionsAndWarnings(ReportableExceptionResponse... exceptionsAndWarnings) {
return exceptionsAndWarnings(List.of(exceptionsAndWarnings));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("StartMigrationScenarioServerRoleResultResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder state(String state) {
if (state == null) {
throw new MissingRequiredPropertyException("StartMigrationScenarioServerRoleResultResponse", "state");
}
this.state = state;
return this;
}
public StartMigrationScenarioServerRoleResultResponse build() {
final var _resultValue = new StartMigrationScenarioServerRoleResultResponse();
_resultValue.exceptionsAndWarnings = exceptionsAndWarnings;
_resultValue.name = name;
_resultValue.state = state;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy