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

com.pulumi.scm.outputs.GetNatRuleDynamicDestinationTranslation Maven / Gradle / Ivy

There is a newer version: 0.2.0-alpha.1732774506
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.scm.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetNatRuleDynamicDestinationTranslation {
    /**
     * @return The Distribution param. String must be one of these: `"round-robin"`, `"source-ip-hash"`, `"ip-modulo"`, `"ip-hash"`, `"least-sessions"`. Default: `"round-robin"`.
     * 
     */
    private String distribution;
    /**
     * @return The ip address to be translated. String validation regex: `^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}$`.
     * 
     */
    private String translatedAddressSingle;
    /**
     * @return The TranslatedPort param.
     * 
     */
    private Integer translatedPort;

    private GetNatRuleDynamicDestinationTranslation() {}
    /**
     * @return The Distribution param. String must be one of these: `"round-robin"`, `"source-ip-hash"`, `"ip-modulo"`, `"ip-hash"`, `"least-sessions"`. Default: `"round-robin"`.
     * 
     */
    public String distribution() {
        return this.distribution;
    }
    /**
     * @return The ip address to be translated. String validation regex: `^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}$`.
     * 
     */
    public String translatedAddressSingle() {
        return this.translatedAddressSingle;
    }
    /**
     * @return The TranslatedPort param.
     * 
     */
    public Integer translatedPort() {
        return this.translatedPort;
    }

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

    public static Builder builder(GetNatRuleDynamicDestinationTranslation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String distribution;
        private String translatedAddressSingle;
        private Integer translatedPort;
        public Builder() {}
        public Builder(GetNatRuleDynamicDestinationTranslation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.distribution = defaults.distribution;
    	      this.translatedAddressSingle = defaults.translatedAddressSingle;
    	      this.translatedPort = defaults.translatedPort;
        }

        @CustomType.Setter
        public Builder distribution(String distribution) {
            if (distribution == null) {
              throw new MissingRequiredPropertyException("GetNatRuleDynamicDestinationTranslation", "distribution");
            }
            this.distribution = distribution;
            return this;
        }
        @CustomType.Setter
        public Builder translatedAddressSingle(String translatedAddressSingle) {
            if (translatedAddressSingle == null) {
              throw new MissingRequiredPropertyException("GetNatRuleDynamicDestinationTranslation", "translatedAddressSingle");
            }
            this.translatedAddressSingle = translatedAddressSingle;
            return this;
        }
        @CustomType.Setter
        public Builder translatedPort(Integer translatedPort) {
            if (translatedPort == null) {
              throw new MissingRequiredPropertyException("GetNatRuleDynamicDestinationTranslation", "translatedPort");
            }
            this.translatedPort = translatedPort;
            return this;
        }
        public GetNatRuleDynamicDestinationTranslation build() {
            final var _resultValue = new GetNatRuleDynamicDestinationTranslation();
            _resultValue.distribution = distribution;
            _resultValue.translatedAddressSingle = translatedAddressSingle;
            _resultValue.translatedPort = translatedPort;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy