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

There is a newer version: v1-rev20250320-2.0.0
Show newest version






Firewall.Allowed (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class Firewall.Allowed

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>
    Enclosing class:
    Firewall


    public static final class Firewall.Allowed
    extends com.google.api.client.json.GenericJson
    Model definition for FirewallAllowed.
    • 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
      • clone

        public Firewall.Allowed 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