
com.pulumi.azurenative.datamigration.outputs.MongoConnectionInformationResponse Maven / Gradle / Ivy
// *** 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MongoConnectionInformationResponse {
/**
* @return Host of mongo connection.
*
*/
private @Nullable String host;
/**
* @return Port of mongo connection.
*
*/
private @Nullable Integer port;
private MongoConnectionInformationResponse() {}
/**
* @return Host of mongo connection.
*
*/
public Optional host() {
return Optional.ofNullable(this.host);
}
/**
* @return Port of mongo connection.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MongoConnectionInformationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String host;
private @Nullable Integer port;
public Builder() {}
public Builder(MongoConnectionInformationResponse defaults) {
Objects.requireNonNull(defaults);
this.host = defaults.host;
this.port = defaults.port;
}
@CustomType.Setter
public Builder host(@Nullable String host) {
this.host = host;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public MongoConnectionInformationResponse build() {
final var _resultValue = new MongoConnectionInformationResponse();
_resultValue.host = host;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy