Infoblox::IPAM::TCPPort - Network discovery TCP port


NAME

Infoblox::IPAM::TCPPort - Network discovery TCP port


DESCRIPTION

This class represents the TCP port that network discovery jobs use to find IP addresses.


CONSTRUCTOR

 my $tcp_port = Infoblox::IPAM::TCPPort->new(
      number            => $string,             #Required.
      comment           => $string,             #Optional.
 );


SESSION METHODS

This object does not have a session method. You must use it with Infoblox::IPAM::DiscoveryTask class.


METHODS

This section describes all the methods that you can use to configure and retrieve the attribute values of a TCP port.

comment( )

Use this method to set or retrieve a descriptive comment for a TCP port.

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

Parameter

Enter a descriptive comment for the TCP port in string format.

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 comment
 my $comment = $tcp_port->comment();
 # Modify comment
 $tcp_port->comment("new port");

number( )

Use this method to set or retrieve the TCP port number.

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

Parameter

Enter a number the TCP port.

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 port number
 my $port_number = $tcp_port->number();
 # Modify port number
 $tcp_port->number("222");


SAMPLE CODE

Please see sample code in Infoblox::IPAM::DiscoveryTask.


AUTHOR

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


SEE ALSO

Infoblox::IPAM::DiscoveryTask


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.