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

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







Firewall.Allowed (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute.model

Class Firewall.Allowed

    • Constructor Detail

      • Allowed

        public Allowed()
    • 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 Firewall.Allowed 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 the 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 Firewall.Allowed setPorts(List<String> ports)
        An optional list of ports to which this rule applies. This field is only applicable for the 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