com.pulumi.linode.inputs.GetFirewallsFirewallOutbound Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.linode.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class GetFirewallsFirewallOutbound extends com.pulumi.resources.InvokeArgs {
public static final GetFirewallsFirewallOutbound Empty = new GetFirewallsFirewallOutbound();
/**
* Controls whether traffic is accepted or dropped by this rule (ACCEPT, DROP).
*
*/
@Import(name="action", required=true)
private String action;
/**
* @return Controls whether traffic is accepted or dropped by this rule (ACCEPT, DROP).
*
*/
public String action() {
return this.action;
}
/**
* A list of IPv4 addresses or networks in IP/mask format.
*
*/
@Import(name="ipv4s", required=true)
private List ipv4s;
/**
* @return A list of IPv4 addresses or networks in IP/mask format.
*
*/
public List ipv4s() {
return this.ipv4s;
}
/**
* A list of IPv6 addresses or networks in IP/mask format.
*
*/
@Import(name="ipv6s", required=true)
private List ipv6s;
/**
* @return A list of IPv6 addresses or networks in IP/mask format.
*
*/
public List ipv6s() {
return this.ipv6s;
}
/**
* The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
*
*/
@Import(name="label", required=true)
private String label;
/**
* @return The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
*
*/
public String label() {
return this.label;
}
/**
* A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
*
*/
@Import(name="ports", required=true)
private String ports;
/**
* @return A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
*
*/
public String ports() {
return this.ports;
}
/**
* The network protocol this rule controls. (TCP, UDP, ICMP)
*
*/
@Import(name="protocol", required=true)
private String protocol;
/**
* @return The network protocol this rule controls. (TCP, UDP, ICMP)
*
*/
public String protocol() {
return this.protocol;
}
private GetFirewallsFirewallOutbound() {}
private GetFirewallsFirewallOutbound(GetFirewallsFirewallOutbound $) {
this.action = $.action;
this.ipv4s = $.ipv4s;
this.ipv6s = $.ipv6s;
this.label = $.label;
this.ports = $.ports;
this.protocol = $.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetFirewallsFirewallOutbound defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetFirewallsFirewallOutbound $;
public Builder() {
$ = new GetFirewallsFirewallOutbound();
}
public Builder(GetFirewallsFirewallOutbound defaults) {
$ = new GetFirewallsFirewallOutbound(Objects.requireNonNull(defaults));
}
/**
* @param action Controls whether traffic is accepted or dropped by this rule (ACCEPT, DROP).
*
* @return builder
*
*/
public Builder action(String action) {
$.action = action;
return this;
}
/**
* @param ipv4s A list of IPv4 addresses or networks in IP/mask format.
*
* @return builder
*
*/
public Builder ipv4s(List ipv4s) {
$.ipv4s = ipv4s;
return this;
}
/**
* @param ipv4s A list of IPv4 addresses or networks in IP/mask format.
*
* @return builder
*
*/
public Builder ipv4s(String... ipv4s) {
return ipv4s(List.of(ipv4s));
}
/**
* @param ipv6s A list of IPv6 addresses or networks in IP/mask format.
*
* @return builder
*
*/
public Builder ipv6s(List ipv6s) {
$.ipv6s = ipv6s;
return this;
}
/**
* @param ipv6s A list of IPv6 addresses or networks in IP/mask format.
*
* @return builder
*
*/
public Builder ipv6s(String... ipv6s) {
return ipv6s(List.of(ipv6s));
}
/**
* @param label The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
*
* @return builder
*
*/
public Builder label(String label) {
$.label = label;
return this;
}
/**
* @param ports A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
*
* @return builder
*
*/
public Builder ports(String ports) {
$.ports = ports;
return this;
}
/**
* @param protocol The network protocol this rule controls. (TCP, UDP, ICMP)
*
* @return builder
*
*/
public Builder protocol(String protocol) {
$.protocol = protocol;
return this;
}
public GetFirewallsFirewallOutbound build() {
if ($.action == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "action");
}
if ($.ipv4s == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "ipv4s");
}
if ($.ipv6s == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "ipv6s");
}
if ($.label == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "label");
}
if ($.ports == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "ports");
}
if ($.protocol == null) {
throw new MissingRequiredPropertyException("GetFirewallsFirewallOutbound", "protocol");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy