Class RuleV2State.Builder
- java.lang.Object
-
- com.pulumi.openstack.firewall.inputs.RuleV2State.Builder
-
- Enclosing class:
- RuleV2State
public static final class RuleV2State.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(RuleV2State defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleV2State.Builderaction(com.pulumi.core.Output<java.lang.String> action)RuleV2State.Builderaction(java.lang.String action)RuleV2Statebuild()RuleV2State.Builderdescription(com.pulumi.core.Output<java.lang.String> description)RuleV2State.Builderdescription(java.lang.String description)RuleV2State.BuilderdestinationIpAddress(com.pulumi.core.Output<java.lang.String> destinationIpAddress)RuleV2State.BuilderdestinationIpAddress(java.lang.String destinationIpAddress)RuleV2State.BuilderdestinationPort(com.pulumi.core.Output<java.lang.String> destinationPort)RuleV2State.BuilderdestinationPort(java.lang.String destinationPort)RuleV2State.Builderenabled(com.pulumi.core.Output<java.lang.Boolean> enabled)RuleV2State.Builderenabled(java.lang.Boolean enabled)RuleV2State.BuilderipVersion(com.pulumi.core.Output<java.lang.Integer> ipVersion)RuleV2State.BuilderipVersion(java.lang.Integer ipVersion)RuleV2State.Buildername(com.pulumi.core.Output<java.lang.String> name)RuleV2State.Buildername(java.lang.String name)RuleV2State.BuilderprojectId(com.pulumi.core.Output<java.lang.String> projectId)RuleV2State.BuilderprojectId(java.lang.String projectId)RuleV2State.Builderprotocol(com.pulumi.core.Output<java.lang.String> protocol)RuleV2State.Builderprotocol(java.lang.String protocol)RuleV2State.Builderregion(com.pulumi.core.Output<java.lang.String> region)RuleV2State.Builderregion(java.lang.String region)RuleV2State.Buildershared(com.pulumi.core.Output<java.lang.Boolean> shared)RuleV2State.Buildershared(java.lang.Boolean shared)RuleV2State.BuildersourceIpAddress(com.pulumi.core.Output<java.lang.String> sourceIpAddress)RuleV2State.BuildersourceIpAddress(java.lang.String sourceIpAddress)RuleV2State.BuildersourcePort(com.pulumi.core.Output<java.lang.String> sourcePort)RuleV2State.BuildersourcePort(java.lang.String sourcePort)RuleV2State.BuildertenantId(com.pulumi.core.Output<java.lang.String> tenantId)RuleV2State.BuildertenantId(java.lang.String tenantId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RuleV2State defaults)
-
-
Method Detail
-
action
public RuleV2State.Builder action(@Nullable com.pulumi.core.Output<java.lang.String> action)
- Parameters:
action- Action to be taken (must be "allow", "deny" or "reject") when the firewall rule matches. Changing this updates the `action` of an existing firewall rule. Default is `deny`.- Returns:
- builder
-
action
public RuleV2State.Builder action(java.lang.String action)
- Parameters:
action- Action to be taken (must be "allow", "deny" or "reject") when the firewall rule matches. Changing this updates the `action` of an existing firewall rule. Default is `deny`.- Returns:
- builder
-
description
public RuleV2State.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 RuleV2State.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 RuleV2State.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 RuleV2State.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 RuleV2State.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. Require not `any` or empty protocol.- Returns:
- builder
-
destinationPort
public RuleV2State.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. Require not `any` or empty protocol.- Returns:
- builder
-
enabled
public RuleV2State.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 RuleV2State.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 RuleV2State.Builder ipVersion(@Nullable com.pulumi.core.Output<java.lang.Integer> ipVersion)
- Parameters:
ipVersion- IP version, either 4 or 6. Changing this updates the `ip_version` of an existing firewall rule. Default is `4`.- Returns:
- builder
-
ipVersion
public RuleV2State.Builder ipVersion(java.lang.Integer ipVersion)
- Parameters:
ipVersion- IP version, either 4 or 6. Changing this updates the `ip_version` of an existing firewall rule. Default is `4`.- Returns:
- builder
-
name
public RuleV2State.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 RuleV2State.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
-
projectId
public RuleV2State.Builder projectId(@Nullable com.pulumi.core.Output<java.lang.String> projectId)
- Parameters:
projectId- This argument conflicts and is interchangeable with `tenant_id`. The owner of the firewall rule. Required if admin wants to create a firewall rule for another project. Changing this creates a new firewall rule.- Returns:
- builder
-
projectId
public RuleV2State.Builder projectId(java.lang.String projectId)
- Parameters:
projectId- This argument conflicts and is interchangeable with `tenant_id`. The owner of the firewall rule. Required if admin wants to create a firewall rule for another project. Changing this creates a new firewall rule.- Returns:
- builder
-
protocol
public RuleV2State.Builder protocol(@Nullable com.pulumi.core.Output<java.lang.String> protocol)
- Parameters:
protocol- (Optional; Required if `source_port` or `destination_port` is not empty) 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. Default is `any`.- Returns:
- builder
-
protocol
public RuleV2State.Builder protocol(java.lang.String protocol)
- Parameters:
protocol- (Optional; Required if `source_port` or `destination_port` is not empty) 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. Default is `any`.- Returns:
- builder
-
region
public RuleV2State.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- The region in which to obtain the v2 networking client. A networking 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 RuleV2State.Builder region(java.lang.String region)
- Parameters:
region- The region in which to obtain the v2 networking client. A networking 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
-
shared
public RuleV2State.Builder shared(@Nullable com.pulumi.core.Output<java.lang.Boolean> shared)
- Parameters:
shared- Sharing status of the firewall rule (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the `shared` status of an existing firewall policy. On- Returns:
- builder
-
shared
public RuleV2State.Builder shared(java.lang.Boolean shared)
- Parameters:
shared- Sharing status of the firewall rule (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the `shared` status of an existing firewall policy. On- Returns:
- builder
-
sourceIpAddress
public RuleV2State.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 RuleV2State.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 RuleV2State.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. Require not `any` or empty protocol.- Returns:
- builder
-
sourcePort
public RuleV2State.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. Require not `any` or empty protocol.- Returns:
- builder
-
tenantId
public RuleV2State.Builder tenantId(@Nullable com.pulumi.core.Output<java.lang.String> tenantId)
- Parameters:
tenantId- This argument conflicts and is interchangeable with `project_id`. 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 RuleV2State.Builder tenantId(java.lang.String tenantId)
- Parameters:
tenantId- This argument conflicts and is interchangeable with `project_id`. 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
-
build
public RuleV2State build()
-
-