com.pulumi.azurenative.datamigration.outputs.MongoDbConnectionInfoResponse 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 MongoDbConnectionInfoResponse {
/**
* @return A MongoDB connection string or blob container URL. The user name and password can be specified here or in the userName and password properties
*
*/
private String connectionString;
/**
* @return Password credential.
*
*/
private @Nullable String password;
/**
* @return Type of connection info
* Expected value is 'MongoDbConnectionInfo'.
*
*/
private String type;
/**
* @return User name
*
*/
private @Nullable String userName;
private MongoDbConnectionInfoResponse() {}
/**
* @return A MongoDB connection string or blob container URL. The user name and password can be specified here or in the userName and password properties
*
*/
public String connectionString() {
return this.connectionString;
}
/**
* @return Password credential.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return Type of connection info
* Expected value is 'MongoDbConnectionInfo'.
*
*/
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(MongoDbConnectionInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String connectionString;
private @Nullable String password;
private String type;
private @Nullable String userName;
public Builder() {}
public Builder(MongoDbConnectionInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.connectionString = defaults.connectionString;
this.password = defaults.password;
this.type = defaults.type;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder connectionString(String connectionString) {
if (connectionString == null) {
throw new MissingRequiredPropertyException("MongoDbConnectionInfoResponse", "connectionString");
}
this.connectionString = connectionString;
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("MongoDbConnectionInfoResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
public MongoDbConnectionInfoResponse build() {
final var _resultValue = new MongoDbConnectionInfoResponse();
_resultValue.connectionString = connectionString;
_resultValue.password = password;
_resultValue.type = type;
_resultValue.userName = userName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy