Class InboundSecurityRules


  • public final class InboundSecurityRules
    extends Object
    Properties of the Inbound Security Rules resource.
    • Constructor Detail

      • InboundSecurityRules

        public InboundSecurityRules()
    • Method Detail

      • protocol

        public InboundSecurityRulesProtocol protocol()
        Get the protocol property: Protocol. This should be either TCP or UDP.
        Returns:
        the protocol value.
      • withProtocol

        public InboundSecurityRules withProtocol​(InboundSecurityRulesProtocol protocol)
        Set the protocol property: Protocol. This should be either TCP or UDP.
        Parameters:
        protocol - the protocol value to set.
        Returns:
        the InboundSecurityRules object itself.
      • sourceAddressPrefix

        public String sourceAddressPrefix()
        Get the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed.
        Returns:
        the sourceAddressPrefix value.
      • withSourceAddressPrefix

        public InboundSecurityRules withSourceAddressPrefix​(String sourceAddressPrefix)
        Set the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed.
        Parameters:
        sourceAddressPrefix - the sourceAddressPrefix value to set.
        Returns:
        the InboundSecurityRules object itself.
      • destinationPortRange

        public Integer destinationPortRange()
        Get the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.
        Returns:
        the destinationPortRange value.
      • withDestinationPortRange

        public InboundSecurityRules withDestinationPortRange​(Integer destinationPortRange)
        Set the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.
        Parameters:
        destinationPortRange - the destinationPortRange value to set.
        Returns:
        the InboundSecurityRules object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.