Infoblox::DTC::Topology::Rule::Source - A DTC Topology Rule Source object.


NAME

Infoblox::DTC::Topology::Rule::Source - A DTC Topology Rule Source object.


DESCRIPTION

A DTC Topology Rule Source object.


CONSTRUCTOR

 my $rule_source = Infoblox::DTC::Topology::Rule::Source->new(
    source_type  => 'SUBNET' | 'CONTINENT' | 'COUNTRY' | 'SUBDIVISION' | 
                    'CITY' | 'EA0' | 'EA1' | 'EA2' | 'EA3',                      #Required
    source_value => $string,                                                     #Required
    source_op    => 'IS' | 'IS_NOT',                                             #Optional / Default is 'IS'
 );


SESSION METHODS

The object does not support any session methods. It's retrieved as a part of an Infoblox::DTC::Topology::Rule, and used as a matching conditions for a DTC load balancer.


METHODS

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

source_op( )

Use this method to set or retrieve the operation used to match the value.

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

Parameter

The valid values are 'IS' and 'IS_NOT'.

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 source_op value
 my $source_op = $source->source_op();
 #modify source_op value
 $source->source_op('IS');

source_type( )

Use this method to set or retrieve the source type.

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

Parameter

The valid values are 'SUBNET', 'CONTINENT', 'COUNTRY', 'CITY', 'SUBDIVISION', 'EA0', 'EA1', 'EA2' and 'EA3'.

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 source_type value
 my $source_type = $source->source_type();
 #modify source_type value
 $source->source_type('COUNTRY');

source_value( )

Use this method to set or retrieve the source value.

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

Parameter

The valid value is a string that contains the desired source value.

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 source_value value
 my $source_value = $source->source_value();
 #modify source_value value
 $source->source_value('United States');


AUTHOR

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


SEE ALSO

Infoblox::DTC::Topology::Rule


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.