
com.pulumi.junipermist.site.outputs.SettingGatewayMgmtProtectReCustom Maven / Gradle / Ivy
// *** 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.junipermist.site.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SettingGatewayMgmtProtectReCustom {
/**
* @return matched dst port, "0" means any. Note: For `protocol`==`any` and `port_range`==`any`, configure `trusted_hosts` instead
*
*/
private @Nullable String portRange;
/**
* @return enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and `port_range`==`any`, configure `trusted_hosts` instead
*
*/
private @Nullable String protocol;
private List subnets;
private SettingGatewayMgmtProtectReCustom() {}
/**
* @return matched dst port, "0" means any. Note: For `protocol`==`any` and `port_range`==`any`, configure `trusted_hosts` instead
*
*/
public Optional portRange() {
return Optional.ofNullable(this.portRange);
}
/**
* @return enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and `port_range`==`any`, configure `trusted_hosts` instead
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public List subnets() {
return this.subnets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SettingGatewayMgmtProtectReCustom defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String portRange;
private @Nullable String protocol;
private List subnets;
public Builder() {}
public Builder(SettingGatewayMgmtProtectReCustom defaults) {
Objects.requireNonNull(defaults);
this.portRange = defaults.portRange;
this.protocol = defaults.protocol;
this.subnets = defaults.subnets;
}
@CustomType.Setter
public Builder portRange(@Nullable String portRange) {
this.portRange = portRange;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder subnets(List subnets) {
if (subnets == null) {
throw new MissingRequiredPropertyException("SettingGatewayMgmtProtectReCustom", "subnets");
}
this.subnets = subnets;
return this;
}
public Builder subnets(String... subnets) {
return subnets(List.of(subnets));
}
public SettingGatewayMgmtProtectReCustom build() {
final var _resultValue = new SettingGatewayMgmtProtectReCustom();
_resultValue.portRange = portRange;
_resultValue.protocol = protocol;
_resultValue.subnets = subnets;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy