Class RuleV2State.Builder

  • Enclosing class:
    RuleV2State

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

      • Builder

        public Builder()
    • 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