
com.pulumi.azurenative.datamigration.outputs.ConnectToTargetAzureDbForMySqlTaskOutputResponse 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.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ConnectToTargetAzureDbForMySqlTaskOutputResponse {
/**
* @return List of databases on target server
*
*/
private List databases;
/**
* @return Result identifier
*
*/
private String id;
/**
* @return Version of the target server
*
*/
private String serverVersion;
/**
* @return Target server brand version
*
*/
private String targetServerBrandVersion;
/**
* @return Validation errors associated with the task
*
*/
private List validationErrors;
private ConnectToTargetAzureDbForMySqlTaskOutputResponse() {}
/**
* @return List of databases on target server
*
*/
public List databases() {
return this.databases;
}
/**
* @return Result identifier
*
*/
public String id() {
return this.id;
}
/**
* @return Version of the target server
*
*/
public String serverVersion() {
return this.serverVersion;
}
/**
* @return Target server brand version
*
*/
public String targetServerBrandVersion() {
return this.targetServerBrandVersion;
}
/**
* @return Validation errors associated with the task
*
*/
public List validationErrors() {
return this.validationErrors;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectToTargetAzureDbForMySqlTaskOutputResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List databases;
private String id;
private String serverVersion;
private String targetServerBrandVersion;
private List validationErrors;
public Builder() {}
public Builder(ConnectToTargetAzureDbForMySqlTaskOutputResponse defaults) {
Objects.requireNonNull(defaults);
this.databases = defaults.databases;
this.id = defaults.id;
this.serverVersion = defaults.serverVersion;
this.targetServerBrandVersion = defaults.targetServerBrandVersion;
this.validationErrors = defaults.validationErrors;
}
@CustomType.Setter
public Builder databases(List databases) {
if (databases == null) {
throw new MissingRequiredPropertyException("ConnectToTargetAzureDbForMySqlTaskOutputResponse", "databases");
}
this.databases = databases;
return this;
}
public Builder databases(String... databases) {
return databases(List.of(databases));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("ConnectToTargetAzureDbForMySqlTaskOutputResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder serverVersion(String serverVersion) {
if (serverVersion == null) {
throw new MissingRequiredPropertyException("ConnectToTargetAzureDbForMySqlTaskOutputResponse", "serverVersion");
}
this.serverVersion = serverVersion;
return this;
}
@CustomType.Setter
public Builder targetServerBrandVersion(String targetServerBrandVersion) {
if (targetServerBrandVersion == null) {
throw new MissingRequiredPropertyException("ConnectToTargetAzureDbForMySqlTaskOutputResponse", "targetServerBrandVersion");
}
this.targetServerBrandVersion = targetServerBrandVersion;
return this;
}
@CustomType.Setter
public Builder validationErrors(List validationErrors) {
if (validationErrors == null) {
throw new MissingRequiredPropertyException("ConnectToTargetAzureDbForMySqlTaskOutputResponse", "validationErrors");
}
this.validationErrors = validationErrors;
return this;
}
public Builder validationErrors(ReportableExceptionResponse... validationErrors) {
return validationErrors(List.of(validationErrors));
}
public ConnectToTargetAzureDbForMySqlTaskOutputResponse build() {
final var _resultValue = new ConnectToTargetAzureDbForMySqlTaskOutputResponse();
_resultValue.databases = databases;
_resultValue.id = id;
_resultValue.serverVersion = serverVersion;
_resultValue.targetServerBrandVersion = targetServerBrandVersion;
_resultValue.validationErrors = validationErrors;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy