Class RuleState.Builder
- java.lang.Object
-
- com.pulumi.openstack.firewall.inputs.RuleState.Builder
-
- Enclosing class:
- RuleState
public static final class RuleState.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleState.Builderaction(com.pulumi.core.Output<java.lang.String> action)RuleState.Builderaction(java.lang.String action)RuleStatebuild()RuleState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)RuleState.Builderdescription(java.lang.String description)RuleState.BuilderdestinationIpAddress(com.pulumi.core.Output<java.lang.String> destinationIpAddress)RuleState.BuilderdestinationIpAddress(java.lang.String destinationIpAddress)RuleState.BuilderdestinationPort(com.pulumi.core.Output<java.lang.String> destinationPort)RuleState.BuilderdestinationPort(java.lang.String destinationPort)RuleState.Builderenabled(com.pulumi.core.Output<java.lang.Boolean> enabled)RuleState.Builderenabled(java.lang.Boolean enabled)RuleState.BuilderipVersion(com.pulumi.core.Output<java.lang.Integer> ipVersion)RuleState.BuilderipVersion(java.lang.Integer ipVersion)RuleState.Buildername(com.pulumi.core.Output<java.lang.String> name)RuleState.Buildername(java.lang.String name)RuleState.Builderprotocol(com.pulumi.core.Output<java.lang.String> protocol)RuleState.Builderprotocol(java.lang.String protocol)RuleState.Builderregion(com.pulumi.core.Output<java.lang.String> region)RuleState.Builderregion(java.lang.String region)RuleState.BuildersourceIpAddress(com.pulumi.core.Output<java.lang.String> sourceIpAddress)RuleState.BuildersourceIpAddress(java.lang.String sourceIpAddress)RuleState.BuildersourcePort(com.pulumi.core.Output<java.lang.String> sourcePort)RuleState.BuildersourcePort(java.lang.String sourcePort)RuleState.BuildertenantId(com.pulumi.core.Output<java.lang.String> tenantId)RuleState.BuildertenantId(java.lang.String tenantId)RuleState.BuildervalueSpecs(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> valueSpecs)RuleState.BuildervalueSpecs(java.util.Map<java.lang.String,java.lang.Object> valueSpecs)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RuleState defaults)
-
-
Method Detail
-
action
public RuleState.Builder action(@Nullable com.pulumi.core.Output<java.lang.String> action)
- Parameters:
action- Action to be taken ( must be "allow" or "deny") when the firewall rule matches. Changing this updates the `action` of an existing firewall rule.- Returns:
- builder
-
action
public RuleState.Builder action(java.lang.String action)
- Parameters:
action- Action to be taken ( must be "allow" or "deny") when the firewall rule matches. Changing this updates the `action` of an existing firewall rule.- Returns:
- builder
-
description
public RuleState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- A description for the firewall rule. Changing this updates the `description` of an existing firewall rule.- Returns:
- builder
-
description
public RuleState.Builder description(java.lang.String description)
- Parameters:
description- A description for the firewall rule. Changing this updates the `description` of an existing firewall rule.- Returns:
- builder
-
destinationIpAddress
public RuleState.Builder destinationIpAddress(@Nullable com.pulumi.core.Output<java.lang.String> destinationIpAddress)
- Parameters:
destinationIpAddress- The destination IP address on which the firewall rule operates. Changing this updates the `destination_ip_address` of an existing firewall rule.- Returns:
- builder
-
destinationIpAddress
public RuleState.Builder destinationIpAddress(java.lang.String destinationIpAddress)
- Parameters:
destinationIpAddress- The destination IP address on which the firewall rule operates. Changing this updates the `destination_ip_address` of an existing firewall rule.- Returns:
- builder
-
destinationPort
public RuleState.Builder destinationPort(@Nullable com.pulumi.core.Output<java.lang.String> destinationPort)
- Parameters:
destinationPort- The destination port on which the firewall rule operates. Changing this updates the `destination_port` of an existing firewall rule.- Returns:
- builder
-
destinationPort
public RuleState.Builder destinationPort(java.lang.String destinationPort)
- Parameters:
destinationPort- The destination port on which the firewall rule operates. Changing this updates the `destination_port` of an existing firewall rule.- Returns:
- builder
-
enabled
public RuleState.Builder enabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> enabled)
- Parameters:
enabled- Enabled status for the firewall rule (must be "true" or "false" if provided - defaults to "true"). Changing this updates the `enabled` status of an existing firewall rule.- Returns:
- builder
-
enabled
public RuleState.Builder enabled(java.lang.Boolean enabled)
- Parameters:
enabled- Enabled status for the firewall rule (must be "true" or "false" if provided - defaults to "true"). Changing this updates the `enabled` status of an existing firewall rule.- Returns:
- builder
-
ipVersion
public RuleState.Builder ipVersion(@Nullable com.pulumi.core.Output<java.lang.Integer> ipVersion)
- Parameters:
ipVersion- IP version, either 4 (default) or 6. Changing this updates the `ip_version` of an existing firewall rule.- Returns:
- builder
-
ipVersion
public RuleState.Builder ipVersion(java.lang.Integer ipVersion)
- Parameters:
ipVersion- IP version, either 4 (default) or 6. Changing this updates the `ip_version` of an existing firewall rule.- Returns:
- builder
-
name
public RuleState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- A unique name for the firewall rule. Changing this updates the `name` of an existing firewall rule.- Returns:
- builder
-
name
public RuleState.Builder name(java.lang.String name)
- Parameters:
name- A unique name for the firewall rule. Changing this updates the `name` of an existing firewall rule.- Returns:
- builder
-
protocol
public RuleState.Builder protocol(@Nullable com.pulumi.core.Output<java.lang.String> protocol)
- Parameters:
protocol- The protocol type on which the firewall rule operates. Valid values are: `tcp`, `udp`, `icmp`, and `any`. Changing this updates the `protocol` of an existing firewall rule.- Returns:
- builder
-
protocol
public RuleState.Builder protocol(java.lang.String protocol)
- Parameters:
protocol- The protocol type on which the firewall rule operates. Valid values are: `tcp`, `udp`, `icmp`, and `any`. Changing this updates the `protocol` of an existing firewall rule.- Returns:
- builder
-
region
public RuleState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- The region in which to obtain the v1 Compute client. A Compute client is needed to create a firewall rule. If omitted, the `region` argument of the provider is used. Changing this creates a new firewall rule.- Returns:
- builder
-
region
public RuleState.Builder region(java.lang.String region)
- Parameters:
region- The region in which to obtain the v1 Compute client. A Compute client is needed to create a firewall rule. If omitted, the `region` argument of the provider is used. Changing this creates a new firewall rule.- Returns:
- builder
-
sourceIpAddress
public RuleState.Builder sourceIpAddress(@Nullable com.pulumi.core.Output<java.lang.String> sourceIpAddress)
- Parameters:
sourceIpAddress- The source IP address on which the firewall rule operates. Changing this updates the `source_ip_address` of an existing firewall rule.- Returns:
- builder
-
sourceIpAddress
public RuleState.Builder sourceIpAddress(java.lang.String sourceIpAddress)
- Parameters:
sourceIpAddress- The source IP address on which the firewall rule operates. Changing this updates the `source_ip_address` of an existing firewall rule.- Returns:
- builder
-
sourcePort
public RuleState.Builder sourcePort(@Nullable com.pulumi.core.Output<java.lang.String> sourcePort)
- Parameters:
sourcePort- The source port on which the firewall rule operates. Changing this updates the `source_port` of an existing firewall rule.- Returns:
- builder
-
sourcePort
public RuleState.Builder sourcePort(java.lang.String sourcePort)
- Parameters:
sourcePort- The source port on which the firewall rule operates. Changing this updates the `source_port` of an existing firewall rule.- Returns:
- builder
-
tenantId
public RuleState.Builder tenantId(@Nullable com.pulumi.core.Output<java.lang.String> tenantId)
- Parameters:
tenantId- The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.- Returns:
- builder
-
tenantId
public RuleState.Builder tenantId(java.lang.String tenantId)
- Parameters:
tenantId- The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.- Returns:
- builder
-
valueSpecs
public RuleState.Builder valueSpecs(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> valueSpecs)
- Parameters:
valueSpecs- Map of additional options.- Returns:
- builder
-
valueSpecs
public RuleState.Builder valueSpecs(java.util.Map<java.lang.String,java.lang.Object> valueSpecs)
- Parameters:
valueSpecs- Map of additional options.- Returns:
- builder
-
build
public RuleState build()
-
-