com.pulumi.meraki.networks.outputs.WirelessSsidsFirewallL3FirewallRulesRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki resources
// *** 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.meraki.networks.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WirelessSsidsFirewallL3FirewallRulesRule {
/**
* @return Description of the rule (optional)
*
*/
private @Nullable String comment;
/**
* @return Comma-separated list of destination IP address(es) (in IP or CIDR notation), fully-qualified domain names (FQDN) or 'any'
*
*/
private @Nullable String destCidr;
/**
* @return Comma-separated list of destination port(s) (integer in the range 1-65535), or 'any'
*
*/
private @Nullable String destPort;
/**
* @return Ip Ver
*
*/
private @Nullable String ipVer;
/**
* @return 'allow' or 'deny' traffic specified by this rule
*
*/
private @Nullable String policy;
/**
* @return The type of protocol (must be 'tcp', 'udp', 'icmp', 'icmp6' or 'any')
*
*/
private @Nullable String protocol;
private WirelessSsidsFirewallL3FirewallRulesRule() {}
/**
* @return Description of the rule (optional)
*
*/
public Optional comment() {
return Optional.ofNullable(this.comment);
}
/**
* @return Comma-separated list of destination IP address(es) (in IP or CIDR notation), fully-qualified domain names (FQDN) or 'any'
*
*/
public Optional destCidr() {
return Optional.ofNullable(this.destCidr);
}
/**
* @return Comma-separated list of destination port(s) (integer in the range 1-65535), or 'any'
*
*/
public Optional destPort() {
return Optional.ofNullable(this.destPort);
}
/**
* @return Ip Ver
*
*/
public Optional ipVer() {
return Optional.ofNullable(this.ipVer);
}
/**
* @return 'allow' or 'deny' traffic specified by this rule
*
*/
public Optional policy() {
return Optional.ofNullable(this.policy);
}
/**
* @return The type of protocol (must be 'tcp', 'udp', 'icmp', 'icmp6' or 'any')
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WirelessSsidsFirewallL3FirewallRulesRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String comment;
private @Nullable String destCidr;
private @Nullable String destPort;
private @Nullable String ipVer;
private @Nullable String policy;
private @Nullable String protocol;
public Builder() {}
public Builder(WirelessSsidsFirewallL3FirewallRulesRule defaults) {
Objects.requireNonNull(defaults);
this.comment = defaults.comment;
this.destCidr = defaults.destCidr;
this.destPort = defaults.destPort;
this.ipVer = defaults.ipVer;
this.policy = defaults.policy;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder comment(@Nullable String comment) {
this.comment = comment;
return this;
}
@CustomType.Setter
public Builder destCidr(@Nullable String destCidr) {
this.destCidr = destCidr;
return this;
}
@CustomType.Setter
public Builder destPort(@Nullable String destPort) {
this.destPort = destPort;
return this;
}
@CustomType.Setter
public Builder ipVer(@Nullable String ipVer) {
this.ipVer = ipVer;
return this;
}
@CustomType.Setter
public Builder policy(@Nullable String policy) {
this.policy = policy;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public WirelessSsidsFirewallL3FirewallRulesRule build() {
final var _resultValue = new WirelessSsidsFirewallL3FirewallRulesRule();
_resultValue.comment = comment;
_resultValue.destCidr = destCidr;
_resultValue.destPort = destPort;
_resultValue.ipVer = ipVer;
_resultValue.policy = policy;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}