public static StorageUri getServiceClientBaseAddress(final StorageUri addressUri, final boolean usePathStyleUris)
            throws URISyntaxException {
    """
	Get the service client address from a complete Uri.
	
	@param address
	Complete address of the resource.
	@param usePathStyleUris
	a value indicating if the address is a path style uri.
	@return the service client address from a complete Uri.
	@throws URISyntaxException
    """
        return new StorageUri(new URI(getServiceClientBaseAddress(addressUri.getPrimaryUri(), usePathStyleUris)),
                addressUri.getSecondaryUri() != null ?
                new URI(getServiceClientBaseAddress(addressUri.getSecondaryUri(), usePathStyleUris)) : null);
    }
public static StorageUri getServiceClientBaseAddress(final StorageUri addressUri, final boolean usePathStyleUris)
            throws URISyntaxException {
        return new StorageUri(new URI(getServiceClientBaseAddress(addressUri.getPrimaryUri(), usePathStyleUris)),
                addressUri.getSecondaryUri() != null ?
                new URI(getServiceClientBaseAddress(addressUri.getSecondaryUri(), usePathStyleUris)) : null);
    }
public static StorageUri getServiceClientBaseAddress ( final StorageUri addressUri , final boolean usePathStyleUris ) throws URISyntaxException { return new StorageUri ( new URI ( getServiceClientBaseAddress ( addressUri . getPrimaryUri ( ) , usePathStyleUris ) ) , addressUri . getSecondaryUri ( ) != null ? new URI ( getServiceClientBaseAddress ( addressUri . getSecondaryUri ( ) , usePathStyleUris ) ) : null ) ; }
Get the service client address from a complete Uri.

@param address
Complete address of the resource.
@param usePathStyleUris
a value indicating if the address is a path style uri.
@return the service client address from a complete Uri.
@throws URISyntaxException
Get the service client address from a complete Uri .