All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.selectdb.outputs.DbInstanceInstanceNetInfoPortList Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy