Infoblox::Grid::Discovery::Port - the discovery port structure.


NAME

Infoblox::Grid::Discovery::Port - the discovery port structure.


DESCRIPTION

The object provides information about the discovery port.


CONSTRUCTOR

 my $object = Infoblox::Grid::Discovery::Port->new(
    'comment' => $string,           # Optional
    'port'    => $uint,             # Required
    'type'    => 'TCP' | 'UDP',     # Required
 );


SESSION METHODS

The object does not support any session methods.


METHODS

This section describes all the methods that you can use to set or retrieve the attribute values of the object.

comment( )

Use this method to set or retrieve the comment.

Parameter

The comment 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 attribute value
 my $value = $object->comment();
 # Modify attribute value
 $object->comment('comment');

port( )

Use this method to set or retrieve the port number.

Parameter

The port number.

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->port();
 # Modify attribute value
 $object->port(56);

type( )

Use this method to set or retrieve the port type.

Parameter

Valid value is 'TCP' or 'UDP'.

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->type();
 # Modify attribute value
 $object->type('UDP');


AUTHOR

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


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.