
com.pulumi.junipermist.device.outputs.SwitchSwitchMgmtProtectRe 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.device.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.junipermist.device.outputs.SwitchSwitchMgmtProtectReCustom;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SwitchSwitchMgmtProtectRe {
/**
* @return optionally, services we'll allow. enum: `icmp`, `ssh`
*
*/
private @Nullable List allowedServices;
private @Nullable List customs;
/**
* @return when enabled, all traffic that is not essential to our operation will be dropped
* e.g. ntp / dns / traffic to mist will be allowed by default
* if dhcpd is enabled, we'll make sure it works
*
*/
private @Nullable Boolean enabled;
/**
* @return host/subnets we'll allow traffic to/from
*
*/
private @Nullable List trustedHosts;
private SwitchSwitchMgmtProtectRe() {}
/**
* @return optionally, services we'll allow. enum: `icmp`, `ssh`
*
*/
public List allowedServices() {
return this.allowedServices == null ? List.of() : this.allowedServices;
}
public List customs() {
return this.customs == null ? List.of() : this.customs;
}
/**
* @return when enabled, all traffic that is not essential to our operation will be dropped
* e.g. ntp / dns / traffic to mist will be allowed by default
* if dhcpd is enabled, we'll make sure it works
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return host/subnets we'll allow traffic to/from
*
*/
public List trustedHosts() {
return this.trustedHosts == null ? List.of() : this.trustedHosts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SwitchSwitchMgmtProtectRe defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allowedServices;
private @Nullable List customs;
private @Nullable Boolean enabled;
private @Nullable List trustedHosts;
public Builder() {}
public Builder(SwitchSwitchMgmtProtectRe defaults) {
Objects.requireNonNull(defaults);
this.allowedServices = defaults.allowedServices;
this.customs = defaults.customs;
this.enabled = defaults.enabled;
this.trustedHosts = defaults.trustedHosts;
}
@CustomType.Setter
public Builder allowedServices(@Nullable List allowedServices) {
this.allowedServices = allowedServices;
return this;
}
public Builder allowedServices(String... allowedServices) {
return allowedServices(List.of(allowedServices));
}
@CustomType.Setter
public Builder customs(@Nullable List customs) {
this.customs = customs;
return this;
}
public Builder customs(SwitchSwitchMgmtProtectReCustom... customs) {
return customs(List.of(customs));
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder trustedHosts(@Nullable List trustedHosts) {
this.trustedHosts = trustedHosts;
return this;
}
public Builder trustedHosts(String... trustedHosts) {
return trustedHosts(List.of(trustedHosts));
}
public SwitchSwitchMgmtProtectRe build() {
final var _resultValue = new SwitchSwitchMgmtProtectRe();
_resultValue.allowedServices = allowedServices;
_resultValue.customs = customs;
_resultValue.enabled = enabled;
_resultValue.trustedHosts = trustedHosts;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy