Infoblox::Grid::ThreatProtection::NATPort - a NAT Threat Protection Port object.


NAME

Infoblox::Grid::ThreatProtection::NATPort - a NAT Threat Protection Port object.


DESCRIPTION

The Threat Protection NAT Port object provides information about the port blocks configured for NAT mapping.


CONSTRUCTION

 my $nat_port = Infoblox::Grid::ThreatProtection::NATPort->new(
    start_port => $uint, #Required
    end_port   => $uint, #Required
    block_size => $uint, #Required
 );


SESSION METHODS

The object does not support any session methods.


MODULE METHODS

The following functions are available to apply to a NAT Port object.

Infoblox::Grid::ThreatProtection::NATRule->nat_ports( )

Use this method to set or retrieve NAT Port configuration for the NAT Threat Protection Rule. See Infoblox::Grid::ThreatProtection::NATRule->nat_ports() for parameters and return values.

Example
 #Get nat_ports
 my $nat_ports = $nat_rule->nat_ports();
 #Modify nat_ports
 $nat_rule->nat_ports($nat_ports);


METHODS

This section describes all the methods that you can use to configure and retrieve the attribute values of a Threat Protection NAT Port.

block_size( )

Use this method to set or retrieve the block size for the NAT Port configuration object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is an unsigned integer.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get attribute value
 my $value = $object->block_size();
 #Modify attribute value
 $object->block_size(20);

end_port( )

Use this method to set or retrieve the end port value for the NAT port configuration object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is an unsigned integer.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get attribute value
 my $value = $object->end_port();
 #Modify attribute value
 $object->end_port(10);

start_port( )

Use this method to set or retrieve the start port value for the NAT port configuration object.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is an unsigned integer.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get attribute value
 my $value = $object->start_port();
 #Modify attribute value
 $object->start_port(5);


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Grid::ThreatProtection::NATRule, Infoblox::Grid::ThreatProtection::NATRule->nat_ports()


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.