All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.RouterNatRule.html Maven / Gradle / Ivy

The newest version!






RouterNatRule (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute.model

Class RouterNatRule

    • Constructor Detail

      • RouterNatRule

        public RouterNatRule()
    • Method Detail

      • getAction

        public RouterNatRuleAction getAction()
        The action to be enforced for traffic that matches this rule.
        Returns:
        value or null for none
      • setAction

        public RouterNatRule setAction(RouterNatRuleAction action)
        The action to be enforced for traffic that matches this rule.
        Parameters:
        action - action or null for none
      • getDescription

        public String getDescription()
        An optional description of this rule.
        Returns:
        value or null for none
      • setDescription

        public RouterNatRule setDescription(String description)
        An optional description of this rule.
        Parameters:
        description - description or null for none
      • getMatch

        public String getMatch()
        CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` The following example is a valid match expression for private NAT: `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'`
        Returns:
        value or null for none
      • setMatch

        public RouterNatRule setMatch(String match)
        CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` The following example is a valid match expression for private NAT: `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'`
        Parameters:
        match - match or null for none
      • getRuleNumber

        public Long getRuleNumber()
        An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
        Returns:
        value or null for none
      • setRuleNumber

        public RouterNatRule setRuleNumber(Long ruleNumber)
        An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
        Parameters:
        ruleNumber - ruleNumber or null for none
      • set

        public RouterNatRule set(String fieldName,
                                 Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public RouterNatRule clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy