class AgentResourceCacheFunctions {

    public static AgentResourceCacheNetworkInterface createNetworkInterface(int eniIndex, Map<String, Set<String>> ipAddresses,
                                                                            Set<String> securityGroupIds, boolean hasAvailableIps, long timestamp) {
        String joinedSecurityGroupIds = StringExt.concatenate(securityGroupIds, SECURITY_GROUP_ID_DELIMITER);
        return AgentResourceCacheNetworkInterface.newBuilder()
                .withEniIndex(eniIndex)
                .withIpAddresses(ipAddresses)
                .withSecurityGroupIds(securityGroupIds)
                .withHasAvailableIps(hasAvailableIps)
                .withTimestamp(timestamp)
                .build();
    }

}