com.pulumi.alicloud.selectdb.outputs.DbInstanceInstanceNetInfoPortList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.selectdb.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DbInstanceInstanceNetInfoPortList {
/**
* @return The port that is used to connect.
*
*/
private @Nullable String port;
/**
* @return The protocol of the port.
*
*/
private @Nullable String protocol;
private DbInstanceInstanceNetInfoPortList() {}
/**
* @return The port that is used to connect.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return The protocol of the port.
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DbInstanceInstanceNetInfoPortList defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String port;
private @Nullable String protocol;
public Builder() {}
public Builder(DbInstanceInstanceNetInfoPortList defaults) {
Objects.requireNonNull(defaults);
this.port = defaults.port;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder port(@Nullable String port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public DbInstanceInstanceNetInfoPortList build() {
final var _resultValue = new DbInstanceInstanceNetInfoPortList();
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}