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