Class RuleArgs.Builder

  • Enclosing class:
    RuleArgs

    public static final class RuleArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(RuleArgs defaults)
    • Method Detail

      • action

        public RuleArgs.Builder action​(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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.Builder protocol​(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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.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 RuleArgs.Builder valueSpecs​(java.util.Map<java.lang.String,​java.lang.Object> valueSpecs)
        Parameters:
        valueSpecs - Map of additional options.
        Returns:
        builder