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

com.pulumi.docker.outputs.GetNetworkIpamConfig Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetNetworkIpamConfig {
    /**
     * @return Auxiliary IPv4 or IPv6 addresses used by Network driver
     * 
     */
    private @Nullable Map auxAddress;
    /**
     * @return The IP address of the gateway
     * 
     */
    private @Nullable String gateway;
    /**
     * @return The ip range in CIDR form
     * 
     */
    private @Nullable String ipRange;
    /**
     * @return The subnet in CIDR form
     * 
     */
    private @Nullable String subnet;

    private GetNetworkIpamConfig() {}
    /**
     * @return Auxiliary IPv4 or IPv6 addresses used by Network driver
     * 
     */
    public Map auxAddress() {
        return this.auxAddress == null ? Map.of() : this.auxAddress;
    }
    /**
     * @return The IP address of the gateway
     * 
     */
    public Optional gateway() {
        return Optional.ofNullable(this.gateway);
    }
    /**
     * @return The ip range in CIDR form
     * 
     */
    public Optional ipRange() {
        return Optional.ofNullable(this.ipRange);
    }
    /**
     * @return The subnet in CIDR form
     * 
     */
    public Optional subnet() {
        return Optional.ofNullable(this.subnet);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetNetworkIpamConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map auxAddress;
        private @Nullable String gateway;
        private @Nullable String ipRange;
        private @Nullable String subnet;
        public Builder() {}
        public Builder(GetNetworkIpamConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auxAddress = defaults.auxAddress;
    	      this.gateway = defaults.gateway;
    	      this.ipRange = defaults.ipRange;
    	      this.subnet = defaults.subnet;
        }

        @CustomType.Setter
        public Builder auxAddress(@Nullable Map auxAddress) {

            this.auxAddress = auxAddress;
            return this;
        }
        @CustomType.Setter
        public Builder gateway(@Nullable String gateway) {

            this.gateway = gateway;
            return this;
        }
        @CustomType.Setter
        public Builder ipRange(@Nullable String ipRange) {

            this.ipRange = ipRange;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(@Nullable String subnet) {

            this.subnet = subnet;
            return this;
        }
        public GetNetworkIpamConfig build() {
            final var _resultValue = new GetNetworkIpamConfig();
            _resultValue.auxAddress = auxAddress;
            _resultValue.gateway = gateway;
            _resultValue.ipRange = ipRange;
            _resultValue.subnet = subnet;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy