com.pulumi.azurenative.datamigration.outputs.MySqlConnectionInfoResponse 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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MySqlConnectionInfoResponse {
/**
* @return Whether to encrypt the connection
*
*/
private @Nullable Boolean encryptConnection;
/**
* @return Password credential.
*
*/
private @Nullable String password;
/**
* @return Port for Server
*
*/
private Integer port;
/**
* @return Name of the server
*
*/
private String serverName;
/**
* @return Type of connection info
* Expected value is 'MySqlConnectionInfo'.
*
*/
private String type;
/**
* @return User name
*
*/
private @Nullable String userName;
private MySqlConnectionInfoResponse() {}
/**
* @return Whether to encrypt the connection
*
*/
public Optional encryptConnection() {
return Optional.ofNullable(this.encryptConnection);
}
/**
* @return Password credential.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return Port for Server
*
*/
public Integer port() {
return this.port;
}
/**
* @return Name of the server
*
*/
public String serverName() {
return this.serverName;
}
/**
* @return Type of connection info
* Expected value is 'MySqlConnectionInfo'.
*
*/
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(MySqlConnectionInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean encryptConnection;
private @Nullable String password;
private Integer port;
private String serverName;
private String type;
private @Nullable String userName;
public Builder() {}
public Builder(MySqlConnectionInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.encryptConnection = defaults.encryptConnection;
this.password = defaults.password;
this.port = defaults.port;
this.serverName = defaults.serverName;
this.type = defaults.type;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder encryptConnection(@Nullable Boolean encryptConnection) {
this.encryptConnection = encryptConnection;
return this;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder port(Integer port) {
if (port == null) {
throw new MissingRequiredPropertyException("MySqlConnectionInfoResponse", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder serverName(String serverName) {
if (serverName == null) {
throw new MissingRequiredPropertyException("MySqlConnectionInfoResponse", "serverName");
}
this.serverName = serverName;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("MySqlConnectionInfoResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
public MySqlConnectionInfoResponse build() {
final var _resultValue = new MySqlConnectionInfoResponse();
_resultValue.encryptConnection = encryptConnection;
_resultValue.password = password;
_resultValue.port = port;
_resultValue.serverName = serverName;
_resultValue.type = type;
_resultValue.userName = userName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy