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

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







FirewallPolicyRuleMatcherLayer4Config (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute.model

Class FirewallPolicyRuleMatcherLayer4Config

    • Constructor Detail

      • FirewallPolicyRuleMatcherLayer4Config

        public FirewallPolicyRuleMatcherLayer4Config()
    • Method Detail

      • getIpProtocol

        public String getIpProtocol()
        The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
        Returns:
        value or null for none
      • setIpProtocol

        public FirewallPolicyRuleMatcherLayer4Config setIpProtocol(String ipProtocol)
        The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
        Parameters:
        ipProtocol - ipProtocol or null for none
      • getPorts

        public List<String> getPorts()
        An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
        Returns:
        value or null for none
      • setPorts

        public FirewallPolicyRuleMatcherLayer4Config setPorts(List<String> ports)
        An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
        Parameters:
        ports - ports or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy