com.pulumi.scm.outputs.GetNatRuleListDataDynamicDestinationTranslation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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 GetNatRuleListDataDynamicDestinationTranslation {
/**
* @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 GetNatRuleListDataDynamicDestinationTranslation() {}
/**
* @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(GetNatRuleListDataDynamicDestinationTranslation 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(GetNatRuleListDataDynamicDestinationTranslation 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("GetNatRuleListDataDynamicDestinationTranslation", "distribution");
}
this.distribution = distribution;
return this;
}
@CustomType.Setter
public Builder translatedAddressSingle(String translatedAddressSingle) {
if (translatedAddressSingle == null) {
throw new MissingRequiredPropertyException("GetNatRuleListDataDynamicDestinationTranslation", "translatedAddressSingle");
}
this.translatedAddressSingle = translatedAddressSingle;
return this;
}
@CustomType.Setter
public Builder translatedPort(Integer translatedPort) {
if (translatedPort == null) {
throw new MissingRequiredPropertyException("GetNatRuleListDataDynamicDestinationTranslation", "translatedPort");
}
this.translatedPort = translatedPort;
return this;
}
public GetNatRuleListDataDynamicDestinationTranslation build() {
final var _resultValue = new GetNatRuleListDataDynamicDestinationTranslation();
_resultValue.distribution = distribution;
_resultValue.translatedAddressSingle = translatedAddressSingle;
_resultValue.translatedPort = translatedPort;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy