function hasPublicIP(instance) {
        if (instance === undefined) {
            return false;
        }
        return ((instance.properties.publicIp && instance.properties.publicIp.trim().length > 0));
    }
/**
     * Checks if an instance has a public IP address, returns true if yes otherwise false
     * @param {EC2Instance} instance Instance object
     * @returns {boolean} True if the instance has a public IP address, else false
     */
Checks if an instance has a public IP address, returns true if yes otherwise false
@param {EC2Instance} instance Instance object
@returns {boolean} True if the instance has a public IP address, else false
Checks if an instance has a public IP address returns true if yes otherwise false @param { EC2Instance } instance Instance object @returns { boolean } True if the instance has a public IP address else false
function hasPublicIP(instance) {
        if (instance === undefined) {
            return false;
        }
        return ((instance.properties.publicIp && instance.properties.publicIp.trim().length > 0));
    }
function hasPublicIP ( instance ) { if ( instance === undefined ) { return false ; } return ( ( instance . properties . publicIp && instance . properties . publicIp . trim ( ) . length > 0 ) ) ; }
Checks if an instance has a public IP address, returns true if yes otherwise false
 @param {EC2Instance} instance Instance object
 @returns {boolean} True if the instance has a public IP address, else false
Checks if an instance has a public IP address returns true if yes otherwise false @param { EC2Instance } instance Instance object @returns { boolean } True if the instance has a public IP address else false