com.pulumi.azurenative.datamigration.outputs.MiSqlConnectionInfoResponse 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MiSqlConnectionInfoResponse {
/**
* @return Resource id for Azure SQL database Managed instance
*
*/
private String managedInstanceResourceId;
/**
* @return Password credential.
*
*/
private @Nullable String password;
/**
* @return Type of connection info
* Expected value is 'MiSqlConnectionInfo'.
*
*/
private String type;
/**
* @return User name
*
*/
private @Nullable String userName;
private MiSqlConnectionInfoResponse() {}
/**
* @return Resource id for Azure SQL database Managed instance
*
*/
public String managedInstanceResourceId() {
return this.managedInstanceResourceId;
}
/**
* @return Password credential.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return Type of connection info
* Expected value is 'MiSqlConnectionInfo'.
*
*/
public String type() {
return this.type;
}
/**
* @return User name
*
*/
public Optional userName() {
return Optional.ofNullable(this.userName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MiSqlConnectionInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String managedInstanceResourceId;
private @Nullable String password;
private String type;
private @Nullable String userName;
public Builder() {}
public Builder(MiSqlConnectionInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.managedInstanceResourceId = defaults.managedInstanceResourceId;
this.password = defaults.password;
this.type = defaults.type;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder managedInstanceResourceId(String managedInstanceResourceId) {
if (managedInstanceResourceId == null) {
throw new MissingRequiredPropertyException("MiSqlConnectionInfoResponse", "managedInstanceResourceId");
}
this.managedInstanceResourceId = managedInstanceResourceId;
return this;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("MiSqlConnectionInfoResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
public MiSqlConnectionInfoResponse build() {
final var _resultValue = new MiSqlConnectionInfoResponse();
_resultValue.managedInstanceResourceId = managedInstanceResourceId;
_resultValue.password = password;
_resultValue.type = type;
_resultValue.userName = userName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy